musicmaster Posted January 31, 2019 Share Posted January 31, 2019 I have a fresh-out-the-box 1.7.5 shop running on PHP 7.2. After minimal testing and changes on localhost I uploaded it to my webserver. I adapted ps_shop_url and parameters.php. The resulting shop did work on the front - although it didn't show pictures. However, the backoffice was just a blank page - not even a form to enter your name and password. Development mode didn't help. The server error log showed an error that suggested that it tried to login in the database with the old localhost username and password. It took me a considerable amount of time to find that these were located in the file /var/cache/prod/ContainerLhkdfcy/appProdProjectContainer.php. After I changed the values there I finally could login (still other problems...). My question is: what is going on here and how is this supposed to work? Link to comment Share on other sites More sharing options...
JBW Posted January 31, 2019 Share Posted January 31, 2019 Moving /cloning a shop requires a few more steps than you did, one is to completely clear the cache. Others should be re-generating .htaccess and deleting cookies in your browser 1 Link to comment Share on other sites More sharing options...
musicmaster Posted January 31, 2019 Author Share Posted January 31, 2019 (edited) Hard to clear the cache when you can't even get a login screen of the BO. The latest error message suggests that there is some slashes problem because of migrating from Windows to Linux. I have added some linefeeds for readability.: PHP Fatal error: Uncaught Symfony\\Component\\Config\\Exception\\FileLocatorFileNotFoundException: The file "/var/www/html/ps175\\app/config/routing.yml" does not exist. in /var/www/html/ps175/vendor/symfony/symfony/src/Symfony/Component/Config/FileLocator.php:44\nStack trace:\n#0 /var/www/html/ps175/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Config/FileLocator.php(52): Symfony\\Component\\Config\\FileLocator->locate('/var/www/html/_...', NULL, true)\n#1 /var/www/html/ps175/vendor/symfony/symfony/src/Symfony/Component/Routing/Loader/YamlFileLoader.php(46): Symfony\\Component\\HttpKernel\\Config\\FileLocator->locate('/var/www/html/_...')\n#2 /var/www/html/ps175/vendor/symfony/symfony/src/Symfony/Component/Config/Loader/DelegatingLoader.php(40): Symfony\\Component\\Routing\\Loader\\YamlFileLoader->load('/var/www/html/_...', NULL)\n#3 /var/www/html/ps175/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Routing/DelegatingLoader.php(70): Symfony\\Component\\Config\\Loader\\DelegatingLoader->load('/var/www/html/_...', NULL in /var/www/html/ps175/vendor/twig/twig/lib/Twig/Loader/Filesystem.php on line 101 It puzzles me why people still struggle with slashes. Windows works perfectly when you use forward slashes. Edited January 31, 2019 by musicmaster (see edit history) Link to comment Share on other sites More sharing options...
JBW Posted January 31, 2019 Share Posted January 31, 2019 You can clear the cache by simply deleting the folder (var/cache) on the server (should have been excluded in the copy actually). The "slashes" problem could be releated to cache as well. Link to comment Share on other sites More sharing options...
musicmaster Posted January 31, 2019 Author Share Posted January 31, 2019 Thanks for the suggestion. However, I get only other trouble: When I start the frontoffice after deleting /var/cache I get hundreds of times the following notice - after which a " Cannot modify header information " follows: Notice: Undefined property: DOMDocument::$encoding in /var/www/html/_ps1750/vendor/symfony/symfony/src/Symfony/Component/Translation/Loader/XliffFileLoader.php on line 81 When I load the backoffice. I get three exceptions: (3/3) InvalidArgumentException Unable to parse file "/var/www/html/_ps1750/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Resources/config/web.xml". in XmlFileLoader.php line 386 (2/3) XmlParsingException The XML file "/var/www/html/_ps1750/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Resources/config/web.xml" is not valid. in XmlUtils.php line 133 (1/3) ContextErrorException Notice: Undefined property: DOMDocument::$documentElement in XmlFileLoader.php line 579 The var/cache tree is hardly rebuilt: only the cache and the cache/dev directories are created and a few files in /dev - of which two have zero length. Link to comment Share on other sites More sharing options...
JBW Posted February 1, 2019 Share Posted February 1, 2019 Are the required PHP extensions installed on your server (esp. PHP-DOM & PHP-XML). You can use follwoing script to check if your server meets to expected requirements: https://github.com/PrestaShop/php-ps-info Link to comment Share on other sites More sharing options...
musicmaster Posted February 1, 2019 Author Share Posted February 1, 2019 Everything green or yellow with this tool. Link to comment Share on other sites More sharing options...
David Romero Posted April 29, 2020 Share Posted April 29, 2020 Hola. Como solucionaron este error Gracias!! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now