Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Session Auto Start issues in php.ini


nelsoncomas

Recommended Posts

I found the solution to my problem in the forum but does anyone know why the session auto start setting to one causes this error?

 

 

Fatal error: The script tried to execute a method or access a property of an incomplete object. Please ensure that the class definition navigationhistory of the object you are trying to operate on was loaded _before_ the session was started in D:*******************application_top.php on line 279

Link to comment
Share on other sites

With php if you want to register an object as a session variable, then you must define the object before starting the session.

 

If session auto start is enable then a session is started before application_top starts, hence the navigation class has not been defined, and then you get your error message.

Trust me, I'm an Accountant.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...