Project

General

Profile

Actions

Bug #49131

closed

If there was no update of repository yet, TimeSinceLastUpdateViewHelper will throw fatal error

Added by Alexander Opitz almost 11 years ago. Updated almost 11 years ago.

Status:
Closed
Priority:
Should have
Category:
Extension Manager
Target version:
-
Start date:
2013-06-14
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
6.1
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

If the repository was never updated (or the update failed) last_update have the value of zero in the database.

The function \TYPO3\CMS\Extbase\Persistence\Generic\Mapper\DataMapper:mapDateTime() will return NULL for 0 (instead of a DateTime object for 1.1.1970 00:00:00 which is buggy IMHO). So we try NULL->format in the TimeSinceLastUpdateViewHelper and this leads to the Fatal Error:

PHP Fatal error:  Call to a member function format() on a non-object in /typo3/sysext/extensionmanager/Classes/ViewHelpers/TimeSinceLastUpdateViewHelper.php on line 40

Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #47726: EM: PHP Fatal error on trying to get extension list from TERClosedAlexander Opitz2013-04-30

Actions
Actions #1

Updated by Gerrit Code Review almost 11 years ago

  • Status changed from Accepted to Under Review

Patch set 1 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/21427

Actions #2

Updated by Alexander Opitz almost 11 years ago

  • Status changed from Under Review to Closed
Actions #3

Updated by Alexander Opitz almost 11 years ago

Sorry is a duplicate of #47726

Actions

Also available in: Atom PDF