Project

General

Profile

Actions

Bug #70289

closed

PHP Warning because of modified Array in usort

Added by Stefan Froemken over 8 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
FormEngine aka TCEforms
Target version:
Start date:
2015-10-02
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
7
PHP Version:
5.6
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

Hello Core-Team,

visit a Content Element of type "list", switch to tab where you can find the selectbox "list_type". Now clear the "red flash" cache.
Right click -> reload current frame

Following PHP Warning will appear:

An error occurred trying to process items for field "Plugin:" (PHP Warning: usort(): Array was modified by the user comparison function in /Applications/MAMP/htdocs/typo3_src/typo3/sysext/frontend/Classes/Hooks/TableColumnHooks.php line 32).

I found following link:
https://bugs.php.net/bug.php?id=50688

Maybe it helps to prepend usort with @

Stefan

Actions #1

Updated by Gerrit Code Review over 8 years ago

  • Status changed from New to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/43728

Actions #2

Updated by Andreas Allacher over 8 years ago

To reproduce:
1.) \TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin()
has to be called with a plugin name that references LLL:

2.) Language file for current language does not exist, e.g. locallang_db.xlf exists for "en" but current language is set to "de" and therefore it tries to find de.locallang_db.xlf which does not exist

This produces and exception and therefore results in the above mentioned bug.

Actions #3

Updated by Stefan Froemken over 8 years ago

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

Updated by Riccardo De Contardi over 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF