cancel
Showing results for 
Search instead for 
Did you mean: 

Installation at 51% Magento 2 localhost

Re: Instalation at 51% Magento 2 localhost

Hi @mac 

 

I think you have all the php extensions enabled.

 

Can you please share your technology stack configurations - what is the version of xampp then PHP and MySQL ?

 

Also you have downloaded Magento 2 then installing ? or installed via composer?

if issue solved,Click Kudos & Accept as Solution

Re: Instalation at 51% Magento 2 localhost

Hi, @Manthan Dave 
I download 7.2.30 / PHP 7.2.30 from XAMPP site
and ver 2.3.5-p1 fro Magento site

Re: Instalation at 51% Magento 2 localhost

Hello i test this night :

 

XAMPP 7.2.30 / PHP 7.2.30 with Magento 2.3.5 p1 with sample data

XAMPP 7.2.30 / PHP 7.2.30 with Magento 2.3.5 p1 without sample data

XAMPP 7.2.30 / PHP 7.2.30 with Magento 2.3.4 p2 with sample data

XAMPP 7.2.30 / PHP 7.2.30 with Magento 2.3.4 p2 without sample data

 

XAMPP 7.3.17 / PHP 7.3.17 with Magento 2.3.5 p1 with sample data

XAMPP 7.3.17 / PHP 7.3.17 with Magento 2.3.5 p1 without sample data

XAMPP 7.3.17 / PHP 7.3.17 with Magento 2.3.4 p2 with sample data

XAMPP 7.3.17 / PHP 7.3.17 with Magento 2.3.4 p2 without sample data

 

Always the same error at 51%.

 

I change on my php.ini :

 

  • max_execution_time = 18000
  • max_input_time = 1800
  • memory_limit = 2G

 

No UAC activate on WINDOWS 10

Antivirus disabled.

 

This is my log where i have the same error:

Spoiler

