Jump to content

PrestaShop 1.7.4 / 1.7.3 - Install error - xmlfileloader.php - symfony


vbb

Recommended Posts

Hello,

if i install PrestaShop 1.7.4 or 1.7.3 i get a error at 0% (Create file parameters). 

Requirements are all installed. On 1.7.4 i get a ICU warning, because i use ICU 60.2. I tryed 1.7.3 which works with ICU 60.2, no warnings but the same error.

 

Rights:

User/Group: www-data:

chmod: 755 and 777 tryed - same error 

 

Apache Error Log:

[Sun Dec 09 22:35:03.753791 2018] [php7:error] [pid 8353] [client xxxxx:52702] PHP Fatal error:  Uncaught Error: Call to a member function getAttributeNS() on null in /var/www/html/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Loader/XmlFileLoader.php:461\nStack trace:\n#0 [internal function]: Symfony\\Component\\DependencyInjection\\Loader\\XmlFileLoader->validateSchema(Object(DOMDocument), false)\n#1 /var/www/html/vendor/symfony/symfony/src/Symfony/Component/Config/Util/XmlUtils.php(83): call_user_func(Array, Object(DOMDocument), false)\n#2 /var/www/html/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Loader/XmlFileLoader.php(284): Symfony\\Component\\Config\\Util\\XmlUtils::loadFile('/var/www/html/v...', Array)\n#3 /var/www/html/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Loader/XmlFileLoader.php(41): Symfony\\Component\\DependencyInjection\\Loader\\XmlFileLoader->parseFileToDOM('/var/www/html/v...')\n#4 /var/www/html/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php(54): Symfony\\Component\\DependencyInjection\\Loa in /var/www/html/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Loader/XmlFileLoader.php on line 461, referer: http://xxxx/install/index.php

 

With PrestaShop 1.7.4 i get a second error message:

[Sun Dec 09 22:04:08.087341 2018] [php7:notice] [pid 2107] [client xxxx:52103] PHP Notice:  Undefined property: DOMDocument::$encoding in /var/www/html/vendor/symfony/symfony/src/Symfony/Component/Translation/Loader/XliffFileLoader.php on line 81, referer: http://xxxxx/install/

Edited by PvB (see edit history)
Link to comment
Share on other sites

10 hours ago, Knowband Plugins said:

Hi,

Not sure but it seems php-xml extension is not installed. Kindly ensure that php-xml extension is installed. 

 

XML is installed.

Server: php7.2-xml

phpInfo: XML

XML Support active
XML Namespace Support active
libxml2 Version 2.9.4
Link to comment
Share on other sites

  • 1 year later...

Any help with this one? I disabled Litespeed Cache module and I am getting the same issue.

 

I think it has something regarding group permission or something like that, because anything that I modify, update modules, etc, the same Error 500 is displayed with that error code:

 

[29-Apr-2020 11:39:58 Europe/Bucharest] PHP Fatal error: Uncaught Error: Call to a member function getAttributeNS() on null in /home/XXX/public_html/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Loader/XmlFileLoader.php:579 Stack trace: #0 /home/XXX/public_html/vendor/symfony/symfony/src/Symfony/Component/Config/Util/XmlUtils.php(83): Symfony\Component\DependencyInjection\Loader\XmlFileLoader->validateSchema(Object(DOMDocument), false) #1 /home/XXX/public_html/vendor/symfony/symfony/src/Symfony/Component/Config/Util/XmlUtils.php(131): Symfony\Component\Config\Util\XmlUtils::parse('<?xml version="...', Array) #2 /home/XXX/public_html/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Loader/XmlFileLoader.php(384): Symfony\Component\Config\Util\XmlUtils::loadFile('/home/XXX/...', Array) #3 /home/XXX/public_html/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Loader/XmlFileLoader.php(44): Symfony\Component\DependencyInjection\Loader\XmlFileLoader->parseFileToDOM('/home/XXX/...') #4 /h in /home/XXX/public_html/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Loader/XmlFileLoader.php on line 579

 

Link to comment
Share on other sites

On 12/17/2018 at 1:35 AM, vbb said:

*push*

Quick solution:

- Download the used Prestashop version and unzip folder symphony and replace it on your webserver

- If you are using another version of PHP, other than the recommended one, then you might have issues, so switch to recommended from within your Cpanel account.

This should solve your problem, it solved mine which was the same as yours.

Link to comment
Share on other sites

Hola.

He sustituido la carpeta symphony de los archivos de instalación de Prestashop version 1.7.6.2 y continuo con el mismo mensaje.

He cambiado a PHP 7.3 y al realizar el cambio y probar me aroja error 500.

Alguien sabe como solucionarlo?

Gracias!!

Link to comment
Share on other sites

12 hours ago, David Romero said:

Hola.

He sustituido la carpeta symphony de los archivos de instalación de Prestashop version 1.7.6.2 y continuo con el mismo mensaje.

He cambiado a PHP 7.3 y al realizar el cambio y probar me aroja error 500.

Alguien sabe como solucionarlo?

Gracias!!

Hola,

Está utilizando una versión PHP incompatible con su versión actual de Prestashop.

Lea más sobre la lista de compatibilidad: https://devdocs.prestashop.com/1.7/basics/installation/system-requirements/

Si obtiene los mismos errores que yo, la solución es simple:

1. Activar PHP 7.1 de CPanel. También puedes probar con PHP 7.2, tal vez funcione con eso.
2. Reemplace los archivos de la carpeta Symphony con los mismos archivos que en su versión Prestashop 1.7.6.2 (descárguelo de Prestashop): https://assets.prestashop2.com/en/system/files/ps_releases/prestashop_1.7.6.2_0.zip

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...