Actions
Bug #88437
closedAdminpanel: setting "simulateDate" to a timestamp value lower than 60 crashes the frontend
Status:
Closed
Priority:
Should have
Assignee:
Category:
AdminPanel
Target version:
Start date:
2019-05-25
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
10
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:
Description
Imagine this TSConfig:
admPanel {
enable.preview = 1
override.preview = 0
override.preview.simulateDate= 10
}
Setting simulateDate to a value lower than 60 seconds crashes the frontend with an unhandled runtime exception:
accessTimeStamp needs to be set to an integer value, but is empty! Maybe $GLOBALS['SIM_ACCESS_TIME'] has been overridden somewhere?
because of the following line in PreviewModule::initializeFrontendPreview():
$GLOBALS['SIM_ACCESS_TIME'] = $simTime - $simTime % 60;
Actions