0

I am installing Magento and it gets stuck here, I followed all instructions online but I get stuck here. It does not give me error on the console log but it get stuck here for over an hour. Can someone please assist me?

Thank you

enter image description here

2

2 Answers 2

1

Step-1 Open the file and change replace validateURLScheme Method

vendor\magento\framework\Image\Adapter\Gd2.php

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;
    }

when you replace that method and retry the installation.

Step -2

if you face admin going to black than please chnage method isPathInDirectories in file \vendor\magento\framework\View\Element\Template\File\Validator.php

protected function isPathInDirectories($path, $directories)
    {
        $realPath = str_replace('\\', '/', $this->fileDriver->getRealPath($path));
        if (!is_array($directories)) {
            $directories = (array)$directories;
        }
        foreach ($directories as $directory) {
            if (0 === strpos($realPath, $directory)) {
                return true;
            }
        }
        return false;
    }

I hope this is helpful to you!!

0

Not only the above function will help you for all. In my case there was php.ini extensions what I was missing. You need to enable few extensions as well and then these function. read here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.