Hello all,
I have my site nearly finished. I bought a theme from templatemonster.com, and installed it, but when I updated the modules, it messed it all up. I hunted down the module that caused the problem, however, I noticed I couldn't change a few of the items in the sample content because their type wasn't defined as slider, it was just blank. Hunting down dependencies and getting all the modules i needed to make it work installed took me a while, but I got it. Now sometimes (not always, it's weird) I get the following error when browsing my site anonymously and/or logged in working on it:

Notice: unserialize() [function.unserialize]: Error at offset 2 of 8 bytes in variable_initialize() (line 930 of /public_html/includes/bootstrap.inc).

This randomly pops up on pages to users browsing my site (not good)

Can anyone know what causes this error?
More importantly, does anyone know what I can do to fix it?

drupal version is 7.10

Thank you guys so much,
Sean

Comments

dinis’s picture

There are a number of possible solutions for this, try going through the suggestions in the following thread to see if it helps.

http://drupal.org/node/49694

As a precaution, backup your database first. For me, the solution has required manual database maintenance for each of the clients that I've fixed this for.

If you're not familiar with PHPMyAdmin then this will be a great way to get your hands dirty :)

Hope this helps,

Danielle x

huggans.sean’s picture

I found the solution here:
http://www.ostraining.com/blog/drupal/variable-check-module/
This must have been caused by a left over variable from an old or new version of one of those modules.

Thanks for your reply Danielle!

Deas’s picture

hello,

i just migrated on my test system from 6.22 to 7.12. i had a few errors from bootstrap.inc and menu.inc. the variable check module found 2 old vriables from themes i used on 6.x. i was not able to delete them with the module, but i deleted them by hand with phpmyadmin. now the variable check module doesn´t show any unused variable, but i still have the bootstap.inc error.

•Notice: Undefined index: distribution_name in drupal_install_profile_distribution_name() (Line 202 of /var/www/html/includes/install.inc).
•Notice: unserialize() [function.unserialize]: Error at offset 54 of 57 bytes in _menu_link_translate() (Line 869 of /var/www/html/includes/menu.inc).
•Notice: unserialize() [function.unserialize]: Error at offset 54 of 57 bytes in _menu_link_translate() (Line 869 of /var/www/html/includes/menu.inc).

any idea what causes this problem?

thank´s a lot for your help!

brgds Deas

Deas’s picture

i think i found the solution "by accident"...

i have a german website and some menu links have special german characters in them (ä, ö and ü). i changed them now to normal characters and now the error is gone! but when i want to change it back to the special character i get this warning:

Warning: Cannot unset offset in a non-array variable in menu_node_save() (Zeile 543 von /var/www/html/modules/menu/menu.module).

is this some kind of bug, or does it come from the migration from 6 to 7?

brgds Deas