Bug #81759
closedPossible Invalid argument supplied for foreach in /EvaluateDisplayConditions.php line 171
0%
Description
Having malformed data in the database can cause a complete breakedown of the backend edit form.
To avoid problems there should be some is_array / typeof Iterateable / is_iterateable checks around the foreach statements
https://api.typo3.org/typo3cms/current/html/_evaluate_display_conditions_8php_source.html#l00150
Problem exists in TYPO3 7.6 and 8
Files
Updated by Anja Leichsenring about 7 years ago
- Sprint Focus deleted (
On Location Sprint)
Updated by Christian Kuhn about 7 years ago
- Status changed from New to Needs Feedback
Is this still an issue since v8? I rewrote the display condition parser completely with v8 and would guess this is solved there.
For v7: Is this issue critical enough to still fix it there? If you think this should still be solved in v7, please provide some data on how to reproduce, and/or add (best) a patch to sanitize the code in question.
Updated by Kay Strobach about 7 years ago
- File 2017-11-01_15-44-48.png 2017-11-01_15-44-48.png added
I've not seen that error in one of our v8 Installations in the last days, maybe fixed now.
But in v7 this occurs during pagetree rendering.
Please see the attached stack trace
So i suggest putting a rather simple check around for each instead of having the warnings.
Updated by Christian Kuhn about 7 years ago
Hmm, the stack trace seems not to be formengine but user related - this might be a different issue but is not related to the formEngine display condition parser, i guess.
Updated by Kay Strobach about 7 years ago
Please remove my former comment.
After reevaluating - yes this still exists.
Main cause is malformed flexform data due to a problem in an extension. This should not cause the core to break.
That's why i asked for the checks.
Updated by Christian Kuhn about 7 years ago
- which core versions affected? still v8, too or only v7?
- example data which goes wrong
Updated by Christian Kuhn over 6 years ago
- Status changed from Needs Feedback to Closed
Hey Kay.
As far as i can see, there has been no additional progress on this issue. I think we can close this for now. If you still need a fix in this area, please provide a stack trace and maybe a how to reproduce with a fresh ticket (maybe linking to this one here).