3

I'm trying to install Magento version 2.3.2 on a wamp server, Apache version is 2.4.39 PHP 7.1.29 MySQL 5.7.26 when i reach the install button after filling all my details it freezes on 0% and the console log reads:

Starting Magento installation:

File permissions check...

Required extensions check...

Enabling Maintenance Mode...

Installing deployment configuration...

Installing database schema: Schema creation/updates:

Any help greatly appreciated

Mark
  • 61
  • 4
  • Have you checked in system.log or exception.log? Any error shows there? – Raj Jun 26 '19 at 13:49
  • Ive got this in event viewer, – Mark Jun 26 '19 at 14:17
  • Magento[4348] main.CRITICAL: The specified "C:/wamp/www/magento/generated/code/Magento/Swatches/Block/Adminhtml/Product/Attribute/Edit/FormFactory.php.4348" file couldn't be written. Warning!file_put_contents(C:/wamp/www/magento/generated/code/Magento/Swatches/Block/Adminhtml/Product/Attribute/Edit/FormFactory.php.4348): failed to open stream: Resource temporarily unavailable Class Magento\Swatches\Block\Adminhtml\Product\Attribute\Edit\FormFactory generation error: The requested class did not generate properly, because the 'generated' directory permission is read-only. – Mark Jun 26 '19 at 14:25
  • If --- after running the 'bin/magento setup:di:compile' CLI command when the 'generated' directory permission is set to write --- the requested class did not generate properly, then you must add the generated class object to the signature of the related construct method, only. – Mark Jun 26 '19 at 14:28
  • Havent got an exception log? – Mark Jun 26 '19 at 14:30
  • I changed the permissions on C:/wamp/www/magento/generated/code/Magento/Swatches/Block/Adminhtml/Product/Attribute/Edit/FormFactory.php and install appears to have completed, however have a white screen when i log in? – Mark Jun 26 '19 at 15:58
  • Have you given required permission to all directories and files? Please check following answer:- https://magento.stackexchange.com/questions/91870/magento-2-folder-file-permissions – Raj Jun 27 '19 at 05:02
  • Hi Raj, I gave full permissions to the magento folder and subfolders, this is on a localserver (wamp), this gave the following error Fatal error: Namespace declaration statement has to be the very first statement or after any declare call in the script in C:\wamp\www\magento\vendor\magento\framework\View\Element\Template\File\Validator.php on line 6 so i removed the white space and now the error shows on line 2, but no white space? – Mark Jun 27 '19 at 09:09
  • Try following solution:- https://magento.stackexchange.com/questions/251792/invalid-template-file-upgrade-issue-from-2-2-6-to-2-2-7-or-2-3 – Raj Jun 27 '19 at 09:30
  • Thanks Raj, i replaced the code for protected function and the code on line114 (109 on mine), not sure where to find the registratio.php file (tried a search it brings up quite a few) the the error now is Fatal error: Namespace declaration statement has to be the very first statement or after any declare call in the script in C:\wamp\www\magento\vendor\magento\framework\View\Element\Template\File\Validator.php on line 1 – Mark Jun 27 '19 at 10:20
  • Hi Raj, Changed the Validator.php file from UTF-8 to ANSI and it seems to be working, thanks – Mark Jun 27 '19 at 10:48
  • That's Great Mark. :) – Raj Jun 27 '19 at 11:12

0 Answers0