[TYPO3-mvc] [FYI] Autopopulation of PID - or: Where should my records be placed?

Christian Zenker christian.zenker at 599media.de
Fri Jul 31 15:18:06 CEST 2009


Am 31.07.2009, 12:08 Uhr, schrieb Christian Zenker  
<christian.zenker at 599media.de>:

I found the error.
It was basically the one Bastian pointed to earlier this thread.

$GLOBALS['TSFE']->getStorageSiterootPids() returns an array, not a string!
When the settings get merged in loadExtbaseSettings(),  
t3lib_div::array_merge_recursive_overrule() finds an array in the first  
parameter, a string in the second, gets confused an changes nothing. This  
results in the array being prefered over the plugins setting.

I also found a second issue, that might not be intended to work this way  
(but I'm not sure on this):
One of my three plugins worked without error, because  
getDefaultStoragePageId() returned an empty string and the arrays got  
merged correctly. I fixed this, too. :)

Fix at: http://forge.typo3.org/issues/show/4087

Christian.


More information about the TYPO3-project-typo3v4mvc mailing list