Project

General

Profile

Actions

Bug #14892

closed

Passed variable is not an array or object in t3lib/class.t3lib_div.php on line 1458

Added by Andreas Bruckmeier almost 19 years ago. Updated almost 18 years ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
-
Target version:
-
Start date:
2005-07-31
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
3.8.0
PHP Version:
5
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

I made a new Flexible-Content-Element with TemplaVoila and tried to use it on a page. But randomly i earn following errors. (PS: Am i right that this error is not issued by TemplaVoila and this is the right categorie?)

Warning: reset() [function.reset]: Passed variable is not an array or object in /opt/typo3_src-3.8.0/t3lib/class.t3lib_div.php on line 1458

Warning: Variable passed to each() is not an array or object in /opt/typo3_src-3.8.0/t3lib/class.t3lib_div.php on line 1459

Warning: Cannot modify header information - headers already sent by (output started at /opt/typo3_src-3.8.0/t3lib/class.t3lib_div.php:1458) in /opt/typo3_src-3.8.0/typo3/template.php on line 601

Now i took a look at class.t3lib_div.php on line 1458 and found a confusing line. Maybe i see ghosts but isn´t this nonsense?

class.t3lib_div.php - line: 1547
-----------------------------------------
function array_merge_recursive_overrule($arr0,$arr1,$notAddKeys=0,$includeEmtpyValues=true) {
reset($arr1);
while(list($key,$val) = each($arr1)) {
-----------------------------------------

Resetting $arr1 and then try to use it? Or is it correct? I´m really not shure!

(issue imported from #M1326)


Files

typo3bugtrack_001.jpg (94.3 KB) typo3bugtrack_001.jpg Administrator Admin, 2005-07-31 23:21
Actions

Also available in: Atom PDF