I am getting this error on my site.

Notice: unserialize() [function.unserialize]: Error at offset 1009 of 1036 bytes in views_db_object->load_row() (line 2243 of /hermes/bosweb/web053/b536/d5.amberlight/public_html/AmberlightProductions/sites/all/modules/views/includes/view.inc).

I have tried accessing the file view.inc and changing unserialize to serialize on line 2243 but that just made my site load white pages when I tried to update modules or clear cache.

Any I idea what I should do to fix it?

Comments

dawehner’s picture

Status: Active » Fixed

Well, the view stored in the database seems to be broken, so you probably have to rebuild it from scratch or get some guru knowledge how to fix broken serialized output.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

memcinto’s picture

I was also getting these errors, on a site running Views 7.x-3.7. I disabled ALL views, just the module is enabled. No Views. Cleared cache a bunch of times etc. Was still getting these errors.

Notice: unserialize(): Error at offset 685 of 5020 bytes in views_db_object->load_row() (line 2251 of /var/www/[mysite]/sites/all/modules/views/includes/view.inc).
Notice: unserialize(): Error at offset 420 of 22550 bytes in views_db_object->load_row() (line 2251 of /var/www/[mysite]/sites/all/modules/views/includes/view.inc).
Notice: unserialize(): Error at offset 5378 of 6179 bytes in views_db_object->load_row() (line 2251 of /var/www/[mysite]/sites/all/modules/views/includes/view.inc).

Errors were occurring when visiting multiple locations on the site, including the home page, the list of modules page, etc.

However, when I DELETED all custom Views (not just disabling them), the errors went away.