Jump to content

Edit History

scriptami

scriptami


précisions à apporter

Bonjour à tous ! 

Je voudrais passer une boutique en production en 1.7.8.7 en version 8.1.3, et pour l'occasion passer sur un VPS flambant neuf. Ca fait une semaine que j'y suis et je commence à épuiser ma patience comme mes solutions. 

J'ai ouvert le VPS, et j'ai créé un répertoire /var/www/preprod/ pour mettre une copie du site de prod. 

je n'arrive pas à trouver d'où vient cette erreur


Notice: Undefined property: DOMDocument::$documentElement in /var/www/preprod/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Loader/XmlFileLoader.php on line 568

Fatal error: Uncaught Error: Call to a member function getAttributeNS() on null in /var/www/preprod/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Loader/XmlFileLoader.php:568 Stack trace: #0 /var/www/preprod/vendor/symfony/symfony/src/Symfony/Component/Config/Util/XmlUtils.php(89): Symfony\Component\DependencyInjection\Loader\XmlFileLoader->validateSchema() #1 /var/www/preprod/vendor/symfony/symfony/src/Symfony/Component/Config/Util/XmlUtils.php(146): Symfony\Component\Config\Util\XmlUtils::parse() #2 /var/www/preprod/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Loader/XmlFileLoader.php(379): Symfony\Component\Config\Util\XmlUtils::loadFile() #3 /var/www/preprod/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Loader/XmlFileLoader.php(44): Symfony\Component\DependencyInjection\Loader\XmlFileLoader->parseFileToDOM() #4 /var/www/preprod_epicime/vendor/doctrine/doctrine-cache-bundle/DependencyInjection/SymfonyBridgeAdapter.php(52): in /var/www/preprod/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Loader/XmlFileLoader.php on line 568

Je me dis bon ben c'est pas grave, je vais essayer dans l'autre sens, j'ai donc créé une version "dev" dans lequel j'essaie d'installer Prestashop 8.1.3 et ensuite y importer mes données. 

Sauf que l'installation plante pour des raisons bizarres.

image.thumb.png.491295e099a81c3ead623f29cccf4566.png

 

Juste avant, il me dit pourtant que le lien à la base de données est bon, et là paf ! ca plante. 

