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

meomec created an issue. See original summary.

jygastaud’s picture

Hi,

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 ?

jygastaud’s picture

Status: Active » Postponed (maintainer needs more info)
jygastaud’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)
caldenjacobs’s picture

Version: 7.x-2.x-dev » 7.x-2.0-rc1
Category: Support request » Bug report
Status: Closed (cannot reproduce) » Active

I'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...

tobiasb’s picture

Assigned: meomec » Unassigned
Dan Kennard’s picture

I 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';

jsibley’s picture

#7 was a huge help. Was getting a similar error and WSOD using memcache and now everything seems to be fine.

Thank you!

jygastaud’s picture

Component: Code » Documentation

Thanks 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.

astonvictor’s picture

Status: Active » Closed (outdated)

D7 reached its EOL back in January 2025, and there is no active release for D7 for this module anymore.
Development or support is not planned for D7. All D7-related issues are marked as outdated in a bunch.

Now that this issue is closed, please review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, please credit people who helped resolve this issue.