This happens when saving a content page (this may be panelizer's fault, not sure)

Notice: Trying to get property of non-object in ctools_entity_field_content_type_admin_title() (line 265 of /ctools/plugins/content_types/entity_context/entity_field.inc).

This has a custom panelizer page (I think, I want to get this started before I forget). It's referrer is http://dev.only-in.gotpantheon.com/node/add/panopoly-page. I think this is using the node_view template.

The page saves just fine.

CommentFileSizeAuthor
#5 ctools-n1828534-5.patch801 bytestobby
#2 ctools-n1828534-2.patch933 byteskscheirer
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

esmerel’s picture

Ah, it's a panelizer page with custom content; if I view the panelizer page for admin/config/content/panelizer/node/panopoly_page.page_manager/content I get the same error.

kscheirer’s picture

Status: Active » Needs review
FileSize
933 bytes

I'm seeing the same problem. Not using panopoly, but am using panelizer and panels_ipe.

This is the quick-and-very-dirty solution. I don't know the modules involved well enough, but this will at least prevent the error from being generated. May cause the admin title of your pane to come out funnily.

Status: Needs review » Needs work

The last submitted patch, ctools-n1828534-2.patch, failed testing.

tobby’s picture

I rerolled the patch in #2 so that it would be a p1 patch. Once I did that, the patch worked for me (at least, made the PHP warnings go away).

tobby’s picture

FileSize
801 bytes

Oh, and the patch that I forgot to attach...

lauriii’s picture

At least it hides the errors away

jeffschuler’s picture

Check out the admin/config/content/panelizer/node/panopoly_page.page_manager/content page that @esmerel referenced. You might have deleted the taxonomy vocab that is still being included on a panel pane.

kscheirer’s picture

Status: Needs work » Needs review

needs review for testbot on #5. thanks for cleaning up the path!

Status: Needs review » Needs work

The last submitted patch, 5: ctools-n1828534-5.patch, failed testing.

mrjmd’s picture

Issue summary: View changes
Status: Needs work » Needs review

I don't think this is still relevant. Function ctools_entity_field_content_type_admin_title() now checks for $context->identifier and if it does not exist uses t('Unknown').

DamienMcKenna’s picture

Status: Needs review » Closed (duplicate)