[Mon Jan 15 16:05:53.984210 2024] [php7:error] [pid 440253] [client 92.137.212.223:49244] PHP Fatal error:  Uncaught PrestaShopException: Link to database cannot be established: SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution in /var/www/dev/classes/db/DbPDO.php:119\nStack trace:\n#0 /var/www/dev/classes/db/Db.php(331): DbPDOCore->connect()\n#1 /var/www/dev/classes/db/Db.php(241): DbCore->__construct()\n#2 /var/www/dev/config/alias.php(47): DbCore::getInstance()\n#3 /var/www/dev/config/alias.php(52): pSQL()\n#4 /var/www/dev/classes/Configuration.php(175): bqSQL()\n#5 /var/www/dev/classes/Configuration.php(229): ConfigurationCore::loadConfiguration()\n#6 /var/www/dev/config/smarty.config.inc.php(28): ConfigurationCore::get()\n#7 /var/www/dev/install/controllers/http/smarty_compile.php(37): require_once('/var/www/epicim...')\n#8 /var/www/dev/install/classes/controllerHttp.php(190): require_once('/var/www/epicim...')\n#9 /var/www/dev/install/index.php(53): InstallControllerHttp::execute()\n#10 {main}\n  thrown in /var/www/dev/classes/db/DbPDO.php on line 119, referer: http://dev.epicime.com/install/index.php
[Mon Jan 15 16:05:54.057662 2024] [php7:notice] [pid 310524] [client 92.137.212.223:49260] PHP Notice:  Constant _PS_DO_NOT_LOAD_CONFIGURATION_ already defined in /var/www/dev/install/controllers/http/smarty_compile.php on line 26, referer: http://dev.epicime.com/install/index.php
[Mon Jan 15 16:05:54.057920 2024] [php7:warn] [pid 310524] [client 92.137.212.223:49260] PHP Warning:  Use of undefined constant _DB_PREFIX_ - assumed '_DB_PREFIX_' (this will throw an Error in a future version of PHP) in /var/www/dev/classes/Configuration.php on line 175, referer: http://dev.epicime.com/install/index.php
[Mon Jan 15 16:05:54.058028 2024] [php7:warn] [pid 310524] [client 92.137.212.223:49260] PHP Warning:  Use of undefined constant _DB_SERVER_ - assumed '_DB_SERVER_' (this will throw an Error in a future version of PHP) in /var/www/dev/classes/db/Db.php on line 219, referer: http://dev.epicime.com/install/index.php
[Mon Jan 15 16:05:54.058045 2024] [php7:warn] [pid 310524] [client 92.137.212.223:49260] PHP Warning:  Use of undefined constant _DB_USER_ - assumed '_DB_USER_' (this will throw an Error in a future version of PHP) in /var/www/dev/classes/db/Db.php on line 219, referer: http://dev.epicime.com/install/index.php
[Mon Jan 15 16:05:54.058054 2024] [php7:warn] [pid 310524] [client 92.137.212.223:49260] PHP Warning:  Use of undefined constant _DB_PASSWD_ - assumed '_DB_PASSWD_' (this will throw an Error in a future version of PHP) in /var/www/dev/classes/db/Db.php on line 219, referer: http://dev.epicime.com/install/index.php
[Mon Jan 15 16:05:54.058062 2024] [php7:warn] [pid 310524] [client 92.137.212.223:49260] PHP Warning:  Use of undefined constant _DB_NAME_ - assumed '_DB_NAME_' (this will throw an Error in a future version of PHP) in /var/www/dev/classes/db/Db.php on line 219, referer: http://dev.epicime.com/install/index.php
[Mon Jan 15 16:05:54.059907 2024] [php7:error] [pid 310524] [client 92.137.212.223:49260] PHP Fatal error:  Uncaught PrestaShopException: Link to database cannot be established: SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution in /var/www/dev/classes/db/DbPDO.php:119\nStack trace:\n#0 /var/www/dev/classes/db/Db.php(331): DbPDOCore->connect()\n#1 /var/www/dev/classes/db/Db.php(241): DbCore->__construct()\n#2 /var/www/dev/config/alias.php(47): DbCore::getInstance()\n#3 /var/www/dev/config/alias.php(52): pSQL()\n#4 /var/www/dev/classes/Configuration.php(175): bqSQL()\n#5 /var/www/dev/classes/Configuration.php(229): ConfigurationCore::loadConfiguration()\n#6 /var/www/dev/config/smarty.config.inc.php(28): ConfigurationCore::get()\n#7 /var/www/dev/install/controllers/http/smarty_compile.php(37): require_once('/var/www/epicim...')\n#8 /var/www/dev/install/classes/controllerHttp.php(190): require_once('/var/www/epicim...')\n#9 /var/www/dev/install/index.php(53): InstallControllerHttp::execute()\n#10 {main}\n  thrown in /var/www/dev/classes/db/DbPDO.php on line 119, referer: http://dev.epicime.com/install/index.php
[Mon Jan 15 16:05:55.477118 2024] [php7:notice] [pid 310037] [client 92.137.212.223:49264] PHP Notice:  Undefined property: DOMDocument::$documentElement in /var/www/dev/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Loader/XmlFileLoader.php on line 590, referer: http://dev.epicime.com/install/index.php
[Mon Jan 15 16:05:55.477208 2024] [php7:error] [pid 310037] [client 92.137.212.223:49264] PHP Fatal error:  Uncaught Error: Call to a member function getAttributeNS() on null in /var/www/dev/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Loader/XmlFileLoader.php:590\nStack trace:\n#0 /var/www/dev/vendor/symfony/symfony/src/Symfony/Component/Config/Util/XmlUtils.php(89): Symfony\\Component\\DependencyInjection\\Loader\\XmlFileLoader->validateSchema()\n#1 /var/www/dev/vendor/symfony/symfony/src/Symfony/Component/Config/Util/XmlUtils.php(146): Symfony\\Component\\Config\\Util\\XmlUtils::parse()\n#2 /var/www/dev/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Loader/XmlFileLoader.php(397): Symfony\\Component\\Config\\Util\\XmlUtils::loadFile()\n#3 /var/www/dev/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Loader/XmlFileLoader.php(49): Symfony\\Component\\DependencyInjection\\Loader\\XmlFileLoader->parseFileToDOM()\n#4 /var/www/dev/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php(162): Symfony\\Component\\Depe in /var/www/dev/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Loader/XmlFileLoader.php on line 590, referer: http://dev.epicime.com/install/index.php

Encore ce fameux XmlFileLoader.

Certains disent que c'est un problème de droits, mais je ne vois pas lequel. php ps info est tout au vert. 

Quelle est la meilleure méthode pour passer de la 1.7 à la 8 ? et y a-t-il des bons tutos pour le faire ? 

