PaulM Posted May 1, 2018 Share Posted May 1, 2018 Hi guys, My first post here, so hello to all. I`ve developed a store(on Prestashop 1.7.3) on localhost and I moved it to a live server. My process for moving from localhost to live server was: upload all shop from local to live server, create a dump from local db and imported it into the live server, and I`ve changed the "BASE URI" from the database, from "ps_shop_url". All thing work ok on the front office, but when I try to log in to backoffice, all I get is this error: InvalidArgumentException in XmlFileLoader.php line 286:Unable to parse file "/var/www/vhosts/vogueuk.co.uk/addon/USA062016/newusa/catalog/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Resources/config/debug.xml". in XmlFileLoader.php line 286 at XmlFileLoader->parseFileToDOM('/var/www/vhosts/vogueuk.co.uk/addon/USA062016/newusa/catalog/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Resources/config/debug.xml') in XmlFileLoader.php line 41 at XmlFileLoader->load('debug.xml') in FrameworkExtension.php line 146 at FrameworkExtension->load(array(array('assets' => array('version' => '1.7.0'), 'secret' => '9YkpYOS5BrZ8cqtq0TckDCIxIgasrmeoGstq3zrIOPFJhfZZuOdo3MFh', 'translator' => array('fallbacks' => array('default')), 'router' => array('resource' => '/var/www/vhosts/vogueuk.co.uk/addon/USA062016/newusa/catalog/app/config/routing.yml', 'strict_requirements' => null), 'form' => null, 'csrf_protection' => null, 'validation' => array('enable_annotations' => true), 'serializer' => array('enable_annotations' => true), 'templating' => array('engines' => array('twig')), 'default_locale' => 'en-US', 'trusted_hosts' => null, 'trusted_proxies' => null, 'session' => array('handler_id' => null), 'fragments' => null, 'http_method_override' => true), array('router' => array('resource' => '/var/www/vhosts/vogueuk.co.uk/addon/USA062016/newusa/catalog/app/config/routing_dev.yml', 'strict_requirements' => true), 'profiler' => array('only_exceptions' => false))), object(ContainerBuilder)) in MergeExtensionConfigurationPass.php line 59 at MergeExtensionConfigurationPass->process(object(ContainerBuilder)) in MergeExtensionConfigurationPass.php line 39 at MergeExtensionConfigurationPass->process(object(ContainerBuilder)) in Compiler.php line 102 at Compiler->compile(object(ContainerBuilder)) in ContainerBuilder.php line 583 at ContainerBuilder->compile() in bootstrap.php.cache line 2758 at Kernel->initializeContainer() in bootstrap.php.cache line 2533 at Kernel->boot() in bootstrap.php.cache line 2564 at Kernel->handle(object(Request), '1', false) in index.php line 86 1/2InvalidArgumentException in XmlUtils.php line 50:File /var/www/vhosts/vogueuk.co.uk/addon/USA062016/newusa/catalog/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Resources/config/debug.xml does not contain valid XML, it is empty. in XmlUtils.php line 50 at XmlUtils::loadFile('/var/www/vhosts/vogueuk.co.uk/addon/USA062016/newusa/catalog/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Resources/config/debug.xml', array(object(XmlFileLoader), 'validateSchema')) in XmlFileLoader.php line 284 at XmlFileLoader->parseFileToDOM('/var/www/vhosts/vogueuk.co.uk/addon/USA062016/newusa/catalog/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Resources/config/debug.xml') in XmlFileLoader.php line 41 at XmlFileLoader->load('debug.xml') in FrameworkExtension.php line 146 at FrameworkExtension->load(array(array('assets' => array('version' => '1.7.0'), 'secret' => '9YkpYOS5BrZ8cqtq0TckDCIxIgasrmeoGstq3zrIOPFJhfZZuOdo3MFh', 'translator' => array('fallbacks' => array('default')), 'router' => array('resource' => '/var/www/vhosts/vogueuk.co.uk/addon/USA062016/newusa/catalog/app/config/routing.yml', 'strict_requirements' => null), 'form' => null, 'csrf_protection' => null, 'validation' => array('enable_annotations' => true), 'serializer' => array('enable_annotations' => true), 'templating' => array('engines' => array('twig')), 'default_locale' => 'en-US', 'trusted_hosts' => null, 'trusted_proxies' => null, 'session' => array('handler_id' => null), 'fragments' => null, 'http_method_override' => true), array('router' => array('resource' => '/var/www/vhosts/vogueuk.co.uk/addon/USA062016/newusa/catalog/app/config/routing_dev.yml', 'strict_requirements' => true), 'profiler' => array('only_exceptions' => false))), object(ContainerBuilder)) in MergeExtensionConfigurationPass.php line 59 at MergeExtensionConfigurationPass->process(object(ContainerBuilder)) in MergeExtensionConfigurationPass.php line 39 at MergeExtensionConfigurationPass->process(object(ContainerBuilder)) in Compiler.php line 102 at Compiler->compile(object(ContainerBuilder)) in ContainerBuilder.php line 583 at ContainerBuilder->compile() in bootstrap.php.cache line 2758 at Kernel->initializeContainer() in bootstrap.php.cache line 2533 at Kernel->boot() in bootstrap.php.cache line 2564 at Kernel->handle(object(Request), '1', false) in index.php line 86 Anyone has any ideea why is this happening? or how to fix it? I`ve tried re-uploading the website, managed to log into BO -> SEO & URL page, to check if base uri is written ok, tried other pages, like administration, or catalog, or performance, they all gave a blank page. Went back to Seo&URL page, activated Friendly URL, and after that, couldn`t access BO anymore. Link to comment Share on other sites More sharing options...
selectshop.at Posted May 3, 2018 Share Posted May 3, 2018 Check if the file debug.xml is on the folder /vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Resources/config/debug.xml Perhaps it wasn't loaded. Link to comment Share on other sites More sharing options...
PaulM Posted May 3, 2018 Author Share Posted May 3, 2018 Hi. Thanks for the help, I`ve reuploaded the website and the problem seems to have dissapeared. I belive @selectshop.at is right. Link to comment Share on other sites More sharing options...
amyr Posted March 1, 2019 Share Posted March 1, 2019 hello everyone , I really have this similar problem but I didn't change anything , I need help please Thanks you PS Attached files Link to comment Share on other sites More sharing options...
Mo.Tjey Posted May 18, 2024 Share Posted May 18, 2024 I moved the site to another host. This error is encountered while activating the debug mode If debug mode is not active, it works fine 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