Blog of King Software

installation of Magento 2 or Installation stops at 51%

HOW TO RESOLVE “INSTALLATIO IS INCOMPLETE” ERROR DURING INSTALLATION OF MAGENTO 2 OR INSTALLATION STOPS AT 51%

Created by Bhavesh Gohil & Vicky Parekh on Date: 06/11/2020
During Installing the Magento 2, in the last step after press install button, the installation stop at 51% & give error as Installation is incomplete. Below are the steps to resolve this problem. : 
E-Commerce in Ilford, Essex-Kingsoftware.

STEP 1   :  

  • Go to folder where you install the Magento files
  • In the folder go to the following path & open Gd2.php file.
  • Path: vendor\magento\framework\Image\Adapter\Gd2.php
  • Now go to line no.96 which display the following code as shown in the image
  • E-Commerce in Ilford, Essex-Kingsoftware.

  • Replace the above code from line no.96 to 105 with the following 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;
    }

    E-Commerce in Ilford, Essex-Kingsoftware.
  • After replacing the code with the above code in the file Save the file and try again to install the Magento to see if the problem is resolve.