Cal indexer fails in TYPO3 7.6
I tried to upgrade my TYPO3 installation from 7.5 to 7.6 and also upgraded to the newest version of Cal from github: The Cal Indexer breaks when I try to run it with sensible input:
Fatal error: Call to a member function enableFields() on a non-object in /var/www/typo3sources/typo3sources/typo3_src-7.6.0/typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php on line 7880
I have not tried to set up a scheduled task with the newest version, but my guess is, that will fail too, which means I am not able to produce recurring events in any way.
#5 Updated by Stig Nørgaard Færch over 4 years ago
- File 0001-BUGFIX-Bug-71667-Cal-indexer-fails-in-TYPO3-7.6.patch.txt View added
- % Done changed from 0 to 50
This patch works for me both when running the CalIndexer from the module and from the scheduler.
Instead of using enableFields of the contentObjectRenderer class, I use BEenableFields of BackendUtility instead, though with a fallback to enableFields as I'm not completely sure if we are always in BE mode.
#8 Updated by dermueller no-lastname-given about 4 years ago
The patch misses that \TYPO3\CMS\Backend\Utility\BackendUtility::BEenableFields('tx_cal_event_deviation') does not include the "deleted" flag. At least not in TYPO3 6.2. So Indexing will always re-index already deleted deviation records. This produces an error in frontend.
Changing it to \TYPO3\CMS\Backend\Utility\BackendUtility::BEenableFields('tx_cal_event_deviation').\TYPO3\CMS\Backend\Utility\BackendUtility::deleteClause('tx_cal_event_deviation'); helped me.