We updated to 7.x-1.x-dev today. Every time we go to the home page we see this group of messages in the dblog.

Notice: Undefined index: body in ctools_custom_content_type_get_conf() (line 150 of ../ctools/plugins/content_types/custom/custom.inc).

Notice: Undefined index: title in ctools_custom_content_type_render() (line 177 of
../ctools/plugins/content_types/custom/custom.inc).

Notice: Undefined index: body in ctools_custom_content_type_render() (line 180 of
../ctools/plugins/content_types/custom/custom.inc).

Notice: Undefined index: format in ctools_custom_content_type_render() (line 185 of ../ctools/plugins/content_types/custom/custom.inc).

Along with these 4 we also get this message.

Notice: Trying to get property of non-object in ctools_custom_content_type_get_conf() (line 109 of ../ctools/plugins/content_types/custom/custom.inc).

Comments

enrique.delgado’s picture

I'm also seeing these watchdog entires anytime I go to any page on my site:

  • Notice: Undefined index: format in ctools_custom_content_type_render() (line 185 of [snip]/ctools/plugins/content_types/custom/custom.inc).
  • Notice: Undefined index: title in ctools_custom_content_type_render() (line 177 of [snip]/ctools/plugins/content_types/custom/custom.inc).

It's filling up the watchdog table very quickly :-/

oligas’s picture

Category: bug » support

Hi davipilot,

Look into your drupal database table panels_pane, for me this error was due to the presence of lines with type custom and subtype equals to content type deleted from the frontend.

I've deleted those lines and everything works fine now.

Hope it will help

Oligas

Carl Shuller’s picture

Version: 7.x-1.x-dev » 7.x-1.0-rc1

i am in the process of moving drupal from a sub-directory to root. I took a copy of the db and using dreamweaver (and wordpad initially) edited the .sql file to change all the hard coded paths (getting rid of the /sub-directory basically). Now I am getting the following error messages at the top of all panel pages. any direction would be most appreciated. thanks.

Notice: unserialize() [function.unserialize]: Error at offset 236 of 280 bytes in _ctools_export_unpack_object() (line 776 of /home/dailya5/public_html/sites/all/modules/ctools/includes/export.inc).
Notice: unserialize() [function.unserialize]: Error at offset 569 of 603 bytes in _ctools_export_unpack_object() (line 776 of /home/dailya5/public_html/sites/all/modules/ctools/includes/export.inc).
Notice: unserialize() [function.unserialize]: Error at offset 1126 of 1170 bytes in _ctools_export_unpack_object() (line 776 of /home/dailya5/public_html/sites/all/modules/ctools/includes/export.inc).
Notice: unserialize() [function.unserialize]: Error at offset 78 of 2122 bytes in _ctools_export_unpack_object() (line 776 of /home/dailya5/public_html/sites/all/modules/ctools/includes/export.inc).
Notice: unserialize() [function.unserialize]: Error at offset 6542 of 6546 bytes in _ctools_export_unpack_object() (line 776 of /home/dailya5/public_html/sites/all/modules/ctools/includes/export.inc).
Notice: unserialize() [function.unserialize]: Error at offset 231 of 275 bytes in _ctools_export_unpack_object() (line 776 of /home/dailya5/public_html/sites/all/modules/ctools/includes/export.inc).
Notice: unserialize() [function.unserialize]: Error at offset 493 of 517 bytes in _ctools_export_unpack_object() (line 776 of /home/dailya5/public_html/sites/all/modules/ctools/includes/export.inc).
Notice: unserialize() [function.unserialize]: Error at offset 610 of 634 bytes in _ctools_export_unpack_object() (line 776 of /home/dailya5/public_html/sites/all/modules/ctools/includes/export.inc).
Notice: unserialize() [function.unserialize]: Error at offset 1122 of 1156 bytes in _ctools_export_unpack_object() (line 776 of /home/dailya5/public_html/sites/all/modules/ctools/includes/export.inc).
Notice: unserialize() [function.unserialize]: Error at offset 7459 of 7473 bytes in _ctools_export_unpack_object() (line 776 of /home/dailya5/public_html/sites/all/modules/ctools/includes/export.inc).
Notice: Undefined index: title in ctools_custom_content_type_render() (line 168 of /home/dailya5/public_html/sites/all/modules/ctools/plugins/content_types/custom/custom.inc).
Notice: Undefined index: body in ctools_custom_content_type_render() (line 171 of /home/dailya5/public_html/sites/all/modules/ctools/plugins/content_types/custom/custom.inc).
Notice: Undefined index: format in ctools_custom_content_type_render() (line 176 of /home/dailya5/public_html/sites/all/modules/ctools/plugins/content_types/custom/custom.inc).
Notice: Undefined index: title in ctools_custom_content_type_render() (line 168 of /home/dailya5/public_html/sites/all/modules/ctools/plugins/content_types/custom/custom.inc).
Notice: Undefined index: body in ctools_custom_content_type_render() (line 171 of /home/dailya5/public_html/sites/all/modules/ctools/plugins/content_types/custom/custom.inc).
Notice: Undefined index: format in ctools_custom_content_type_render() (line 176 of /home/dailya5/public_html/sites/all/modules/ctools/plugins/content_types/custom/custom.inc).
Notice: Undefined index: title in ctools_custom_content_type_render() (line 168 of /home/dailya5/public_html/sites/all/modules/ctools/plugins/content_types/custom/custom.inc).
Notice: Undefined index: body in ctools_custom_content_type_render() (line 171 of /home/dailya5/public_html/sites/all/modules/ctools/plugins/content_types/custom/custom.inc).
Notice: Undefined index: format in ctools_custom_content_type_render() (line 176 of /home/dailya5/public_html/sites/all/modules/ctools/plugins/content_types/custom/custom.inc).
Notice: Undefined index: title in ctools_custom_content_type_render() (line 168 of /home/dailya5/public_html/sites/all/modules/ctools/plugins/content_types/custom/custom.inc).
Notice: Undefined index: body in ctools_custom_content_type_render() (line 171 of /home/dailya5/public_html/sites/all/modules/ctools/plugins/content_types/custom/custom.inc).
Notice: Undefined index: format in ctools_custom_content_type_render() (line 176 of /home/dailya5/public_html/sites/all/modules/ctools/plugins/content_types/custom/custom.inc).

