[TYPO3] seo_basics and PHP error "cannot use string offset as an array"

Benjamin Mack benni at typo3.org
Fri Aug 29 17:19:54 CEST 2008


Hey guys,

I agree, thanks for the bug report and the fix.

I'll get this bug fixed rather sooner than later in the next version 
(mymy, I really need to get a new version out soon).

All the best,
benni.
-SDG-

Dmitry Dulepov [typo3] wrote:
> Hi!
> 
> Andrew Plank wrote:
>> Aha! Now I see why I was getting the error in the first place... My 
>> realurl_conf.php file is missing a 'fileName' => array() declaration.
>>
>> Thanks for waking me up to that, Dmitry! :D
> 
> Well, there is still a bug because this section is optional ;) You can 
> fix it using this code:
> 
> foreach ($realurl as $host => $cnf) {
>   if (!isset($realurl[$host]['fileName'])) {
>       $realurl[$host]['fileName'] = array(); //<- the fix
>   }
>   $realurl[$host]['fileName']['index']['sitemap.xml']
>      ['keyValues']['type'] = 776;
> }


More information about the TYPO3-english mailing list