dvdscr Posted January 18, 2017 Share Posted January 18, 2017 Hi, I install the 1.7.0.4 version of this product, for the first time. Now I'm trying to login with the admin custom URL for the first time, but I can view only a blank page. Apache retrieves this error: [Wed Jan 18 00:09:16.059190 2017] [:error] [pid 31253] [client xx.xx.xx.xx:63129] PHP Fatal error: Uncaught exception 'RuntimeException' with message 'Failed to start the session: already started by PHP.' in /opt/wp/apps/prestashop/app/cache/prod/classes.php:108\nStack trace:\n#0 /opt/wp/apps/prestashop/app/cache/prod/classes.php(483): Symfony\\Component\\HttpFoundation\\Session\\Storage\\NativeSessionStorage->start()\n#1 /opt/wp/apps/prestashop/vendor/symfony/symfony/src/Symfony/Component/Security/Csrf/TokenStorage/SessionTokenStorage.php(90): Symfony\\Component\\HttpFoundation\\Session\\Session->start()\n#2 /opt/wp/apps/prestashop/vendor/symfony/symfony/src/Symfony/Component/Security/Csrf/CsrfTokenManager.php(54): Symfony\\Component\\Security\\Csrf\\TokenStorage\\SessionTokenStorage->hasToken('ANONYMOUS_USER')\n#3 /opt/wp/apps/prestashop/app/cache/prod/classes.php(8196): Symfony\\Component\\Security\\Csrf\\CsrfTokenManager->getToken('ANONYMOUS_USER')\n#4 /opt/wp/apps/prestashop/classes/Link.php(722): PrestaShopBundle\\Service\\Routing\\Router->generate('admin_product_c...')\n#5 /opt/wordpre in /opt/wp/apps/prestashop/app/bootstrap.php.cache on line 3216, referer: http://www.xxxxx.xx/adminXXX/index.php?controller=AdminLogin&token=181fa270d47386a8d523bdea6213932c&redirect=AdminDashboard Can it be an error of PHP configuration? How can I solve? Thank you so much. Link to comment Share on other sites More sharing options...
Knowband Plugins Posted January 18, 2017 Share Posted January 18, 2017 (edited) Check the following URL, it might help fixing your problem: https://www.prestashop.com/forums/topic/589816-login-failure-to-admin-dashboard/ Edited January 18, 2017 by Knowband Plugins (see edit history) Link to comment Share on other sites More sharing options...
dvdscr Posted January 18, 2017 Author Share Posted January 18, 2017 Sorry, I don't understand. The URL seems the same of my post. Thank you. Check the following URL, it might help fixing your problem: https://www.prestashop.com/forums/topic/589816-login-failure-to-admin-dashboard/ Link to comment Share on other sites More sharing options...
dvdscr Posted January 20, 2017 Author Share Posted January 20, 2017 Hi guys, no ideas? I installed Prestashop on a server with other PHP applications (Wordpress), but it runs under a specific domain, and with a specific VirtualHost configuration on Apache. The error is retrieved by a stable release of Prestashop, so I don't think that it can depend on code problem. Is it that WordPress first opens a session, and then Symfony (Prestashop) finds the session already open? The main domain is infact served by WP. I also try to define a specific path for the Prestashop VirtualHost: http://stackoverflow.com/questions/18262878/how-to-prevent-php-sessions-being-shared-between-different-apache-vhosts Unfortunately it doesn't work. PHP session auto_start parameter is set to 0 in php.ini. I don't understand how can I solve this problem. It can be depends on an Apache or PHP configuration? Link to comment Share on other sites More sharing options...
NabilR Posted June 7, 2017 Share Posted June 7, 2017 Hello, Did you find a solution to your problem. I have the same kind of message when I try to open my dashbord, when I refresh, it works, but then somehow I will have several times Internal Server error. Thanks RuntimeException in classes.php line 109:Failed to start the session: already started by PHP.in classes.php line 109 at NativeSessionStorage->start() in classes.php line 484 at Session->start() in SessionTokenStorage.php line 90 at SessionTokenStorage->hasToken('ANONYMOUS_USER') in CsrfTokenManager.php line 54 at CsrfTokenManager->getToken('ANONYMOUS_USER') in classes.php line 7844 at Router->generate('admin_product_catalog') in Link.php line 722 at LinkCore->getAdminLink('AdminProducts') in AdminController.php line 1999 at AdminControllerCore->getTabs('9', '2') in AdminController.php line 2001 at AdminControllerCore->getTabs('2', '1') in AdminController.php line 2001 at AdminControllerCore->getTabs() in AdminController.php line 1854 at AdminControllerCore->initHeader() in AdminController.php line 53 at AdminController->initHeader() in AdminLoginController.php line 146 at AdminLoginControllerCore->initContent() in Controller.php line 205 at ControllerCore->run() in Dispatcher.php line 369 at DispatcherCore->dispatch() in index.php line 95 Link to comment Share on other sites More sharing options...
Knowband Plugins Posted June 9, 2017 Share Posted June 9, 2017 Hello, Please take a look at the following GitHub post, there is a possible solution for your problem as well. https://github.com/FriendsOfSymfony/FOSFacebookBundle/issues/261 Link to comment Share on other sites More sharing options...
Tarun Kalra Posted November 25, 2019 Share Posted November 25, 2019 I am using prestashop 1.7.6, after update modules i am getting below fatal error please help (1/1) FatalErrorException Compile Error: require(): Failed opening required '/home/******/public_html/var/cache/dev/ContainerZglfwyb/removed-ids.php' (include_path='/home/*******/public_html/vendor/pear/pear_exception:/home/*******/public_html/vendor/pear/console_getopt:/home/*******/public_html/vendor/pear/pear-core-minimal/src:/home/*********/public_html/vendor/pear/archive_tar:.:/opt/cpanel/ea-php72/root/usr/share/pear') in appDevDebugProjectContainer.php line 1688 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