Module 'Magento_Theme':
[ERROR] InvalidArgumentException: Wrong file in C:\xampp72\htdocs\vendor\magento\framework\Image\Adapter\Gd2.php:64 Stack trace: #0 C:\xampp72\htdocs\vendor\magento\framework\Image.php(55): Magento\Framework\Image\Adapter\Gd2->open('C:/xampp72/htdo...') #1 C:\xampp72\htdocs\vendor\magento\framework\Image.php(36): Magento\Framework\Image->open() #2 C:\xampp72\htdocs\vendor\magento\framework\ObjectManager\Factory\AbstractFactory.php(121): Magento\Framework\Image->__construct(Object(Magento\Framework\Image\Adapter\Gd2), 'C:/xampp72/htdo...') #3 C:\xampp72\htdocs\vendor\magento\framework\ObjectManager\Factory\Dynamic\Developer.php(66): Magento\Framework\ObjectManager\Factory\AbstractFactory->createObject('Magento\\Framewo...', Array) #4 C:\xampp72\htdocs\vendor\magento\framework\ObjectManager\ObjectManager.php(56): Magento\Framework\ObjectManager\Factory\Dynamic\Developer->create('Magento\\Framewo...', Array) #5 C:\xampp72\htdocs\vendor\magento\framework\Image\Factory.php(47): Magento\Framework\ObjectManager\ObjectManager->create('Magento\\Framewo...', Array) #6 C:\xampp72\htdocs\vendor\magento\framework\View\Design\Theme\Image.php(127): Magento\Framework\Image\Factory->create('C:/xampp72/htdo...') #7 C:\xampp72\htdocs\vendor\magento\module-theme\Model\Theme\Registration.php(135): Magento\Framework\View\Design\Theme\Image->createPreviewImage('C:/xampp72/htdo...') #8 C:\xampp72\htdocs\vendor\magento\module-theme\Model\Theme\Registration.php(114): Magento\Theme\Model\Theme\Registration->_savePreviewImage(Object(Magento\Theme\Model\Theme\Data)) #9 C:\xampp72\htdocs\vendor\magento\module-theme\Model\Theme\Registration.php(73): Magento\Theme\Model\Theme\Registration->_registerThemeRecursively(Object(Magento\Theme\Model\Theme\Data)) #10 C:\xampp72\htdocs\vendor\magento\module-theme\Setup\Patch\Data\RegisterThemes.php(47): Magento\Theme\Model\Theme\Registration->register() #11 C:\xampp72\htdocs\vendor\magento\framework\Setup\Patch\PatchApplier.php(162): Magento\Theme\Setup\Patch\Data\RegisterThemes->apply() #12 C:\xampp72\htdocs\setup\src\Magento\Setup\Model\Installer.php(1023): Magento\Framework\Setup\Patch\PatchApplier->applyDataPatch('Magento_Theme') #13 C:\xampp72\htdocs\setup\src\Magento\Setup\Model\Installer.php(890): Magento\Setup\Model\Installer->handleDBSchemaData(Object(Magento\Setup\Module\DataSetup), 'data', Array) #14 [internal function]: Magento\Setup\Model\Installer->installDataFixtures(Array) #15 C:\xampp72\htdocs\setup\src\Magento\Setup\Model\Installer.php(371): call_user_func_array(Array, Array) #16 C:\xampp72\htdocs\setup\src\Magento\Setup\Controller\Install.php(109): Magento\Setup\Model\Installer->install(Array) #17 C:\xampp72\htdocs\vendor\laminas\laminas-mvc\src\Controller\AbstractActionController.php(83): Magento\Setup\Controller\Install->startAction() #18 C:\xampp72\htdocs\vendor\laminas\laminas-eventmanager\src\EventManager.php(321): Laminas\Mvc\Controller\AbstractActionController->onDispatch(Object(Laminas\Mvc\MvcEvent)) #19 C:\xampp72\htdocs\vendor\laminas\laminas-eventmanager\src\EventManager.php(178): Laminas\EventManager\EventManager->triggerListeners(Object(Laminas\Mvc\MvcEvent), Object(Closure)) #20 C:\xampp72\htdocs\vendor\laminas\laminas-mvc\src\Controller\AbstractController.php(117): Laminas\EventManager\EventManager->triggerEventUntil(Object(Closure), Object(Laminas\Mvc\MvcEvent)) #21 C:\xampp72\htdocs\vendor\laminas\laminas-mvc\src\DispatchListener.php(117): Laminas\Mvc\Controller\AbstractController->dispatch(Object(Laminas\Http\PhpEnvironment\Request), Object(Laminas\Http\PhpEnvironment\Response)) #22 C:\xampp72\htdocs\vendor\laminas\laminas-eventmanager\src\EventManager.php(321): Laminas\Mvc\DispatchListener->onDispatch(Object(Laminas\Mvc\MvcEvent)) #23 C:\xampp72\htdocs\vendor\laminas\laminas-eventmanager\src\EventManager.php(178): Laminas\EventManager\EventManager->triggerListeners(Object(Laminas\Mvc\MvcEvent), Object(Closure)) #24 C:\xampp72\htdocs\vendor\laminas\laminas-mvc\src\Application.php(339): Laminas\EventManager\EventManager->triggerEventUntil(Object(Closure), Object(Laminas\Mvc\MvcEvent)) #25 C:\xampp72\htdocs\setup\index.php(39): Laminas\Mvc\Application->run() #26 {main} Next Magento\Framework\Setup\Exception: Unable to apply data patch Magento\Theme\Setup\Patch\Data\RegisterThemes for module Magento_Theme. Original exception message: Wrong file in C:\xampp72\htdocs\vendor\magento\framework\Setup\Patch\PatchApplier.php:170 Stack trace: #0 C:\xampp72\htdocs\setup\src\Magento\Setup\Model\Installer.php(1023): Magento\Framework\Setup\Patch\PatchApplier->applyDataPatch('Magento_Theme') #1 C:\xampp72\htdocs\setup\src\Magento\Setup\Model\Installer.php(890): Magento\Setup\Model\Installer->handleDBSchemaData(Object(Magento\Setup\Module\DataSetup), 'data', Array) #2 [internal function]: Magento\Setup\Model\Installer->installDataFixtures(Array) #3 C:\xampp72\htdocs\setup\src\Magento\Setup\Model\Installer.php(371): call_user_func_array(Array, Array) #4 C:\xampp72\htdocs\setup\src\Magento\Setup\Controller\Install.php(109): Magento\Setup\Model\Installer->install(Array) #5 C:\xampp72\htdocs\vendor\laminas\laminas-mvc\src\Controller\AbstractActionController.php(83): Magento\Setup\Controller\Install->startAction() #6 C:\xampp72\htdocs\vendor\laminas\laminas-eventmanager\src\EventManager.php(321): Laminas\Mvc\Controller\AbstractActionController->onDispatch(Object(Laminas\Mvc\MvcEvent)) #7 C:\xampp72\htdocs\vendor\laminas\laminas-eventmanager\src\EventManager.php(178): Laminas\EventManager\EventManager->triggerListeners(Object(Laminas\Mvc\MvcEvent), Object(Closure)) #8 C:\xampp72\htdocs\vendor\laminas\laminas-mvc\src\Controller\AbstractController.php(117): Laminas\EventManager\EventManager->triggerEventUntil(Object(Closure), Object(Laminas\Mvc\MvcEvent)) #9 C:\xampp72\htdocs\vendor\laminas\laminas-mvc\src\DispatchListener.php(117): Laminas\Mvc\Controller\AbstractController->dispatch(Object(Laminas\Http\PhpEnvironment\Request), Object(Laminas\Http\PhpEnvironment\Response)) #10 C:\xampp72\htdocs\vendor\laminas\laminas-eventmanager\src\EventManager.php(321): Laminas\Mvc\DispatchListener->onDispatch(Object(Laminas\Mvc\MvcEvent)) #11 C:\xampp72\htdocs\vendor\laminas\laminas-eventmanager\src\EventManager.php(178): Laminas\EventManager\EventManager->triggerListeners(Object(Laminas\Mvc\MvcEvent), Object(Closure)) #12 C:\xampp72\htdocs\vendor\laminas\laminas-mvc\src\Application.php(339): Laminas\EventManager\EventManager->triggerEventUntil(Object(Closure), Object(Laminas\Mvc\MvcEvent)) #13 C:\xampp72\htdocs\setup\index.php(39): Laminas\Mvc\Application->run() #14 {main}

 