xxshane101’s picture

Issue summary: View changes

So I was running into the same problem. I finally got this all fixed. Here is the exact error I was getting.

Notice: unserialize(): Error at offset 103 of 700 bytes in _ctools_export_unpack_object() (line 820 of /home/accnet/public_html/whales/sites/all/modules/ctools/includes/export.inc).
Notice: Undefined index: body in ctools_custom_content_type_get_conf() (line 150 of /home/accnet/public_html/whales/sites/all/modules/ctools/plugins/content_types/custom/custom.inc).
Notice: Undefined index: title in ctools_custom_content_type_render() (line 177 of /home/accnet/public_html/whales/sites/all/modules/ctools/plugins/content_types/custom/custom.inc).
Notice: Undefined index: body in ctools_custom_content_type_render() (line 180 of /home/accnet/public_html/whales/sites/all/modules/ctools/plugins/content_types/custom/custom.inc).
Notice: Undefined index: format in ctools_custom_content_type_render() (line 185 of /home/accnet/public_html/whales/sites/all/modules/ctools/plugins/content_types/custom/custom.inc).

Here is the Solution:

s:9:"my string";

s - datatype (in this case string)

9 - length of the data

"my string" - the data

In the table: Panels_Pane I have the the type and subtype set to custom now. If you delete these fields it can fix the error partially but the content will still not show on the page. In order to truly fix the error you have to adjust the "s:" to the correct length of the string. If you manually changed anything inside this field and didn't change the string length you will continue to see this error. I just copied the text into Notepad++ and took and adjusted the character length.:

a:5:{s:11:"admin_title";s:19:"Contact information";s:5:"title";s:19:"Contact information";s:4:"body";"

If you still get this error then you might have a string length offset somewhere still within that specific pane.

YOU HAVE TO INCLUDE HTML TAGS IN THE CHARACTER LENGTH.

leopinzon’s picture

Another approach:
I had exactly the same problem with the same errors. Finally after digging around I found the problem was that a certain custom content pane was deleted before removing it from the panel pane - display. The workaround is to delete it from the display itself. You will find it as a custom content pane without body, title, anything.

Hope this helps.

mustanggb’s picture

Status: Active » Closed (outdated)