CoreCommunity ExtensionsIncubatorDistributionsTYPO3 4.5 ProjectsTYPO3 4.6 ProjectsTYPO3 4.7 ProjectsTYPO3 6.0 ProjectsTYPO3 6.1 ProjectsTYPO3 6.2 Projects (+)

Bug #25437

error on function call

Added by Markus about 2 years ago. Updated almost 2 years ago.

Status:New Start date:2011-03-30
Priority:Must have Due date:
Assignee:- % Done:

0%

Category:-
Target version:-
Votes: 1 (View)

Description

If wt_gallery is installed there are a lot of mesages in the BE protocol

This ist the message:
Core: Error handler (FE): PHP Warning: trim() expects parameter 1 to be string, array given in /home/www/typo3/sysext/cms/tslib/class.tslib_content.php line 739

System ist TYPO3 4.5 with php 5.3.3

The log file has thousends of entries in less than an hour.

wt_gallery_3_7_patch.zip - patches for cObjGetSingle parameters setting in wt_gallery (2.3 kB) Rafal Likus, 2011-08-02 12:56

History

Updated by Little Joe about 2 years ago

Markus wrote:

If wt_gallery is installed there are a lot of mesages in the BE protocol

This ist the message: Core: Error handler (FE): PHP Warning: trim() expects parameter 1 to be string, array given in /home/www/typo3/sysext/cms/tslib/class.tslib_content.php line 739

System ist TYPO3 4.5 with php 5.3.3

The log file has thousends of entries in less than an hour.

Got the same Problem.
TYPO3 4.5.2 with PHP 5.3.2

Updated by Rafal Likus almost 2 years ago

Got the same, but in another line:
[5_0] Core: Error handler (FE): PHP Warning: trim() expects parameter 1 to be string, array given in typo3\sysext\cms\tslib\class.tslib_content.php line 536
Just viewed page with gallery on it and 14 entries in BE log.
Typo3 4.4.7 PHP 5.3.3

Updated by Rafal Likus almost 2 years ago

cObjGetSingle() is called with an array as first parameter instead of string.
Simple patch for everything in - I am not sure if all files should be changed, but i did changes for all.
Just checking if this parameter is not an array: if !is_array() ...
For me works, not errors in log.

Also available in: Atom PDF