This issue is related to creating a custom content type in a Panopoly install.

After creating a custom content type, I enabled Panelizer on the content type for the various view modes included in Panopoly by default. After doing so, I wanted to override the Panelizer settings on the various view modes. So I tried to click the "list" link next to the various view modes of the new content type located at /admin/config/content/panelizer. However, I then get a WSOD when taken to /admin/config/content/panelizer/node/CUSTOM_CONTENT_TYPE.page_manager/list.

After this WSOD, I then get the following errors thrown when navigating to a different admin page:

Warning: array_key_exists(): The first argument should be either a string or an integer in ctools_get_plugins() (line 238 of /profiles/panopoly/modules/contrib/ctools/includes/plugins.inc).
Warning: array_key_exists(): The first argument should be either a string or an integer in ctools_get_plugins() (line 311 of /profiles/panopoly/modules/contrib/ctools/includes/plugins.inc).
Warning: array_key_exists(): The first argument should be either a string or an integer in ctools_get_plugins() (line 321 of /profiles/panopoly/modules/contrib/ctools/includes/plugins.inc).
Warning: Illegal offset type in isset or empty in ctools_plugin_load_includes() (line 459 of /profiles/panopoly/modules/contrib/ctools/includes/plugins.inc).
Warning: Illegal offset type in isset or empty in ctools_get_plugins() (line 324 of /profiles/panopoly/modules/contrib/ctools/includes/plugins.inc).
Warning: Illegal offset type in ctools_get_plugins() (line 324 of /profiles/panopoly/modules/contrib/ctools/includes/plugins.inc).
Warning: Illegal offset type in ctools_get_plugins() (line 334 of /profiles/panopoly/modules/contrib/ctools/includes/plugins.inc).
Warning: Invalid argument supplied for foreach() in panelizer_export_ui_switcher_page() (line 730 of /profiles/panopoly/modules/contrib/panelizer/panelizer.module).
Notice: Undefined index: redirect in panelizer_export_ui_switcher_page() (line 737 of /profiles/panopoly/modules/contrib/panelizer/panelizer.module).
Warning: Invalid argument supplied for foreach() in panelizer_export_ui_switcher_page() (line 737 of /profiles/panopoly/modules/contrib/panelizer/panelizer.module).

The only way I can successfully access the Panelizer settings for the view modes on the custom content type, is by navigating through the Structure menu: /admin/structure/types/manage/CUSTOM_CONTENT_TYPE/panelizer/

I thought I should mention this issue, in case this is an actual bug with the current distro that can be patched. Thanks very much for looking into this!

Comments

dsnopek’s picture

I'm able to reproduce this!

That said, I didn't even know the admin screen at /admin/config/content/panelizer existed until just now. :-) I always edit the Panelizer settings by going to /admin/structure/types/manage/CUSTOM_CONTENT_TYPE/panelizer/ which works just fine.

I found an issue for this in the Panelizer queue:

#1909266: Allow Panel Choice option causes WSOD

... but it's marked as "Closed (cannot reproduce)".

I tried with the latest Panelizer 3.x-dev code, it's fixed! (Although, the URLs have changed - it's now under Structure, so: /admin/structure/panelizer/node/CUSTOM_CONTENT_TYPE.page_manager/list

Marking this as related to the issue to update to the latest Panelizer:

#2429549: Update to latest Panelizer

labboy0276’s picture

Yes we have been experiencing this for well over a year now:

+1 if you can fix this.

Warning: array_key_exists(): The first argument should be either a string or an integer in ctools_get_plugins() (line 238 of /data/profiles/panopoly/modules/contrib/ctools/includes/plugins.inc).
Warning: array_key_exists(): The first argument should be either a string or an integer in ctools_get_plugins() (line 311 of /data/profiles/panopoly/modules/contrib/ctools/includes/plugins.inc).
Warning: array_key_exists(): The first argument should be either a string or an integer in ctools_get_plugins() (line 321 of /data/profiles/panopoly/modules/contrib/ctools/includes/plugins.inc).
Warning: Illegal offset type in isset or empty in ctools_plugin_load_includes() (line 459 of /data/profiles/panopoly/modules/contrib/ctools/includes/plugins.inc).
Warning: Illegal offset type in isset or empty in ctools_plugin_load_includes() (line 459 of /data/profiles/panopoly/modules/contrib/ctools/includes/plugins.inc).
Warning: Illegal offset type in isset or empty in ctools_plugin_load_includes() (line 459 of /data/profiles/panopoly/modules/contrib/ctools/includes/plugins.inc).
Warning: Illegal offset type in isset or empty in ctools_plugin_load_includes() (line 459 of /data/profiles/panopoly/modules/contrib/ctools/includes/plugins.inc).
Warning: Illegal offset type in isset or empty in ctools_plugin_load_includes() (line 459 of /data/profiles/panopoly/modules/contrib/ctools/includes/plugins.inc).
Warning: Illegal offset type in isset or empty in ctools_plugin_load_includes() (line 459 of /data/profiles/panopoly/modules/contrib/ctools/includes/plugins.inc).
Warning: Illegal offset type in isset or empty in ctools_plugin_load_includes() (line 459 of /data/profiles/panopoly/modules/contrib/ctools/includes/plugins.inc).
Warning: Illegal offset type in isset or empty in ctools_get_plugins() (line 324 of /data/profiles/panopoly/modules/contrib/ctools/includes/plugins.inc).
Warning: Illegal offset type in ctools_get_plugins() (line 324 of /data/profiles/panopoly/modules/contrib/ctools/includes/plugins.inc).
Warning: Illegal offset type in ctools_get_plugins() (line 334 of /data/profiles/panopoly/modules/contrib/ctools/includes/plugins.inc).
Warning: Invalid argument supplied for foreach() in panelizer_export_ui_switcher_page() (line 730 of /data/profiles/panopoly/modules/contrib/panelizer/panelizer.module).
Notice: Undefined index: redirect in panelizer_export_ui_switcher_page() (line 737 of /data/profiles/panopoly/modules/contrib/panelizer/panelizer.module).
Warning: Invalid argument supplied for foreach() in panelizer_export_ui_switcher_page() (line 737 of /data/profiles/panopoly/modules/contrib/panelizer/panelizer.module).

DamienMcKenna’s picture

Hopefully this will go away with the latest snapshot of Panelizer.

DamienMcKenna’s picture

Version: 7.x-1.19 » 7.x-1.x-dev