TYPO3 Forger
  • Dashboard
  • Get involved
  • Reviews
    Overview Ready for review Work in progress Needs action Needs review Needs verification Needs rebase Negative votes Reviewed and verified Ready to merge
  • Issues
    Stale issues Possible duplicates By category By month
  • Sprints
    Overview Initiatives TYPO3 Core Review board
  • Tools
    Backports ReST helper
  • Help
  • Search
  • Login
Esc

Words find the open ones, a number the issue and the change with it.

  1. Issues
  2. #103588
Issue Bug Closed

#103588PreviewSimulator for time restricted pages

Rafał Jania 04/10/24, 12:26 updated 07/09/24, 15:37

Open in Forge Comment in Forge

Description

From v12.4.14 the Preview of expired pages doesn’t work anymore.

How to reproduce?
1. For one page, set the ‘Expiration Date’ in the past
2. Right click on that page -> ‘Show’

The error is shown:

DateTimeImmutable::setTimestamp(): Argument #1 ($timestamp) must be of type int, string given

in /var/www/html/app/site/vendor/typo3/cms-frontend/Classes/Middleware/PreviewSimulator.php line 172

Reviews 3

  • 11.5 83757[BUGFIX] Cast simulated timestamp to int Resolves this issue Merged Georg Ringer CR +2 V +2 → main, 12.4 Easy +2 −2 04/16/24, 08:25
  • 12.4 83756[BUGFIX] Cast simulated timestamp to int Resolves this issue Merged Georg Ringer CR +2 V +2 → main, 11.5 Easy +2 −2 04/12/24, 11:13
  • main 83742[BUGFIX] Cast simulated timestamp to int Resolves this issue Merged Georg Ringer CR +2 V +2 → 12.4, 11.5 Easy +2 −2 04/12/24, 10:12

Related issues 3

  • Bug #98045DateAspect->getTimezone (almost) never returns the correct value Related to Closed v11 Jan Delius 07/28/22, 11:47
  • Bug #99627Context:class don't detect timezone correctly Related to Closed v11 Dieter Porth 01/19/23, 07:54
  • Bug #103690Preview of page in the past (expired) throws exception Related to Closed Frontend v12 Riccardo De Contardi 04/20/24, 20:56
Author
Rafał Jania
Priority
Should have
Category
Frontend
TYPO3 version
12
© 2026 TYPO3 GmbH.
  • API
  • Privacy Policy
  • Legal Notice
  • Feedback