Parce que comme si c'était pas assez simple, la 8 marche avec php8, mais la 1.7.8.7 marche avec php 7.4.

 

scriptami

scriptami

Bonjour à tous ! 

Je voudrais passer une boutique en production en 1.7.8.7 en version 8.1.3, et pour l'occasion passer sur un VPS flambant neuf. Ca fait une semaine que j'y suis et je commence à épuiser ma patience comme mes solutions. 

J'ai ouvert le VPS, et j'ai créé un répertoire /var/www/preprod/ pour mettre une copie du site de prod. 

je n'arrive pas à trouver d'où vient cette erreur


Notice: Undefined property: DOMDocument::$documentElement in /var/www/preprod/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Loader/XmlFileLoader.php on line 568

Fatal error: Uncaught Error: Call to a member function getAttributeNS() on null in /var/www/preprod/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Loader/XmlFileLoader.php:568 Stack trace: #0 /var/www/preprod/vendor/symfony/symfony/src/Symfony/Component/Config/Util/XmlUtils.php(89): Symfony\Component\DependencyInjection\Loader\XmlFileLoader->validateSchema() #1 /var/www/preprod/vendor/symfony/symfony/src/Symfony/Component/Config/Util/XmlUtils.php(146): Symfony\Component\Config\Util\XmlUtils::parse() #2 /var/www/preprod/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Loader/XmlFileLoader.php(379): Symfony\Component\Config\Util\XmlUtils::loadFile() #3 /var/www/preprod/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Loader/XmlFileLoader.php(44): Symfony\Component\DependencyInjection\Loader\XmlFileLoader->parseFileToDOM() #4 /var/www/preprod_epicime/vendor/doctrine/doctrine-cache-bundle/DependencyInjection/SymfonyBridgeAdapter.php(52): in /var/www/preprod/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Loader/XmlFileLoader.php on line 568

Je me dis bon ben c'est pas grave, je vais essayer dans l'autre sens, j'ai donc créé une version "dev" dans lequel j'essaie d'installer Prestashop 8.1.3 et ensuite y importer mes données. 

Sauf que l'installation plante pour des raisons bizarres.

image.thumb.png.491295e099a81c3ead623f29cccf4566.png

 

Juste avant, il me dit pourtant que le lien à la base de données est bon, et là paf ! ca plante. 

