Page 1 of 1

Problem with function.session-start

Posted: Sun Aug 21, 2011 11:44 pm
by hamsn
Hello,

This is a new install of opencart version 1.5.1.1.
I have been using this for over a month now, adding categories, products, manufacturers, making changes within settings, etc.
Today I installed a new modules from Extensions menu called 'Welcome'. It was all fine until I placed an image in the Welcome text in Welcome module and tried saving it.
First I got this error on top of both backend and frontend:

Notice: unserialize() [function.unserialize]: Error at offset 44 of 65535 bytes in /home/xxxxx/public_html/unisys/index.php on line 61
Then I just logged out and opened the website in a new window, now I have:
Notice: unserialize() [function.unserialize]: Error at offset 44 of 65535 bytes in /home/xxxxx/public_html/unisys/index.php on line 61
Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/xxxxx/public_html/unisys/index.php:61) in /home/xxxxx/public_html/unisys/system/library/session.php on line 11Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/xxxxx/public_html/unisys/index.php:61) in /home/xxxxx/public_html/unisys/system/library/session.php on line 11
on both frontend and backend.

If I try logging in to admin, I get the following and it doesn't login at all:
Notice: unserialize() [function.unserialize]: Error at offset 44 of 65535 bytes in /home/xxxxx/public_html/unisys/admin/index.php on line 45
Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/xxxxx/public_html/unisys/admin/index.php:45) in /home/xxxxx/public_html/unisys/system/library/session.php on line 11Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/xxxxx/public_html/unisys/admin/index.php:45) in /home/xxxxx/public_html/unisys/system/library/session.php on line 11Warning: Cannot modify header information - headers already sent by (output started at /home/xxxxx/public_html/unisys/admin/index.php:45) in /home/xxxxx/public_html/unisys/system/engine/controller.php on line 28Warning: Cannot modify header information - headers already sent by (output started at /home/xxxxx/public_html/unisys/admin/index.php:45) in /home/xxxxx/public_html/unisys/system/engine/controller.php on line 29


This is what my error_log contains:

[21-Aug-2011 15:50:05] PHP Notice: unserialize() [<a href='function.unserialize'>function.unserialize</a>]: Error at offset 44 of 65535 bytes in /home/hamsn/public_html/unisys/index.php on line 61

I don't understand the problem, I tried with other server, its the same, so its not related to the host and also I didn't touch the codes, just been working from backend and the image save in Welcome module caused this.

Any help will be appreciated.

Link to the store: http://unisys.cz.cc
Admin: http://unisys.cz.cc/admin

Thank you.

Re: Problem with function.session-start

Posted: Mon Aug 22, 2011 12:35 am
by rph
You probably have a bad character in your settings which is causing problems. Try going to phpmyadmin and running

Code: Select all

DELETE FROM setting WHERE `group` = 'welcome'

Re: Problem with function.session-start

Posted: Tue Aug 23, 2011 11:38 pm
by hamsn
Thank you rph, the following code worked:
DELETE FROM ussetting WHERE `group` = 'welcome'

Could you explain me a little on exactly what that bad character would have been?

Re: Problem with function.session-start

Posted: Wed Aug 24, 2011 6:47 am
by rph
Hard to say exactly where it went wrong without the original data.

Re: Problem with function.session-start

Posted: Tue Nov 20, 2012 8:08 pm
by razmi
Hi
i am using opencart 1.5.2.1
and getting this error aswell

Notice: unserialize() [function.unserialize]: Error at offset 25014 of 65535 bytes in /home/XXXXXXX/public_html/HRSMOTORCYCLES.COM/admin/index.php on line 49
Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/XXXXXXX/public_html/HRSMOTORCYCLES.COM/admin/index.php:49) in /home/XXXXXXX/public_html/HRSMOTORCYCLES.COM/system/library/session.php on line 11Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/XXXXXXX/public_html/HRSMOTORCYCLES.COM/admin/index.php:49) in /home/XXXXXXX/public_html/HRSMOTORCYCLES.COM/system/library/session.php on line 11Warning: Cannot modify header information - headers already sent by (output started at /home/XXXXXXX/public_html/HRSMOTORCYCLES.COM/admin/index.php:49) in /home/XXXXXXX/public_html/HRSMOTORCYCLES.COM/system/library/currency.php on line 45Warning: Cannot modify header information - headers already sent by (output started at /home/XXXXXXX/public_html/HRSMOTORCYCLES.COM/admin/index.php:49) in /home/XXXXXXX/public_html/HRSMOTORCYCLES.COM/vqmod/vqcache/vq2-system_engine_controller.php on line 28Warning: Cannot modify header information - headers already sent by (output started at /home/XXXXXXX/public_html/HRSMOTORCYCLES.COM/admin/index.php:49) in /home/XXXXXXX/public_html/HRSMOTORCYCLES.COM/vqmod/vqcache/vq2-system_engine_controller.php on line 29


can anyone help please

Re: Problem with function.session-start

Posted: Tue Dec 02, 2014 7:12 pm
by avinashkalro
This really solved my problem.. thanks a tonne rph.. I had the same problem.. the phpmyadmin worked !!