Bug #8072
Sprite manager not initialized for editing forms
Status: | Closed | Start date: | 2010-06-04 | |
---|---|---|---|---|
Priority: | Must have | Due date: | ||
Assigned To: | Jeff Segars | % Done: | 0% |
|
Category: | Editing Form | |||
Target version: | 1.4.0 |
Description
I just got the following error using feeditadvanced with TYPO3 4.4beta3:
Error handler (FE): PHP Warning: in_array(): Wrong datatype for second argument in t3lib/class.t3lib_iconworks.php line 649
I got that 9 times in the same second.
Related issues
Associated revisions
Fixed bug #8072: Sprite Manager is not initialized for editing forms.
git-svn-id: https://svn.typo3.org/TYPO3v4/CoreProjects/feedit/trunk@2510 743128fe-103e-dd11-99c4-001b210b3e58
Followup to bug #8072: Only load Sprite Manager for TYPO3 4.4 and up.
git-svn-id: https://svn.typo3.org/TYPO3v4/CoreProjects/feedit/trunk@2511 743128fe-103e-dd11-99c4-001b210b3e58
History
#1 Updated by Eric Blom about 5 years ago
I'm experiencing the same issue in TYPO3 4.4 & feeditadvanced 1.3.0.
Core: Error handler (FE): PHP Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/typo3/typo3_src-4.4.0/t3lib/class.t3lib_iconworks.php line 651
Eric
#2 Updated by Jeff Segars about 5 years ago
- File 8072.diff
added
- Status changed from New to Accepted
- Assigned To set to Jeff Segars
Hey guys,
Can you see if the attached patch fixes the issue for you?
You'll notice the second parameter for "t3lib_div::makeInstance('t3lib_SpriteManager', TRUE);" is true, which means that we're forcing a rebuild of the cached sprites on every single request. This of course isn't the right way to do it but I haven't figure out why its failing with FALSE instead of TRUE.
Thanks,
Jeff
#3 Updated by Chris topher about 5 years ago
Hi Jeff,
with the patch the error no longer shows up.
Maybe Steffen Ritter can help you with the sprites. I think he wrote and implemented the code.
Regards
Christopher
#4 Updated by Jeff Segars about 5 years ago
- Subject changed from Frontend Editing gives PHP Warning: in_array(): Wrong datatype for second argument in t3lib/class.t3lib_iconworks.php line 649 to Sprite manager not initialized for editing forms
Upon further investigation, I see that typo3/init.php sets the regenerate flag to true as well. Since this code only runs when the backend editing form is loaded, it does in fact make sense to regenerate if necessary and performance isn't a huge concern at that point like it would be in a normal frontend request.
Will commit this shortly.
#5 Updated by Jeff Segars about 5 years ago
- Category set to Editing Form
- Target version set to 1.4.0
Fixed in r2510.
#6 Updated by Jeff Segars about 5 years ago
- Status changed from Accepted to Resolved
Fixed in r2510.
#7 Updated by Chris topher 12 months ago
- Status changed from Resolved to Closed