[TYPO3] seo_basics and PHP error "cannot use string offset as an array"
Andrew Plank
plankmeister_NO at SPAM_hotmail.com
Fri Aug 29 09:46:39 CEST 2008
Hi,
Just installed seo_basics, but the sitemap feature wouldn't work (was
getting a "cannot user string offset as an array" error in PHP) so I had
to comment out the code that enables it in ext_localconf.php.
After a bit of effort, I found a solution (should anyone else have this
problem)
Change this:
foreach ($realurl as $host => $cnf) {
$realurl[$host]['fileName']['index']['sitemap.xml']
['keyValues']['type'] = 776;
}
To this:
foreach ($realurl as $host => $cnf) {
$realurl[$host]['fileName'] = array(); //<- the fix
$realurl[$host]['fileName']['index']['sitemap.xml']
['keyValues']['type'] = 776;
}
RAmen
//Plankmeister
More information about the TYPO3-english
mailing list