Re: Instalation at 51% Magento 2 localhost

@michel_plotto I am facing same type of problem and i can't find solution 

 

Re: Instalation at 51% Magento 2 localhost

Hi @michel_plotto  @mac  @sayurpatel3eb8 

 

Your technology stack is correct if you are using PHP version latest 7.3 

 

Can you check your composer version ? is it the latest one? 

 

I have upgraded from 2.3.4 to 2.3.5-p1 and I face two to three issue and the solution of those issues is the latest technology stack.

 

Composer version - 1.10.5

Php version - 7.3.17

 

and the settings which I have mentioned above for the php.ini

 

Using all this tech stack I have successfully upgraded with 2.3.5-p1 and its working well.

 

Try with this stack and let me know if you still face any issues.

 

Hope it helps !

 

if issue solved,Click Kudos & Accept as Solution

Re: Instalation at 51% Magento 2 localhost

@Manthan Dave   my system configuration is perfect as you say.

 

php 7.3.17

composer 1.10.5

magento 2.3.5-p1

 

but still getting error

Re: Instalation at 51% Magento 2 localhost

I'm getting same error installing on IIS

 

PHP 7.3.13

Magento 2.3.5

 

Runtime limits and extensions as advised.  Tried multiple versions of PHP.

 

I'm using the web installer. Fresh Install. 

 

First time installing Magento to try out migrating from other platforms, but so far spent 3 days on and off just trying to install it with various issues.  This one I haven't been able to get past....frustrating to say the least...

Re: Instalation at 51% Magento 2 localhost

@mac @sayurpatel3eb8 @michel_plotto 

 

Found a workaround that somebody else came up with on GibHub.  I have now finally successfully installed it locally on a Windows box.

 

https://github.com/magento/magento2/issues/28055

 

 

Re: Instalation at 51% Magento 2 localhost

Hello @greglamont5ad1 

 

So did you tried that patch and is it worked for you ?

 

Adding the same over here for other members reference !

 

Please  try following work around

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

 

Kudos to you @greglamont5ad1 

 

As in this thread so many users are facing this issue !

 

if issue solved,Click Kudos & Accept as Solution

Re: Instalation at 51% Magento 2 localhost


@Manthan Dave wrote:

Hello @greglamont5ad1 

 

So did you tried that patch and is it worked for you ?

 

Kudos to you @greglamont5ad1 

 

As in this thread so many users are facing this issue !

 


Correct.  Made it through the install 100%.  Now on to new issues....