Jump to content

Undefined variable: session


amina1236

Recommended Posts

  • 2 months later...

Hi, do you have a solution ?, i have the same error when i clic on input in my checkuot address input: 

 

(1/1) ContextErrorException

Notice: Undefined variable: session

in Cookie.php line 548

at CookieCore->getSession('7')in Cookie.php line 501

at CookieCore->deleteSession()in Cookie.php line 265

at CookieCore->mylogout()in Customer.php line 1240

at CustomerCore->mylogout()in FrontController.php line 364

at FrontControllerCore->init()in Controller.php line 287

at ControllerCore->run()in Dispatcher.php line 518

at DispatcherCore->dispatch()in index.php line 28

Link to comment
Share on other sites

  • 1 month later...

similar error in the logout section or /?mylogout =

Notice: Undefined variable: session

in Cookie.php line 548
at CookieCore->getSession('1000')
in Cookie.php line 501
at CookieCore->deleteSession()
in Cookie.php line 265
at CookieCore->mylogout()
in Customer.php line 1240
at CustomerCore->mylogout()
in FrontController.php line 364
at FrontControllerCore->init()
in Controller.php line 287
at ControllerCore->run()
in Dispatcher.php line 518
at DispatcherCore->dispatch()
in index.php line 28

Link to comment
Share on other sites

  • 1 month later...

yep same issue here on 1.7.7.4

Not exactly the same issue but it happens when I want to disconnect

 PHP Fatal error:  Uncaught Error: Call to a member function getId() on null in /prestashop/classes/Cookie.php:548
Stack trace:
#0 /prestashop/classes/Cookie.php(501): CookieCore->getSession('110')
#1 /prestashop/classes/Cookie.php(265): CookieCore->deleteSession()
#2 /prestashop/classes/Customer.php(1240): CookieCore->mylogout()
#3 /prestashop/classes/controller/FrontController.php(364): CustomerCore->mylogout()
#4 /prestashop/classes/controller/Controller.php(287): FrontControllerCore->init()
#5 /prestashop/classes/Dispatcher.php(518): ControllerCore->run()
#6 /prestashop/index.php(28): DispatcherCore->dispatch()
#7 {main}
  thrown in /prestashop/classes/Cookie.php on line 548

are you all using" login as customer" or a cache module or not? thanks?

 

Edited by maestrobo (see edit history)
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...