+2010-06-19 Francois Suter <francois@typo3.org>
+
+ * Fixed bug: #14184: Scheduler: Handle invalid serialized exception objects
+
2010-06-19 Stanislas Rolland <typo3@sjbr.ca>
* Fixed bug #14464: htmlArea RTE: Type of block accumulation if the block is manually selected in Safari
// Check if the last run failed
$failureOutput = '';
if (!empty($schedulerRecord['lastexecution_failure'])) {
+ // Try to get the stored exception object
$exception = unserialize($schedulerRecord['lastexecution_failure']);
- $failureDetail = sprintf($GLOBALS['LANG']->getLL('msg.executionFailureReport'), $exception->getCode(), $exception->getMessage());
+ // If the exception could not be unserialized, issue a default error message
+ if ($exception === FALSE) {
+ $failureDetail = $GLOBALS['LANG']->getLL('msg.executionFailureDefault');
+ } else {
+ $failureDetail = sprintf($GLOBALS['LANG']->getLL('msg.executionFailureReport'), $exception->getCode(), $exception->getMessage());
+ }
$failureOutput = ' <img ' . t3lib_iconWorks::skinImg(t3lib_extMgm::extRelPath('scheduler'), 'res/gfx/status_failure.png') . ' alt="' . htmlspecialchars($GLOBALS['LANG']->getLL('status.failure')) . '" title="' . htmlspecialchars($failureDetail) . '" />';
}
<label index="msg.noTasks">No tasks defined yet.</label>
<label index="msg.notExecuted">Not executed: %s</label>
<label index="msg.executionFailed">Execution of task "%1$s" failed with the following message: %2$s</label>
+ <label index="msg.executionFailureDefault">The execution failed, but the error message could not be retrieved (it was probably too large). Sorry.</label>
<label index="msg.executionFailureReport">Execution failed: %1$d, %2$s</label>
<label index="msg.noStartDate">Please define a start date.</label>
<label index="msg.invalidStartDate">Start date is invalid.</label>