Post by Rainforest » Tue Jan 26, 2021 5:27 am

This is a weird error that popped up in my header

Warning: session_start(): Failed to decode session object. Session has been destroyed in /home/customer/www/mysite/public_html/system/library/session.php on line 30

Warning: Cannot modify header information - headers already sent by (output started at /home/customer/www/mysite/public_html/system/library/session.php:30) in /home/customer/www/mysite/public_html/system/library/session.php on line 50


I was able to resolve it via a cache clear of my WAP Firewall service. Just wondering where it came from though.

Any ideas?

Active Member

Posts

Joined
Fri Jan 28, 2011 3:50 am

Post by ADD Creative » Tue Jan 26, 2021 9:28 am

The session handler had problems retrieving or unserialising the data. Maybe to much data was stored, data that could not be handled by the serialised format was stored or just corrupt.

The "headers already sent" error is because you have display errors on. This could be a security risk on a live store. To stop all errors being displayed you need to do all of the following.

1. Set the PHP display_errors setting to Off (or 0 or false). This may need to be done in you main php.in, local php.ini, user.ini, .htaccess or hosting control panel, depending on you hosting setup.

2. Set $_['error_display'] to false in you system/config/default.php file.

3. Set Display Errors to No in the OpenCart settings.

www.add-creative.co.uk


Expert Member

Posts

Joined
Sat Jan 14, 2012 1:02 am
Location - United Kingdom

Post by Rainforest » Tue Jan 26, 2021 7:12 pm

Thank you!!
So I'm assuming if any errors do pop up, I would have to look at the log file only?
Instead of it displaying on my site?

Active Member

Posts

Joined
Fri Jan 28, 2011 3:50 am

Post by ADD Creative » Tue Jan 26, 2021 7:28 pm

Yes, that is correct.

www.add-creative.co.uk


Expert Member

Posts

Joined
Sat Jan 14, 2012 1:02 am
Location - United Kingdom

Post by straightlight » Tue Jan 26, 2021 9:51 pm

Should be added to FAQ.

The most generated errors being found on Opencart forum originates from contributed programming. The increased post counters are caused by redundancies of the same solutions that were already provided prior.


Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON
Who is online

Users browsing this forum: Bing [Bot] and 16 guests