Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Comment | File | Size | Author |
---|---|---|---|
#5 | ctools-n1828534-5.patch | 801 bytes | tobby |
#2 | ctools-n1828534-2.patch | 933 bytes | kscheirer |
Comments
Comment #1
esmerel CreditAttribution: esmerel commentedAh, 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.
Comment #2
kscheirerI'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.
Comment #4
tobby CreditAttribution: tobby commentedI 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).
Comment #5
tobby CreditAttribution: tobby commentedOh, and the patch that I forgot to attach...
Comment #6
lauriiiAt least it hides the errors away
Comment #7
jeffschulerCheck 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.Comment #8
kscheirerneeds review for testbot on #5. thanks for cleaning up the path!
Comment #11
mrjmd CreditAttribution: mrjmd commentedI 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').
Comment #12
DamienMcKennaThis was fixed by #2012188: IPE tries getting title for removed entity fields content, resulting in PHP warning.