Details
Description
Cronjob indexing content crashes, if there's not version for an object to be indexed. The currentVersion object is being used without any check for its existance.
Fix is trivial.
Sample output:
Running cronjobs/indexcontent.php Indexing object ID #284 Fatal error: Call to a member function on a non-object in /ez/master/kernel/search/plugins/ezsearchengine/ezsearchengine.php on line 74 Fatal error: eZ publish did not finish it's request The execution of eZ publish was abruptly ended, the debug output is present below.
Steps to reproduce
- set DelayedIndexing in site.ini to enabled
- enable cronjob for content indexing
- add or change some contentobjects in a way so there's no contentobject version
- the indexer crashes