Closed (fixed)
Project:
ECK Page Manager
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
26 Aug 2015 at 03:18 UTC
Updated:
1 Nov 2015 at 16:44 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
mnico commentedHi joelpittet, I tried to reproduce the issue but I couldn't. Please can you tell me step by step what you did?
Thanks
Comment #3
joelpittetUsing latest dev of eck & panels & ctools on a production site with many patches. Sorry for the driveby issue I just wanted to bookmark the error I saw while trying out the module.
I'll do this on a fresh (unpatched) site to see if it's reproducible. Of course you must have notices turned on to see these in your environment, but I'm sure you've got that box checked.
Comment #4
joelpittetCan't reproduce the error with or without my patches in clean Drupal install.
Drupal 7.38, eck 7.x-2.x-dev, eck_pm 7.x-1.0-beta3+2-dev
Enable eck_example
Add a employee bundle with the name property enabled.
Go to Page Manager and enable eck_pm_entity_view-eck_employee_view and edit and get all the way to the end.
Comment #5
joelpittetSeems one of my entities on my product site is missing a bundle or something.
It is being picked up in
eck_pm_properties_form_content_type_content_types()on line 40. when it callseck_property_behavior_invoke_plugin().Comment #6
joelpittetUpdate: its only on my one ECK entity that I have entity translation language property enabled(which I don't need). But FYI incase someone else mentions this. It's likely an ECK + entity translation problem.
Comment #7
joelpittetYup confirmed if I remove the 'Entity language' property the notice magically goes away, and it doesn't even have to be on the ECK entity you are panelizing, I had that property on a 'Section' entity type and was panelizing a 'Product recommendation' entity type.
This makes me think that function is asking for more than it's fair share of entity type info.
Comment #8
markus_petrux commentedPlease, let me re-open the issue because it happened to us as well, and I think I found the cause. I'll post a patch asap, but the notice origin, in our case, is located in file eck_pm/plugins/content_types/properties_form.inc, function eck_pm_properties_form_content_type_content_types() when it invoked entity_create() with no information about the bundle.
Since I'm not sure where to get the bundle in this point, and a simple fix works for us... here's a code change that avoids the notice.
Comment #9
markus_petrux commentedThe patch.
Comment #11
mnico commentedWell done, i tested this patch with "entity translation" and works very well
thanks
Comment #12
mnico commentedComment #13
mnico commented