How to Fix Magento 2.3.5 Installation Error -Installation Incomplete -Installation stops at 51%

Magento is leading in the Ecommerce business and also makes appropriate updates regularly. The latest release of Magento where Magento 2.3.5 was released which was on 28th April 2020. 

Every time the installation is not smooth but many times it causes issues during the installation of the new version and most of the users experience it . Don't worry, We have the solution for solving the issue in the installation of Magento 2.

Console Log : [Error] InvalidArgumentException: Wrong file in m235\vendor\magento\framework\Image\Adapter\Gd2.php:64


Steps :
1. Find validateURLScheme function in vendor\magento\framework\Image\Adapter\Gd2.php file. at line 96.

2. Replace function with below code:
     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;
  }

3. Save the file Gd2.php

That’s it you will be able to solve the installation issue with Magento 2.3.5.

Comments

Post a Comment

Popular posts from this blog

how to add new line in google form questions | Fix for next line issue in google form questions

How to add new line in dropdown type question in google forms