Actions
Bug #34108
closedPHP Warning: strcmp() expects parameter 1 to be string
Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2012-02-20
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
4.6
PHP Version:
5.3
Tags:
Complexity:
Is Regression:
Sprint Focus:
Description
PHP Warning: strcmp() expects parameter 1 to be string, array given in /var/www/typo3/source/typo3_src-4.6.4/t3lib/class.t3lib_tcemain.php line 5956
Thrown if the access list of a backend group be edited and saved. (PHP 5.3)
Don't know why this happens, usually it works. Error happens here:
foreach ($fieldArray as $col => $val) { if ( !$GLOBALS['TCA'][$table]['columns'][$col]['config']['MM'] && // Do not unset MM relation fields, since equality of the MM count doesn't always mean that relations haven't changed. (!strcmp($val, $currentRecord[$col]) || // Unset fields which matched exactly. ($cRecTypes[$col] == 'int' && $currentRecord[$col] == 0 && !strcmp($val, '')) // Now, a situation where TYPO3 tries to put an empty string into an integer field, we should not strcmp the integer-zero and '', but rather accept them to be similar. ) ) {
Print out $val (parameter 1) gives:
0 Redaktuere 1 Array ( [0] => web [1] => web_layout [2] => web_list [3] => web_info [5] => web_func [6] => web_txrecyclerM1 [7] => web_txpowermailM1 [9] => file [10] => file_list [11] => user [12] => user_setup [14] => help_cshmanual ) Array ( [0] => pages [1] => tt_content [5] => pages_language_overlay [7] => tx_powermail_fieldsets [8] => tx_powermail_fields [9] => tx_powermail_mails [10] => tt_news ) […]
Updated by Arno Dudek over 12 years ago
Found a possible reason: Happens only when gridelements is installed.
Updated by Chris topher over 12 years ago
- Status changed from New to Closed
- % Done changed from 0 to 100
See #34109.
Actions