Bug #63650
closedenableFields WHERE clause filter reference check (Contains Fix Patch)
0%
Description
sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php
Line 7276 should be wrapped in an if:
return $GLOBALS['TSFE']->sys_page->enableFields($table, $show_hidden, $ignore_array);
if(is_object($GLOBALS['TSFE']->sys_page)){ return $GLOBALS['TSFE']->sys_page->enableFields($table, $show_hidden, $ignore_array); }
otherwise throws Fatal Error with cal extension scheduler call because of NULL reference
Updated by Markus Klein almost 10 years ago
- Status changed from New to Needs Feedback
- Target version deleted (
next-patchlevel) - % Done changed from 90 to 0
This is a bug of the extension. ContentObjectRenderer should only be used for frontend and not from within a CLI context.
Updated by Friesen Kiwi almost 10 years ago
Hm, might be, but then the API should prevent usage within a CLI context (private method etc.?). If you look at the function seperately, it is susceptible to NULL pointer fatal errors, which shouldn't be the case. If usage of the class has some precondition, it should check for it and fail graceful. :-)
Happy new year!
Updated by Markus Klein almost 10 years ago
- Status changed from Needs Feedback to Rejected
Don't know how a private method should help, but the class is already in the "frontend" sysext. I consider that already a good hint about its usage.
Generally we have way too many public methods around, but that is due to history.