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.
cross posting a issue
https://www.drupal.org/node/2479169
as it seems that the '#entity_type' should be filled by protected node module after all!?
Comment | File | Size | Author |
---|---|---|---|
#11 | protected_node-use_element_children-2479177-11.patch | 1.07 KB | Grimreaper |
#7 | protected_node-fix_protected_node_protected_node_hide-2479177-7.patch | 961 bytes | Grimreaper |
Comments
Comment #1
GrimreaperHello,
Please could you give the steps to reproduce the bug?
Comment #2
jan.ptacek CreditAttribution: jan.ptacek commentedhere we go,
activate protected_node & eva modules
create a protected node
run a cron job
a watchdog warning will be reported from
function _eva_extract_entity_from_build (source: sites/all/modules/eva/eva.module)
and the cron will die without indexing new content for search etc
Comment #3
jan.ptacek CreditAttribution: jan.ptacek commentedComment #4
GrimreaperHello,
I think there are steps missing.
I made a fresh Drupal 7 install. eva-7.x-1.2 and the last dev version of protected node.
I followed the steps you mentionned and I have a successful cron execution.
Comment #5
jan.ptacek CreditAttribution: jan.ptacek commentedhi, thank you very much for digging into it!
I'll find out what else is needed to get the _eva_extract_entity_from_build executed.
Comment #6
GrimreaperI found why I didn't have the error. It was because I had disabled the core search module as I contribute on search_api_attachments.
Now I see it. I will try to provide a patch this weekend.
Comment #7
GrimreaperHello,
I finally found where the problem was.
In protected_node_protected_node_hide(), $node->content = array() removed the information needed for the other modules.
If this patch is ok, i will merge it.
Comment #8
GrimreaperMerged.
Thanks for reporting this.
Comment #10
izus CreditAttribution: izus commentedTo stick with Core functions we could have used https://api.drupal.org/api/drupal/includes!common.inc/function/element_c...
Comment #11
GrimreaperOk, I didn't know that function.
I can merge the following patch if you want.
Comment #12
izus CreditAttribution: izus commentedi'm ok, We should just add a comment to explain why we need to unset children.
Thanks
Comment #14
GrimreaperDone. Thanks.