Project

General

Profile

Actions

Bug #21455

closed

PHP-5.3 Warning: strlen() expects parameter 1 to be string, array given

Added by Rupert Germann over 14 years ago. Updated over 13 years ago.

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

0%

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

Description

Problem:
When running TYPO3 4.3 under PHP 5.3 the error_log is filled with messages like this:
PHP Warning: strlen() expects parameter 1 to be string, array given in C:\xampp\xampp\htdocs\typo3\dummy-4.2.9\typo3\classes\class.typo3ajax.php line 119
reason for this is that json encoded content is handled as array and not as string.

Solution:
use empty() to find out if $content is an empty array or empty string

(issue imported from #M12466)


Files

12466.diff (629 Bytes) 12466.diff Administrator Admin, 2009-11-04 20:18

Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #21460: Sporadic JS error in loginrefresh.jsClosed2009-11-05

Actions
Actions #1

Updated by Michael Staatz over 14 years ago

I have had the same Issue on Mac OSX 10.6 with PHP 5.3, MySQL 5.4 Beta and TYPO3 4.3 Beta2.

I solved it with the applied patch!!

Thanks.

Kind regards

Michael Staatz

Actions #2

Updated by Rupert Germann over 14 years ago

committed to trunk rev 6333

Actions

Also available in: Atom PDF