I am receiving this error for anonymous users when I give them permissions to access password protected nodes.

    Notice: Undefined index: #entity_type in _eva_extract_entity_from_build() (line 152 of /home/test/public_html/sites/all/modules/eva/eva.module).
    Notice: Undefined index: #entity_type in _eva_extract_entity_from_build() (line 157 of /home/test/public_html/sites/all/modules/eva/eva.module).
    Notice: Undefined index: #entity_type in _eva_extract_entity_from_build() (line 160 of /home/test/public_html/sites/all/modules/eva/eva.module).
    EntityMalformedException: Missing bundle property on entity of type node. in entity_extract_ids() (line 7501 of /home/test/public_html/includes/common.inc).

It completely breaks the site when permissions are set for anonymous users, authenticated users can still browse the site if they are logged in.

Comments

jsheffers’s picture

Priority: Normal » Critical

Any ideas on this? This module is not usable without it at least for D7...

zilverdistel’s picture

Priority: Critical » Major

Hi jsheffers,

The Notices are related to http://drupal.org/project/eva. Did you allready create an issue in their issue queue?

Can you define the steps I need to do starting from a clean drupal install to reproduce this behavior?

Resetting the priority to major, since there seems to be no risk for data loss.

Thanks,

Diederik

amontero’s picture

I can confirm it's an EVA issue, since I'm getting the same error and I don't have Protected Node installed in my site.

idflood’s picture

Status: Active » Closed (cannot reproduce)

I tried to reproduce this issue just in case but didn't succeeded. I enabled the "view protected content" permission on anonymous users and tried to access some protected pages, no errors : )

idflood’s picture

Possible related issue at #1298864: Error while viewing nodes with field collections when eva module enabled
If this is correct, simply updating eva module to latest dev version should be enough to fix this.

jlsevillano’s picture

I have the same problem. I think the problem is EVA+Protected node. With admin user, i haven't the notice, but with another user appers.

•Notice: Undefined index: #entity_type in _eva_extract_entity_from_build() (line 202 of /data/www/ecreee_dev/sites/all/modules/eva/eva.module).
•Notice: Undefined index: #entity_type in _eva_extract_entity_from_build() (line 207 of /data/www/ecreee_dev/sites/all/modules/eva/eva.module).
•Notice: Undefined index: #entity_type in _eva_extract_entity_from_build() (line 210 of /data/www/ecreee_dev/sites/all/modules/eva/eva.module).

* Lines aren't the same, because i put some comment code.

Somebody knows o find any solution?

steveoriol’s picture

Same problem on each cron... it is blocking the search indexing.
when I disable "Protected node" it is working normally.
No solution at the moment ?