[Mon Jan 15 16:05:53.984210 2024] [php7:error] [pid 440253] [client 92.137.212.223:49244] PHP Fatal error:  Uncaught PrestaShopException: Link to database cannot be established: SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution in /var/www/dev/classes/db/DbPDO.php:119\nStack trace:\n#0 /var/www/dev/classes/db/Db.php(331): DbPDOCore->connect()\n#1 /var/www/dev/classes/db/Db.php(241): DbCore->__construct()\n#2 /var/www/dev/config/alias.php(47): DbCore::getInstance()\n#3 /var/www/dev/config/alias.php(52): pSQL()\n#4 /var/www/dev/classes/Configuration.php(175): bqSQL()\n#5 /var/www/dev/classes/Configuration.php(229): ConfigurationCore::loadConfiguration()\n#6 /var/www/dev/config/smarty.config.inc.php(28): ConfigurationCore::get()\n#7 /var/www/dev/install/controllers/http/smarty_compile.php(37): require_once('/var/www/epicim...')\n#8 /var/www/dev/install/classes/controllerHttp.php(190): require_once('/var/www/epicim...')\n#9 /var/www/dev/install/index.php(53): InstallControllerHttp::execute()\n#10 {main}\n  thrown in /var/www/dev/classes/db/DbPDO.php on line 119, referer: http://dev.epicime.com/install/index.php
[Mon Jan 15 16:05:54.057662 2024] [php7:notice] [pid 310524] [client 92.137.212.223:49260] PHP Notice:  Constant _PS_DO_NOT_LOAD_CONFIGURATION_ already defined in /var/www/dev/install/controllers/http/smarty_compile.php on line 26, referer: http://dev.epicime.com/install/index.php
[Mon Jan 15 16:05:54.057920 2024] [php7:warn] [pid 310524] [client 92.137.212.223:49260] PHP Warning:  Use of undefined constant _DB_PREFIX_ - assumed '_DB_PREFIX_' (this will throw an Error in a future version of PHP) in /var/www/dev/classes/Configuration.php on line 175, referer: http://dev.epicime.com/install/index.php
[Mon Jan 15 16:05:54.058028 2024] [php7:warn] [pid 310524] [client 92.137.212.223:49260] PHP Warning:  Use of undefined constant _DB_SERVER_ - assumed '_DB_SERVER_' (this will throw an Error in a future version of PHP) in /var/www/dev/classes/db/Db.php on line 219, referer: http://dev.epicime.com/install/index.php
[Mon Jan 15 16:05:54.058045 2024] [php7:warn] [pid 310524] [client 92.137.212.223:49260] PHP Warning:  Use of undefined constant _DB_USER_ - assumed '_DB_USER_' (this will throw an Error in a future version of PHP) in /var/www/dev/classes/db/Db.php on line 219, referer: http://dev.epicime.com/install/index.php
[Mon Jan 15 16:05:54.058054 2024] [php7:warn] [pid 310524] [client 92.137.212.223:49260] PHP Warning:  Use of undefined constant _DB_PASSWD_ - assumed '_DB_PASSWD_' (this will throw an Error in a future version of PHP) in /var/www/dev/classes/db/Db.php on line 219, referer: http://dev.epicime.com/install/index.php
[Mon Jan 15 16:05:54.058062 2024] [php7:warn] [pid 310524] [client 92.137.212.223:49260] PHP Warning:  Use of undefined constant _DB_NAME_ - assumed '_DB_NAME_' (this will throw an Error in a future version of PHP) in /var/www/dev/classes/db/Db.php on line 219, referer: http://dev.epicime.com/install/index.php
[Mon Jan 15 16:05:54.059907 2024] [php7:error] [pid 310524] [client 92.137.212.223:49260] PHP Fatal error:  Uncaught PrestaShopException: Link to database cannot be established: SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution in /var/www/dev/classes/db/DbPDO.php:119\nStack trace:\n#0 /var/www/dev/classes/db/Db.php(331): DbPDOCore->connect()\n#1 /var/www/dev/classes/db/Db.php(241): DbCore->__construct()\n#2 /var/www/dev/config/alias.php(47): DbCore::getInstance()\n#3 /var/www/dev/config/alias.php(52): pSQL()\n#4 /var/www/dev/classes/Configuration.php(175): bqSQL()\n#5 /var/www/dev/classes/Configuration.php(229): ConfigurationCore::loadConfiguration()\n#6 /var/www/dev/config/smarty.config.inc.php(28): ConfigurationCore::get()\n#7 /var/www/dev/install/controllers/http/smarty_compile.php(37): require_once('/var/www/epicim...')\n#8 /var/www/dev/install/classes/controllerHttp.php(190): require_once('/var/www/epicim...')\n#9 /var/www/dev/install/index.php(53): InstallControllerHttp::execute()\n#10 {main}\n  thrown in /var/www/dev/classes/db/DbPDO.php on line 119, referer: http://dev.epicime.com/install/index.php
[Mon Jan 15 16:05:55.477118 2024] [php7:notice] [pid 310037] [client 92.137.212.223:49264] PHP Notice:  Undefined property: DOMDocument::$documentElement in /var/www/dev/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Loader/XmlFileLoader.php on line 590, referer: http://dev.epicime.com/install/index.php
[Mon Jan 15 16:05:55.477208 2024] [php7:error] [pid 310037] [client 92.137.212.223:49264] PHP Fatal error:  Uncaught Error: Call to a member function getAttributeNS() on null in /var/www/dev/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Loader/XmlFileLoader.php:590\nStack trace:\n#0 /var/www/dev/vendor/symfony/symfony/src/Symfony/Component/Config/Util/XmlUtils.php(89): Symfony\\Component\\DependencyInjection\\Loader\\XmlFileLoader->validateSchema()\n#1 /var/www/dev/vendor/symfony/symfony/src/Symfony/Component/Config/Util/XmlUtils.php(146): Symfony\\Component\\Config\\Util\\XmlUtils::parse()\n#2 /var/www/dev/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Loader/XmlFileLoader.php(397): Symfony\\Component\\Config\\Util\\XmlUtils::loadFile()\n#3 /var/www/dev/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Loader/XmlFileLoader.php(49): Symfony\\Component\\DependencyInjection\\Loader\\XmlFileLoader->parseFileToDOM()\n#4 /var/www/dev/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php(162): Symfony\\Component\\Depe in /var/www/dev/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Loader/XmlFileLoader.php on line 590, referer: http://dev.epicime.com/install/index.php

Encore ce fameux XmlFileLoader.

Certains disent que c'est un problème de droits, mais je ne vois pas lequel. php ps info est tout au vert. 

Quelle est la meilleure méthode pour passer de la 1.7 à la 8 ? et y a-t-il des bons tutos pour le faire ? 

 

×
×
  • Create New...