Page 1 of 1

Notice: unserialize(): Error at offset index.php on line 5

Posted: Mon Dec 08, 2014 10:48 pm
by avinashkalro
I recently added some data to the html module on OC 2.0 .. the home page has the below error and the admin page also
displays an error. Please help and suggest what I must do.. Im desperate
Notice: unserialize(): Error at offset 26882 of 65535 bytes in /home/gosfekitchen/public_html/index.php on line 58
Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/gosfekitchen/public_html/index.php:58) in /home/gosfekitchen/public_html/system/library/session.php on line 12Warning: Cannot modify header information - headers already sent by (output started at /home/gosfekitchen/public_html/index.php:58) in /home/gosfekitchen/public_html/system/library/currency.php on line 45Notice: Undefined index: heading in /home/gosfekitchen/public_html/catalog/controller/module/html.php on line 4Notice: Undefined index: description in /home/gosfekitchen/public_html/catalog/controller/module/html.php on line 5



Admin rror

Notice: unserialize(): Error at offset 26882 of 65535 bytes in /home/gosfekitchen/public_html/admin/index.php on line 41
Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/gosfekitchen/public_html/admin/index.php:41) in /home/gosfekitchen/public_html/system/library/session.php on line 12Warning: Cannot modify header information - headers already sent by (output started at /home/gosfekitchen/public_html/admin/index.php:41) in /home/gosfekitchen/public_html/system/library/currency.php on line 45

Re: Notice: unserialize(): Error at offset index.php on line

Posted: Mon Dec 08, 2014 11:36 pm
by avinashkalro
Somebody please help me..

Re: Notice: unserialize(): Error at offset index.php on line

Posted: Tue Dec 09, 2014 12:21 am
by pm-netti
avinashkalro wrote:Somebody please help me..
Try this:
1. open cpanel > phpmyadim > your database
2. find table 'setting', click 'browse'.
3. check field 'code' and field 'serialized'.
4. is it in table 'setting' expired modules (same than in table 'module')?

Re: Notice: unserialize(): Error at offset index.php on line

Posted: Tue Dec 09, 2014 1:19 am
by avinashkalro
Please view the attached image and let me know what I should do

Re: Notice: unserialize(): Error at offset index.php on line

Posted: Tue Dec 09, 2014 1:22 am
by opencarthow.com
avinashkalro wrote:I recently added some data to the html module on OC 2.0 .. the home page has the below error and the admin page also
displays an error. Please help and suggest what I must do.. Im desperate

Notice: unserialize(): Error at offset 26882 of 65535 bytes in /home/gosfekitchen/public_html/index.php on line 58
It seems that you have entered too much data into the HTML module. So it exceeds storage size in your database and the rest of HTML data will be cut. You should go to the HTMl module and press Save to remove error.
Note that the previous data will be lost.

Re: Notice: unserialize(): Error at offset index.php on line

Posted: Tue Dec 09, 2014 1:24 am
by avinashkalro
What could be the problem ?

Re: Notice: unserialize(): Error at offset index.php on line

Posted: Tue Dec 09, 2014 1:37 am
by pm-netti
avinashkalro wrote:Please view the attached image and let me know what I should do
Your is Opencart version 2.0.1x?
If, so remove that in setting table modules 'featured' and 'carousel', also 'slideshow', 'latest', 'special'........

Re: Notice: unserialize(): Error at offset index.php on line

Posted: Tue Dec 09, 2014 1:41 am
by avinashkalro
its 2.0 not 2.0.1

Re: Notice: unserialize(): Error at offset index.php on line

Posted: Tue Dec 09, 2014 1:59 am
by pm-netti
avinashkalro wrote:its 2.0 not 2.0.1
You says, that are change HTML module. Try find that 'html module' in table setting. Do you dare to remove it?

Re: Notice: unserialize(): Error at offset index.php on line

Posted: Tue Dec 09, 2014 2:01 am
by avinashkalro
no.. I did not remove it.. it was not there in the setting table

Re: Notice: unserialize(): Error at offset index.php on line

Posted: Tue Dec 09, 2014 2:13 am
by avinashkalro
help help help !!!

Re: Notice: unserialize(): Error at offset index.php on line

Posted: Tue Dec 09, 2014 2:19 am
by avinashkalro
I did it.. !!!
Here's what I did.. first I

1. Opened index.php from the admin folder
2. found the line: $config->set($setting['key'], unserialize($setting['value']));
3. deleted the line
4. logged into admin
5. navigated to modules and uninstalled the html module

Solved it !!!

Re: Notice: unserialize(): Error at offset index.php on line

Posted: Tue Dec 09, 2014 2:23 am
by pm-netti
avinashkalro wrote:help help help !!!
What is it your index.php?

My index.php line 58 of version 2.0.0.0:

Code: Select all

if (!$store_query->num_rows) {
Your line 58:

Code: Select all

Notice: unserialize(): Error at offset 26882 of 65535 bytes in /home/gosfekitchen/public_html/index.php on line 58
???

Re: Notice: unserialize(): Error at offset index.php on line

Posted: Tue Dec 09, 2014 9:04 am
by fido-x
The HTML Content module is throwing "Uninitialized string offset 1" errors in the template file. The problem is coming from the controller (admin/controller/module/html.php). The following block of code (lines 94 to 100) is the cause:

Code: Select all

if (isset($this->request->post['module_description'])) {
	$data['module_description'] = $this->request->post['module_description'];
} elseif (!empty($module_info)) {
	$data['module_description'] = $module_info['module_description'];
} else {
	$data['module_description'] = '';
}
The "module_description" is an array of values based on language. The problem is, that it is being defined as a NULL value string when empty. To fix it, change the above code to the following:

Code: Select all

if (isset($this->request->post['module_description'])) {
	$data['module_description'] = $this->request->post['module_description'];
} elseif (!empty($module_info)) {
	$data['module_description'] = $module_info['module_description'];
} else {
	$data['module_description'] = array();
}

Re: Notice: unserialize(): Error at offset index.php on line

Posted: Thu Mar 19, 2015 7:52 am
by karlpers
You made my day Fido-X :)

Re: Notice: unserialize(): Error at offset index.php on line

Posted: Tue Sep 08, 2015 11:56 pm
by ngomezleal
Hello all,
I need help, I am trying to add HTML code through the module in OC, but it is giving the following error:

Notice: unserialize (): Failed at offset 61459 of 65535 bytes in /home/dnacelln/public_html/admin/index.php on line 51

Please helpme

Re: Notice: unserialize(): Error at offset index.php on line 5

Posted: Sun Sep 03, 2017 11:44 pm
by vanlanh52
hello everybody,
I change http => https, error "
Notice: unserialize() [function.unserialize0]: Error at offset 1464 of 4718 bytes in /home/..../...../index.php on line 69"
Please, Help me :(