cancel
Showing results for 
Search instead for 
Did you mean: 

Installation at 51% Magento 2 localhost

Highlighted

Re: Instalation at 51% Magento 2 localhost

Hi @greglamont5ad1 

 

Glad to know that it's works for you and install 100% and thank you one more time Smiley Happy

 

Please post what other issue Now you are facing !

 

 

if issue solved,Click Kudos & Accept as Solution
Highlighted

Re: Instalation at 51% Magento 2 localhost

I changed the validateURLScheme function and the error message is gone. However, the installtion is stopped at 51% aftyer Magento_Theme

I've revised the PHP.ini file with the following and also disabled UAC and cleaned cached memory. Tried several times but no result. The installtion stop running at 51%.

 

  • max_execution_time = 18000
  • max_input_time = 1800
  • memory_limit = 2048M

Capture magento.PNG

Highlighted

Re: Instalation at 51% Magento 2 localhost

Alguien pudo resolver este problema yo tambien lo tengo, 

Highlighted

Re: Instalation at 51% Magento 2 localhost

I have also faced same problem while I try to install in localhost window10. I have updated my file like below and I can install in local.

 

Find validateURLScheme function in vendor\magento\framework\Image\Adapter\Gd2.php file. at line 96. Replace function with this:

 

private function validateURLScheme(string $filename) : bool
  {
      $allowed_schemes = ['ftp', 'ftps', 'http', 'https'];
      $url = parse_url($filename);
      if ($url && isset($url['scheme']) && !in_array($url['scheme'], $allowed_schemes) && !file_exists($filename)) {
          return false;
      }

      return true;
  }
Highlighted

Re: Installation at 51% Magento 2 localhost

Today I planned to install Magento 2.3.5-p1 and I run into the same error. 

In my window where i installed XAMPP PHP7.3.17

 

After did some R&D found a solution

 

To Fix  dd an extra check is file not exist !file_exists($filename) 

where to add this check

open a  file Gd2.php => vendor\magento\framework\Image\Adapter\Gd2.php file, 

find a function validateURLScheme approx line 96, add or wrapper with an if condition !file_exists($filename) : (if file not exist) then save the file

then try again Smiley Happy

 

For reference find below code.

private function validateURLScheme(string $filename) : bool
{
    if(!file_exists($filename)) { // if file not exist
        $allowed_schemes = ['ftp', 'ftps', 'http', 'https'];
        $url = parse_url($filename);
        if ($url && isset($url['scheme']) && !in_array($url['scheme'], $allowed_schemes)) {
            return false;
        }
    }
    return true;
}

 

Similar issue opened in Magento Github

 

@mac hope this solves your concern.

 

if issue solved,Click Kudos & Accept as Solution

 

Thanks.

Highlighted

Re: Installation at 51% Magento 2 localhost

buenas despues de arreglar el problema , se instalo correcto pero para entrar a admin asi se queda ayudabuenas despues de arreglar el problema , se instalo correcto pero para entrar a admin asi se queda ayuda

Highlighted

Re: Instalation at 51% Magento 2 localhost

buenas ya se soluciono , ya se instalo pero no carga admin 

Highlighted

Re: Instalation at 51% Magento 2 localhost

it worked for me. Thank you Smiley Very Happy

Highlighted

Re: Instalation at 51% Magento 2 localhost

On spot works Smiley Happy

Highlighted

Re: Installation at 51% Magento 2 localhost

I found a workaround for Windows OS. Image Adapter try opens to image files ('open function in Gd2.php line 63). validateURLScheme function return false always because it checking 'URL' format but local files not valid for this format, so it returns false.

Find validateURLScheme function in vendor\magento\framework\Image\Adapter\Gd2.php file. at line 96. Replace function with this:

private function validateURLScheme(string $filename) : bool
  {
      $allowed_schemes = ['ftp', 'ftps', 'http', 'https'];
      $url = parse_url($filename);
      if ($url && isset($url['scheme']) && !in_array($url['scheme'], $allowed_schemes) && !file_exists($filename)) {
          return false;
      }

      return true;
  }

Retry installation. it will work.