Bug #64176
closed
Ok, here are my debugging results.
In our case $this->tt_contentConfig['cols'])
was containing an empty string which resulted in an 1 item containing array $cList = array(0 => '')
after being exploded. $this->tt_contentConfig['cols'])
was empty because of a TSconfig snippet mod.SHARED.colPos_list = 99
, which removed all the tt_content column in page module. (Background: other tables have been added to page view, so we wouldn't need any tt_content columns!)
Up until 4.5.35 this work just fine. In order to get this working again I suggest to use t3lib_div::trimExplode()
instead of explode()
. See attached patch file for 4.5.x.
- Status changed from New to Needs Feedback
Is that still an issue with current 6.2 and 7.6 installations?
- Status changed from Needs Feedback to Accepted
By reading the code the change from explode to trimExplode seems valid. explode(',', '') results in array(0 => '') (an array with the string that should be exploded)
This is not what the rest of the code expects. An empty array is a better value as it will prevent foreach loops from doing anything.
- Status changed from Accepted to Under Review
Following PageTS I needed to reproduce the error:
mod.SHARED.colPos_list = 99
mod.web_layout.tt_content.colPos_list = 99
TCEFORM.tt_content.colPos.removeItems = 0, 1, 2, 3
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
- Status changed from Resolved to Closed
Also available in: Atom
PDF