Invalid or Empty Node passed to getItem constructor.

Permalink 1 user found helpful
On a site running 5.7.5.13. I am getting this error message when I try to run the 'Index Search Engine - All' Automated job:

==
Invalid or Empty Node passed to getItem constructor.
==

Nothing is recorded in logs when it happens.

Has anyone come across this error, or point me in a direction to try and troubleshoot?

NB: I have seen this post:https://www.concrete5.org/community/forums/5-7-discussion/index-sear... - which menitons the same error occurring. I have deleted all old pages from the trash, but it hasn't fixed the issue.

Thanks.

drbiskit
 
drbiskit replied on at Permalink Best Answer Reply
drbiskit
* UPDATE *

This was being caused by a page type that had a custom attribute included in the Pages & Themes -> Page Types -> Edit Form -> Compose Form. At some point that custom attribute had been removed from the site, but it was still showing in the 'Edit Form' setup page. Once I removed that from the Edit form, everything worked as normal.

Marking this as best answer in case anyone else come across it.
Gondwana replied on at Permalink Reply
Gondwana
Good catch. Arguably this is a reportable bug: leaving a reference to a deleted thing shouldn't happen.
drbiskit replied on at Permalink Reply
drbiskit
Agreed! I wanted to test it on a clean install first to see if still happens before reporting as a bug. It's a site I have inherited from someone else, so I'm not entirely sure of what has happened and when. Will follow it up.
Cheers.