I am receiving these five notices which correspond to several missing images and a slideshow of images throughout my company's website. I have had no luck in finding any resolutions to fixing the missing pictures and slideshow. I have found a few instances throughout the Drupal forum with notices similar to these, but none of the suggestions have worked. Any help would be greatly appreciated.

Notice: unserialize() [function.unserialize]: Error at offset 559 of 617 bytes in _ctools_export_unpack_object() (line 815 of C:\...\sites\all\modules\ctools\includes\export.inc).

Notice: Undefined index: body in ctools_custom_content_type_get_conf() (line 150 of C:\...\sites\all\modules\ctools\plugins\content_types\custom\custom.inc).

Notice: Undefined index: title in ctools_custom_content_type_render() (line 177 of C:\...\sites\all\modules\ctools\plugins\content_types\custom\custom.inc).

Notice: Undefined index: body in ctools_custom_content_type_render() (line 180 of C:\...\sites\all\modules\ctools\plugins\content_types\custom\custom.inc).

Notice: Undefined index: format in ctools_custom_content_type_render() (line 185 of C:\...\sites\all\modules\ctools\plugins\content_types\custom\custom.inc).

Comments

bryancasler’s picture

Getting a ton of these myself.

Carl Shuller’s picture

Did you ever resolve this issue? I am having the same problem.

c.l.murphy’s picture

Does anyone have a solution for this? I'm seeing exactly the same problem. Not a problem on my development site but when I updated the database (via import) to the server, I'm now getting these errors.

john_b’s picture

There is an uninformative issue https://drupal.org/node/1444300 - but probably not Ctools issue at all. You probably have some corrupt or badly formed data. The basic method of finding a solution is here http://www.nicklitten.com/blog/annoying-drupal-error-notice-unserialize-... except that post relates to problems in the 'variables' table so you have to work out which table the problem data is in and do a SELECT on that table.

It is possible that the db is corrupt and simply redoing the import will fix it.

Digit Professionals specialising in Drupal, WordPress & CiviCRM support for publishers in non-profit and related sectors

sameth33’s picture

My fix for Notice: unserialize() [function.unserialize]: Error at offset x by x

My issue pertains to panels and ctools

I had ran a mysql database replace/update to update the path for files\media and started to get similar notices as wolfethomasj.

I resolved this notice messages by resave each panel pane and mini-panel where file reference path were changed. I resaved by going into each panel and adding and remove a space at the end, then hitting save and update. - This resolved the issue. I did not have that many panel panes to go through.

Main cause is that panel panes and mini-panel save content in unserialize form. When you change the something manually in the database, it's doesn't update the string length. Resaving panel content causes a re-count so that s:{some number} length will be counted and resaved.

Hope this helps. It took me several hours to figure this out.