Bug #18738
closedrtehtmlarea: Argument 1 passed to t3lib_div::array_merge_recursive_overrule() must be an array, null given
0%
Description
The following error happens to me when I'm saving a tx_cal_event record that has uses the RTE HTMLArea:
Catchable fatal error: Argument 1 passed to t3lib_div::array_merge_recursive_overrule() must be an array, null given, called in /var/www/vhosts/test/TYPO3_4-2/typo3/sysext/rtehtmlarea/class.tx_rtehtmlareaapi.php on line 75 and defined in /var/www/vhosts/test/TYPO3_4-2/t3lib/class.t3lib_div.php on line 1764
The attached patch fixes the problem.
(issue imported from #M8314)
Files
Updated by Stanislas Rolland over 16 years ago
This error occurs in FE? Something is wrong, because LOCAL_LANG is set in class.tx_rtehtmlarea_pi2.php by
$this->LOCAL_LANG = t3lib_div::readLLfile('EXT:' . $this->ID . '/locallang.xml', $this->language);
and t3lib_div::readLLfile always returns an array.
Otherwise the error occurs in the BE and rte api entered into the wrong branch.
Updated by Administrator Admin over 16 years ago
I installed the attached patch and it works fine.
The problem is, that I can't create hyperlinks by clicking on the link icon. Sometimes the correct pop-up window for creating hyperlinks was opened, but sometimes one half of the popup window for inserting an image was opened.
I think the patch doesn't work correctly because before installing this patch, hyperlinks could be created without any problems.
Updated by Dmitry Dulepov over 16 years ago
I have the same for tt_news when I have FE open in another tab in the same FF instance.
I reported this once in dev list but it was not reproducable. I thought it is unique problem for me.
Updated by Dmitry Dulepov over 16 years ago
Btw, happens only when new item is created!
Updated by Administrator Admin over 16 years ago
I have the problem also with tt_news.
Updated by Stanislas Rolland over 16 years ago
Please test with attached patch:
rtehtmlarea_bugfix_8314.patch
in your environment(s).
Updated by Stanislas Rolland over 16 years ago
Fixed in SVN TYPO3core branch TYPO3_4-2 revision 3848 (for inclusion in TYPO3 4.2.2) and trunk revision 3849.