Post by techismk » Wed Jul 11, 2012 11:58 am

Hi I am using 1.5.3.1 version and I really love this shopping cart. Thanks to the development team for this amazing software!!

I used the welcome module a lot in my webpage, and I've encountered a problem which cause all the Welcome modules to be lost when pasting a picture(bigger one) to the Welcome module editor window, and click "save", then an error message will appear on top left hand side of the screen:
"Notice: unserialize() [function.unserialize]: Error at offset 508 of 65535 bytes in C:\wamp\www\admin\index.php on line 45"

I understood it's not a proper way to insert a picture in the editor using copy & paste (proper way should be insert a link to the image folder). But sometimes we might make mistake in editing pic and words and causing error. My point is that can it be able to avoid the single error occurs in one Welcome Module from affecting all the rest of Welcome Modules?

http://www.techislive.com
http://www.facebook.com/techislive


User avatar
Newbie

Posts

Joined
Wed Jul 11, 2012 8:36 am

Post by Daniel » Wed Jul 11, 2012 10:00 pm

resave the welcome module.

OpenCart®
Project Owner & Developer.


User avatar
Administrator

Posts

Joined
Fri Nov 03, 2006 6:57 pm

Post by dutchie » Mon Aug 06, 2012 8:08 pm

this just happened to me, devastating the work i lost - i had a day old backup of the site but couldnt find where to restore from.

I noticed my laptop was still logged into the admin on the welcome module page from earlier today (i was my pc by this stage when the error occured) ... i crossed my fingers and pressed save on the laptop...and behold all was good!!
fffffhheeeew what a lucky fluke.... i think i'll keep my laptop logged in from now on for this very reason...one slipup and its all gone...

also, i figured it might help to keep a text file with a copy/paste of all source for each of the modules.

Newbie

Posts

Joined
Mon Aug 06, 2012 8:00 pm

Post by rokdazone » Mon Dec 10, 2012 9:55 pm

This happened to a customer of mine aswell. For some reason the serialized setting gets corrupt when saving (under some unknown circumstances). Resulting in errors both when logging in (admin/index.php) and in frontend where the module setting is supposed to be used.

Anyone have a theory what's causing the problem and how it could be prevented? One solution i have is to check if the setting is not corrupt before trying to unserializie it, this won't solve the actual problem, but at least the store won't stop running because of a malformed setting.

OpenCart extension and templates developer. Working for Shine Webb AB in Sweden. Feel free to PM/contact me if you are in need of an extension or a template.


User avatar
Active Member

Posts

Joined
Mon Jan 02, 2012 3:24 pm
Location - Sweden

Post by labeshops » Mon Dec 10, 2012 11:13 pm

Yup, I had that happen once too and no idea why. I had a welcome module on each of my 39 stores at the time and posted about it, but no one could tell me where the text was stored in the database so I could recover the info. Ended up re-writing some of them but manly stopped using the welcome module in case it happened again. I use one of the html anywhere modules now instead. No problems (knocking on wood).

Running Opencart v3.0.3.9 with multi-stores and the default template from https://www.labeshops.com which has links to all my stores.


User avatar
Expert Member

Posts

Joined
Thu Aug 04, 2011 4:41 am
Location - Florida, USA

Post by cakradipo » Mon May 20, 2013 6:55 pm

Dear All,
in login area I have some message :

Notice: unserialize() [function.unserialize]: Error at offset 65319 of 65535 bytes in /home/pernakp7/public_html/home/admin/index.php on line 45
Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/pernakp7/public_html/home/admin/index.php:45) in /home/pernakp7/public_html/home/system/library/session.php on line 11Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/pernakp7/public_html/home/admin/index.php:45) in /home/pernakp7/public_html/home/system/library/session.php on line 11Warning: Cannot modify header information - headers already sent by (output started at /home/pernakp7/public_html/home/admin/index.php:45) in /home/pernakp7/public_html/home/system/library/currency.php on line 45Warning: Cannot modify header information - headers already sent by (output started at /home/pernakp7/public_html/home/admin/index.php:45) in /home/pernakp7/public_html/home/system/engine/controller.php on line 28Warning: Cannot modify header information - headers already sent by (output started at /home/pernakp7/public_html/home/admin/index.php:45) in /home/pernakp7/public_html/home/system/engine/controller.php on line 29

what is mean?
need some help.
thank you before.

Newbie

Posts

Joined
Mon May 20, 2013 6:45 pm

Post by paulfeakins » Thu Sep 19, 2013 7:58 pm

I just came across the same issue.

In my case it wasn't possible to re-save the Welcome module because of the error messages that were occurring. In fact I was only able to login to the admin area at all after commenting out /admin/index.php line 45.

The welcome text is stored in the "setting" table in a record where the key is "welcome_module". I noticed that the "value" field, which stores the serialized data, had been truncated.

I deleted this row (taking a backup of the database first of course) and everything worked again as expected. I was again able to use the welcome module.

[Edit]
In fact it was second row where the key was "welcome2_module".

Hopefully removing this row won't have any undesired effects in future as I'm not totally sure of the table relationships here?

All seems fine so far though.

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Legendary Member
Online

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom
Who is online

Users browsing this forum: Google [Bot] and 14 guests