When loading a page containing the default ptoc block, I have had this error:
Notice : Undefined index: title dans template_preprocess_node() (/var/www/html/htdocs/core/modules/node/node.module ligne 616)
Commenting the template_preprocess_ptoc_node(&$variables) circumvents this error.
Drupal 8.5.4
Paragraphs 8.x-1.3
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | 2979629-ptoc-6.patch | 713 bytes | benjifisher |
| #2 | KCpqBHbvrZj1OYWkm2Ny.patch | 456 bytes | saurabh.dhariwal |
Comments
Comment #2
saurabh.dhariwal commented@Dakwamine, I also got the same error as shown above, in my attached patch I provide the solution to remove this error. Can you please try with my patch. Let me know your views for the same.
Thanks!..
Comment #3
jhereck commentedYour patch is not working saurabh.dhariwal.
Comment #4
jhereck commentedComment #5
jhereck commentedComment #6
benjifisherNote the code comment in
ptoc.module:I think that problem was fixed in #2559825: Preprocess functions from base hooks not triggered for theme hooks not using the __ pattern, so I can just remove the two preprocess functions.
Please try the attached patch.
Comment #7
jhereck commentedIt's working !
Thanks
Comment #9
benjifisher@jhereck:
I will take that comment as the equivalent of RTBC. Next time, please update the issue status to make it official. Standards for contrib modules, especially those with small user bases like this one, are lower than for Drupal core.
Thanks to everyone who participated on this issue!