Bug #65800
closedPageRepository::shouldFieldBeOverlaid raises PHP warning - FileReference
0%
Description
I have the Error:
Uncaught TYPO3 Exception
#1: PHP Warning: trim() expects parameter 1 to be string, array given in /home/shared_typo3/typo3_source/typo3_src-6.2.11/typo3/sysext/frontend/Classes/Page/PageRepository.php line 1416 (More information)TYPO3\CMS\Core\Error\Exception thrown in file
/home/shared_typo3/typo3_source/typo3_src-6.2.11/typo3/sysext/core/Classes/Error/ErrorHandler.php in line 101.20 TYPO3\CMS\Core\Error\ErrorHandler::handleError(2, "trim() expects parameter 1 to be string, array given", "/home/shared_typo3/typo3_source/typo3_src-6.2.11/t…o3/sysext/frontend/Classes/Page/PageRepository.php", 1416, array)
19 trim(array)/home/shared_typo3/typo3_source/typo3_src-6.2.11/typo3/sysext/frontend/Classes/Page/PageRepository.php:
01414: }
01415:
01416: if ($checkValue === array() || trim($checkValue) === '') {
01417: $shouldFieldBeOverlaid = FALSE;
01418: }
The Array has one FileReference (media) from pages_language_overlay.
array(1 item) 0 => TYPO3\CMS\Core\Resource\FileReferenceprototypeobject propertiesOfFileReference => array(32 items) uidOfFileReference => NULL name => NULL originalFile => TYPO3\CMS\Core\Resource\Fileprototypeobject mergedProperties => array(empty)
If have the Option: $GLOBALS['TCA']['pages_language_overlay']['columns']['media']['l10n_mode'] = 'mergeIfNotBlank';
related to Core #60998
Files
Updated by Florian Engelke over 9 years ago
Updated by Markus Klein over 9 years ago
- Status changed from New to Closed
- Priority changed from Should have to Must have
Ah I didn't see you created a new ticket.
I'd have preferred that before, but now pushed the patch as followup to the old ticket #60998.
Closing this one therefore.