| Drupal

This tutorial is part of our series on upgrading from Drupal 6 to 7. Click here to find other tutorials on upgrading.

Notice: unserialize() [function.unserialize]: Error at offset 74 of 75 bytes in variable_initialize() (line 749 of /srv/www//includes/bootstrap.inc).

This error and others like it often occur when updating from Drupal 6 to 7 and is caused by left-over settings from modules that did not clean up when they were uninstalled, and are not stored in the correct format. These will cause PHP errors.

A new module called Variable Check will check the database for errors and make it easy to spot the problem and delete the variable name that is causing the error message.

Step 1. Download and install Variable Check

tutuploadsStep_1._Download_and_install_Variable_Check.png

Download the correct version from: http://drupal.org/project/variablecheck

Step 2. Install the Module

tutuploadsStep_2._Install_the_Module.png

Go to Modules > Install new module and use the installation facility to install the module

tutuploadsInstall_the_module..png

Browse to find the module and install it by clicking Install.

Step 3. Activate the module.

tutuploadsStep_3._Activate_the_module..png

Go to Modules and Other, and check the Enabled Box.

Step 4. Run the report

tutuploadsStep_4._Run_the_report.png

Go to Modules > Check System Variables

tutuploadsmedia_1314981635175.png

You will see the variables that are causing you a problem.

Step 5. Delete the variables

tutuploadsStep_5._Delete_the_variables.png

Check the boxes and click delete.

tutuploadsmedia_1314981706420.png

Confirm the delete.