Problems with Panels and features export after upgrade

We encourage users to post events happening in the community to the community events group on https://www.drupal.org.
Anonymous's picture

After upgrading our install from 7.x-2.13 to 7.x-2.17 there appears to be some problems with panels, possibly related to features export.

The Breadcrumbs and Toolbar Menu Button are no longer showing on our site. On
Edit mini panel oa_toolbar_panel under admin I get a whole list of notices like:

Notice: Undefined property: stdClass::$type in panels_renderer_standard->prepare_panes() (line 237 of /var/www/profiles/openatrium/modules/contrib/panels/plugins/display_renderers/panels_renderer_standard.class.php).

Notice: Undefined property: stdClass::$configuration in panels_renderer_editor->render_pane() (line 113 of /var/www/profiles/openatrium/modules/contrib/panels/plugins/display_renderers/panels_renderer_editor.class.php).

The Breadcrumbs and Toolbar Menu Button panes are showing in the editor as Deleted/missing content type (see attached screenshot).

On the module admin pages I get a list of notices like:

Notice: Undefined property: stdClass::$pid in panels_export_display() (line 1060 of /var/www/profiles/openatrium/modules/contrib/panels/panels.module).

Notice: Undefined offset: 1 in conditional_fields_features_export_render() (line 49 of /var/www/profiles/openatrium/modules/contrib/conditional_fields/includes/conditional_fields.features.inc).

I think something has gone wrong with the features override, but I'm not sure what - I'd be very grateful if anyone has any suggestions. Before I upgraded I selected all items under Feature Overrides and exported the features, then reverted and finally installed the exported features and as far as I can tell I've followed all the steps in the upgrade instructions.

Thanks,
Ben

AttachmentSize
oa-mini-panels-error.png26.57 KB

Comments

Need help too

potassiumchloride's picture

I'm also having trouble with customizations and features overrides. Looking forward to some answers from other folks.

The "Deleted/missing content

dsnopek's picture

The "Deleted/missing content type" error means that the code or configuration that is declaring that pane has gone away. This usually happens for one of two reasons: (1) the code (or configuration) has actually been deleted or (2) the data in the Drupal cache is messed up such that Drupal thinks it's been deleted.

So, first thing: I'd try clearing the Drupal cache several times in a row. You can do this with drush cc all or by going to Configuration -> Development -> Performance and clicking the button to clear all caches.

If that doesn't work, check the filesytem and make sure the necessary code is still present on disk. The "oa_dashboard-oa_breadcrumb" pane is defined by a file that should be located here: profile/openatrium/modules/contrib/oa_core/modules/oa_dashboard/oa_dashboard.module.

Also, this pane is actually a Drupal block. So, make sure the "block" module is enabled.

I hope one of those ideas helps! Please let me know. :-)

Best regards,
David.

Thanks

Anonymous's picture

Many thanks for your suggestions David. I've cleared the cache 3 times in a row and have checked the module file exists and that the 'block' module is enabled - the file does exist and block is enabled, so unfortunately it looks like that's not the issue.

One interesting thing I've found is that if I disable the module that contains my feature overrides, the "Deleted/missing content type" errors and the php notices disappear and the breadcrumbs and admin button become available again. Do you think something went wrong when I did my pre-upgrade features export? Before I upgraded I simply selected all items under 'Feature Overrides' and exported those.

Thanks,
Ben

Hrm, yeah, I suppose

dsnopek's picture

Hrm, yeah, I suppose something could be in your Feature that could be breaking those panels. However, I'm not sure what it could be. :-/ Sorry I couldn't be more help!

Looks like it's my Feature

Anonymous's picture

I've experimented with omitting specific overrides from my Feature and it’s definitely the ‘panels_mini’ overrides that are breaking my mini panels. The ‘panelizer_defaults’ overrides also seem to breaking things too – they result in $pane->pid being undefined which is causing various notices and issues. I think my only realistic option will be to omit these overrides from my Feature and manually recreate my customisations.

Even with my Feature disabled I’m still getting the following notice on the main modules page

Notice: Undefined offset: 1 in conditional_fields_features_export_render()
(line 49 of /var/www/profiles/openatrium/modules/contrib/conditional_fields/
includes/conditional_fields.features.inc).

I've put in a bit of debug and it looks like the invalid data is originating from the OA Clone module - not sure if this is anything worth worrying about or not.

Thanks for your help,
Ben

Open Atrium

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: