Project

General

Profile

Actions

Bug #24248

closed

Warnings about performing array functions on non-arrays

Added by Joost van Berckel almost 14 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2010-11-30
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
4.4
PHP Version:
5.3
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

After adding google sitemap extensions like advanced_sitemaps (version 1.0.0) and showing this page I get several errors:

XML parse error: garbage after document element Location (message in dutch: troep na documentelement Locatie): http://www.domein.nl/sitemap.xml, rulenumber 2, column 1: <b>warning</b>: Invalid argument supplied for foreach() in <b>/typo3/typo3_src-4.4.4/t3lib/class.t3lib_iconworks.php</b> on line <b>915</b><br/>

In the source I see more errors, such as:

Warning in_array()[<a href='function.in-array'>function.in-array</a>]: Wrong datatype for second argument in /typo3/typo3_src-4.4.4/t3lib/class.t3lib_iconworks.php on line 826

and so on.

Who can help me out? I suppose it has somehing to do with the core. I tried the same extensions on different TYPO3 instance (also v4.4.4) and got no errors at all.

(issue imported from #M16620)


Files

16620.patch (1.28 KB) 16620.patch Administrator Admin, 2010-12-01 23:10
16620_4-4.patch (1.35 KB) 16620_4-4.patch Administrator Admin, 2010-12-01 23:10
Actions #1

Updated by Joost van Berckel almost 14 years ago

I also reported this bug here: http://forge.typo3.org/issues/11175

Actions #2

Updated by Joost van Berckel almost 14 years ago

Hi Jigal,

I will test this patch today and will get back to you later on.

Thank you

Joost

Actions #3

Updated by Joost van Berckel almost 14 years ago

I tried this patch. Thank you Jigal!
It worked. All the garbage was gone, except one warning:

<b>Warning</b>: Invalid argument supplied for foreach() in <b>typo3conf/ext/advanced_sitemaps/pi1/class.tx_advancedsitemaps_pi1.php</b> on line <b>173</b><br />

This bug I placed here, too (http://forge.typo3.org/issues/11175)

Actions #4

Updated by Gerrit Code Review over 12 years ago

  • Status changed from Accepted to Under Review

Patch set 2 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/9851

Actions #5

Updated by Jigal van Hemert over 12 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #6

Updated by Gerrit Code Review over 12 years ago

  • Status changed from Resolved to Under Review

Patch set 1 for branch TYPO3_4-7 has been pushed to the review server.
It is available at http://review.typo3.org/9908

Actions #7

Updated by Jigal van Hemert over 12 years ago

  • Status changed from Under Review to Resolved
Actions #8

Updated by Gerrit Code Review over 12 years ago

  • Status changed from Resolved to Under Review

Patch set 1 for branch TYPO3_4-5 has been pushed to the review server.
It is available at http://review.typo3.org/12799

Actions #9

Updated by Gerrit Code Review over 12 years ago

Patch set 1 for branch TYPO3_4-6 has been pushed to the review server.
It is available at http://review.typo3.org/12800

Actions #10

Updated by Jigal van Hemert about 12 years ago

  • Status changed from Under Review to Resolved
Actions #11

Updated by Benni Mack about 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF