Cannot use string offset as an array
« on: May 20, 2010, 05:06:26 PM »
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
Re: Cannot use string offset as an array
« Reply #1 on: May 20, 2010, 08:04:39 PM »
Hello,

please let me know your generator URL/login in private message to check this.
Re: Cannot use string offset as an array
« Reply #2 on: May 24, 2010, 05:06:49 PM »
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
Re: Cannot use string offset as an array
« Reply #3 on: May 25, 2010, 04:02:26 PM »
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
« Last Edit: May 25, 2010, 04:12:31 PM by info1325 »