Bug #20744 Version Retired

Undefined Offset in relationship_parser/Parser.php line 52

Version: 2.9.2 Reporter: Brian Litzinger

This is an archived bug report. If you are experiencing a similar issue, upgrade to the latest release and if that does not solve the problem, submit a new bug report

I’m getting an error on a page that contains a relationship tag. Basically that entry() accessor is not finding the expected entry_id in the array. In my case, entries 190, 191, and 192. I checked the database for the existence of those entries and they do not exist. I’m not as familiar with this part of the codebase and not feeling adventurous enough to dig into why it thinks it should try to find those 2 entries.

I do have Publisher installed and I assumed Publisher might be causing the error, but I also disabled it and can replicate the error. As you can see by the second screenshot the stack trace doesn’t even touch 3rd party add-ons. I do not have any caching enabled.

Perhaps this should check for the existence of the array key before trying to access it?

Screenshot of error
https://www.evernote.com/shard/s9/sh/d6242fc5-0a99-4cbb-9978-6cd52d1c2dc8/317d156594f87b75c8f472aaf0c29fbe

Screenshot of code
https://www.evernote.com/shard/s9/sh/623edbd1-0393-427c-9c82-6df3fa44a84f/486b6dcb7ad6903057e7472fec247692

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases