Project

General

Profile

Actions

Bug #91225

closed

TYPO3 v9.1.15 Admin-Panel, Simulate FE-Time not working

Added by Gabriel Kaufmann / Typoworx NewMedia almost 4 years ago. Updated over 1 year ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
AdminPanel
Start date:
2020-04-28
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
9
PHP Version:
7.2
Tags:
TYPO3-9.1.15 Simulate Time
Complexity:
Is Regression:
Sprint Focus:

Description

The Admin-Panel function Simulate FE-Time is not working at all in TYPO3 version 9.1.15! Submitting the Admin-Panel form with changed "simulate date/time" will change the given date/time after submiting. The frontend doesn't actually seem to get the desired time, so records with start/stop time do not behave as expected!

After a long journey to find any configuration error in TYPO3 or PHP-Environment a downgrade to TYPO3 v9.1.14 worked to fix the issue. This indeed implies there must be any bug in TYPO3 Admin-Panel for v9.1.15 core.


Related issues 3 (0 open3 closed)

Related to TYPO3 Core - Bug #91083: Preview setting "showHiddenRecords" in the admin panel does not work.ClosedChristian Eßl2020-04-17

Actions
Related to TYPO3 Core - Bug #94596: How to deactivate "simulate time" in adminpanel? Status of simulations not clear enoughClosed2021-07-20

Actions
Related to TYPO3 Core - Bug #97719: TYPO3 v11.5.10 Admin-Panel, Simulate FE-Time not workingClosed2022-06-01

Actions
Actions #1

Updated by Thomas Hempel almost 4 years ago

I confirm, that this is still (or again) an issue in version 9.5.17

Actions #2

Updated by Björn Prothmann almost 4 years ago

Same in 9.5.18

Actions #3

Updated by Rémy DANIEL almost 4 years ago

I found that the PreviewSimulator middleware clear the DateTimeContext set by the admin panel's PreviewModule middleware.

Disabling the PreviewSimulator middleware fix the issue for my use case.

Actions #4

Updated by Rémy DANIEL almost 4 years ago

  • Related to Bug #91083: Preview setting "showHiddenRecords" in the admin panel does not work. added
Actions #5

Updated by Sascha Löffler almost 4 years ago

I can confirm it for TYPO3 v9.5.19.

This patch solves the display of the timed content elements
https://review.typo3.org/c/Packages/TYPO3.CMS/+/64491

but it does still not show the "Preview" box on the site (which i suspect is the expected behavior if i look at the code.)

So i had not only to delete the `$GLOBALS['TSFE']->clear_preview();` call, but also add

if ($queryTime === false && $GLOBALS['SIM_ACCESS_TIME'] !== $GLOBALS['ACCESS_TIME']) {
    $queryTime = $GLOBALS['SIM_ACCESS_TIME'];
}

to the `simulateDate` method because ADMCMD_simTime is not filled when setting the simulation time using the admin panel.

see:
https://github.com/lsascha/TYPO3.CMS/commit/59c23fd2d43e2676e8fa8eb69f40ef9a69f399c8

Actions #6

Updated by Stefan Berger over 3 years ago

we could confirm the bug and the proposed bugfix

Actions #7

Updated by Sybille Peters almost 3 years ago

  • Related to Bug #94596: How to deactivate "simulate time" in adminpanel? Status of simulations not clear enough added
Actions #8

Updated by Gerrit Code Review over 2 years ago

  • Status changed from New to Under Review

Patch set 1 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/72825

Actions #9

Updated by Gerrit Code Review over 2 years ago

Patch set 2 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/72825

Actions #10

Updated by Gerrit Code Review over 2 years ago

Patch set 3 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/72825

Actions #11

Updated by Gerrit Code Review over 2 years ago

Patch set 4 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/72825

Actions #12

Updated by Gerrit Code Review over 2 years ago

Patch set 1 for branch 11.5 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/72872

Actions #13

Updated by Susanne Moog over 2 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #14

Updated by Thomas Sam Wittich almost 2 years ago

  • Related to Bug #97719: TYPO3 v11.5.10 Admin-Panel, Simulate FE-Time not working added
Actions #15

Updated by Benni Mack over 1 year ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF