Jump to content

Login failure to admin dashboard


Recommended Posts

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

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

  • 4 months later...

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.
  1. in classes.php line 109
  2. at NativeSessionStorage->start() in classes.php line 484
  3. at Session->start() in SessionTokenStorage.php line 90
  4. at SessionTokenStorage->hasToken('ANONYMOUS_USER') in CsrfTokenManager.php line 54
  5. at CsrfTokenManager->getToken('ANONYMOUS_USER') in classes.php line 7844
  6. at Router->generate('admin_product_catalog') in Link.php line 722
  7. at LinkCore->getAdminLink('AdminProducts') in AdminController.php line 1999
  8. at AdminControllerCore->getTabs('9', '2') in AdminController.php line 2001
  9. at AdminControllerCore->getTabs('2', '1') in AdminController.php line 2001
  10. at AdminControllerCore->getTabs() in AdminController.php line 1854
  11. at AdminControllerCore->initHeader() in AdminController.php line 53
  12. at AdminController->initHeader() in AdminLoginController.php line 146
  13. at AdminLoginControllerCore->initContent() in Controller.php line 205
  14. at ControllerCore->run() in Dispatcher.php line 369
  15. at DispatcherCore->dispatch() in index.php line 95
Link to comment
Share on other sites

  • 2 years later...

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

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...