cancel
Showing results for 
Search instead for 
Did you mean: 

Magento 2.21 install fail

Magento 2.21 install fail

Hi,
Magento can't even start the installation on a web server.
When we start the installation on the local server all goes well,
I've reviewed all the prerequisites on the folders and files and everything seems ok.
Since we do not have access to ssh on the server, we need to install the magento via the web interface.
We have also tried to start the installation directly from the setup but throw out the same error.
We even tried to transfer the cloned version of the installation from a local server, but again the same error without success.

Magento v2.21, Our web server is on apache and we have mariadb 10.2.8 with php 7.0.24
This is the error what we got...

Notice: Undefined property: DOMDocument::$documentElement in /home/xxx/public_html/xxx/vendor/magento/framework/ObjectManager/Config/Mapper/Dom.php on line 58
Notice: Trying to get property of non-object in /home/xxx/public_html/xxx/vendor/magento/framework/ObjectManager/Config/Mapper/Dom.php on line 58
Warning: Invalid argument supplied for foreach() in /home/xxx/public_html/xxx/vendor/magento/framework/ObjectManager/Config/Mapper/Dom.php on line 58
Fatal error: Uncaught Error: Cannot instantiate interface Magento\Framework\Config\CacheInterface in /home/xxx/public_html/xxx/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php:50
Stack trace: #0 /home/xxx/public_html/xxx/vendor/magento/framework/ObjectManager/ObjectManager.php(70): Magento\Framework\ObjectManager\Factory\Dynamic\Developer->create('Magento\Framewo...')
#1/home/xxx/public_html/xxx/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(144): Magento\Framework\ObjectManager\ObjectManager->get('Magento\Framewo...')
#2/home/xxx/public_html/xxx/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(230): Magento\Framework\ObjectManager\Factory\AbstractFactory->resolveArgument(Array, 'Magento\Framewo...', NULL, 'cache', 'Magento\Framewo...')
#3/home/xxx/public_html/xxx/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php(34): Magento\Framework\ObjectManager\Factory\AbstractFactory->resolveArgu in /home/xxx/public_html/xxx/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php on line 50

1 REPLY 1

Re: Magento 2.21 install fail

This seems to be an issue that multiple people have come across but should be improved in Magento 2.2 (https://github.com/magento/magento2/issues/5908)

 

This stackoverflow post may also be useful: https://magento.stackexchange.com/questions/125415/magento-2-installation-fatal-error-cannot-instant...

----
If you've found one of my answers useful, please give "Kudos" or "Accept as Solution" as appropriate. Thanks!