• Welcome to Sitemap Generator Forum.
 

Cannot use string offset as an array

Started by scarmardo, May 20, 2010, 05:06:26 PM

Previous topic - Next topic

scarmardo

I have installed the xml-sitemap, adjusted permissions, created files.

Whenever I run the crawl from web interface or command line I get the error:

Fatal error: Cannot use string offset as an array in /home/xxx/public_html/generator/pages/class.grab.inc.php(2) : eval()'d code on line 216

I've tried to open the file, but it is encoded.

PHP is running as local user.

Apache version   2.2.15
PHP version   5.2.13


scarmardo

I figured out this was caused by a redirect loop in the .htaccess file.

After removing the 301 redirect loop, it works without a problem.

Thanks,
William

info1325

#3
Hi,

We get this "Cannot use string offset as an array" error too. We have an IIS 6 server.

The exact error is:

HP Fatal error: Cannot use string offset as an array in X:\wwwroot\oursite.com\sitemapgenerator\pages\class.grab.inc.php(2) : eval()'d code on line 217

It happens very quickly, roughly 30 seconds in to parsing. It happens over and over as the sitemap generator tries to resume.

Please can you help?

Thanks,
Steve