Bug #25045
closedFrontend editing is broken
0%
Description
Reproduce:
- Install frontend edit (feedit).
- Logon to backend
- In frontend, open admin panel and enable "Display edit panels"
- Klick on Icon "edit" in edit panel and you will get an error.
Oops, an error occured!
PHP Warning: in_array() [function.in-array]: Wrong datatype for second argument in /path/to/website/t3lib/class.t3lib_iconworks.php line 649
Problem:
The available CSS Icons are pre-cached in serialized form in a file inside the directory typo3temp/sprites/.
The spritemanager tries to load the cached file using t3lib_div::getFilesInDir() and fails.
The returned array from t3lib_div::getFilesInDir() is an associative array having md5 hashes as key and file/path as value.
The spritemanager tries to extract the filename from that array with list() but fails because list() only supports numeric keys in arrays.
There is a note about that in the php documentation (see http://php.net/list)
Solution:
The attached patch file changes the corresponding line to use array_shift() instead.
(issue imported from #M17600)
Files
Updated by Alexander Opitz over 10 years ago
- Category deleted (
Communication) - Status changed from New to Needs Feedback
- Target version deleted (
0) - Is Regression set to No
Hi,
as this issue is very old. Does the problem still exists within newer versions of TYPO3 CMS (6.1.7)?
Updated by Alexander Opitz over 10 years ago
- Status changed from Needs Feedback to Closed
No feedback within the last 90 days => closing this ticket.
If you think that this is the wrong decision or experience this issue again, then please write to the mailing list typo3.teams.bugs with issue number and an explanation or open a new ticket and add a relation to this ticket number.