[SOLVED][Drupal Errors] PHP Notice: unserialize() ... : Error at offset 6 of 10 bytes in ... \includes\bootstrap.inc on line 568

| | 1 min read

Many Drupal programmers, Drupal site admins and Drupal site users have encountered errors similar to "PHP Notice: unserialize() ... : Error at offset 6 of 10 bytes in ... \includes\bootstrap.inc on line 568" in their Drupal site. If you are facing the same situation in your Drupal site then read on to find out more.

Here is the fix.

  • Download the Variable Check module
  • Enable it and go to
    admin/reports/variablecheck
  • Check what is causing the errors
  • Next login to PHPmyAdmin of your site
  • Perform a search using the variable name returning the error in the database
  • Choose to edit it
  • Next copy the value of the field
  • Open a new window
  • Go to http://unserialize.net/serialize
  • There select to translate from "PHP Serialize" to "PHP Serialize".
  • Now paste the value copied earlier into the first text box.
  • Click on "Process"
  • You should get the repaired value now
  • Copy the repaired value back to your database and save the record.

Hope that helps.

The easiest way to solve a Drupal issue is to hand it to the Drupal experts. We can provide a wide range of Drupal services to help you maintain and manage your Drupal websites. Get in touch with us to know more.