Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
Hi,
i've just updated from drupal 7.43 to 7.50 + some fex modules and i come with the following error when trying to add (or edit) an entity refernced in a node :
Notice : Trying to get property of non-object in entityconnect_add() (ligne 43 in xxx/sites/all/modules/entityconnect/includes/entityconnect.menu.inc).
Exception : Entity type can not be empty in entityconnect_entityconnect_add_info() (ligne 96 in xxx/sites/all/modules/entityconnect/includes/entityconnect.menu.inc)
apparently $cache_id isn't set.
please help!!!
thx
stéfane
Comments
Comment #2
jygastaud CreditAttribution: jygastaud commentedHi,
I'm sorry but I can't reproduce that issue on a fresh install with node article containing a entity reference field to an other node.
What kind of entity did you try to create from the node form ?
Comment #3
jygastaud CreditAttribution: jygastaud commentedComment #4
jygastaud CreditAttribution: jygastaud commentedComment #5
caldenjacobs CreditAttribution: caldenjacobs commentedI'm experiencing a similar error as well when attempting to edit an ECK Entity via EntityConnect from a core Node Entity.
The error from the log is as follows:
Exception: Entity type can not be empty in entityconnect_eck_entityconnect_edit_info() (line 163 of /sites/all/modules/entityconnect/modules/entityconnect_eck/entityconnect_eck.module).
I'm using ECK-7.x-2.0-rc9.
Thoughts? Apologies if I should've opened another issue...
Comment #6
tobiasbComment #7
Dan Kennard CreditAttribution: Dan Kennard commentedI had similar issues and narrowed it down to the cache class (I was using Redis).
Adding the following to the settings file was enough to get me moving again:
$conf['cache_class_cache_entityconnect'] = 'DrupalDatabaseCache';
Comment #8
jsibley CreditAttribution: jsibley commented#7 was a huge help. Was getting a similar error and WSOD using memcache and now everything seems to be fine.
Thank you!
Comment #9
jygastaud CreditAttribution: jygastaud commentedThanks Dan for the tips and happy tout ses IT works for others.
I am moving the issue as a documentation issue and I will add a notice into project page and readme.