XML Sitemaps Generator

Author Topic: Cannot use string offset as an array  (Read 9003 times)

scarmardo

  • Registered Customer
  • Approved member
  • *
  • Posts: 2
Cannot use string offset as an array
« on: May 20, 2010, 04: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

XML-Sitemaps Support

  • Administrator
  • Hero Member
  • *****
  • Posts: 10624
Re: Cannot use string offset as an array
« Reply #1 on: May 20, 2010, 07:04:39 PM »
Hello,

please let me know your generator URL/login in private message to check this.
Oleg Ignatiuk
www.xml-sitemaps.com
Send me a Private Message

For maximum exposure and traffic for your web site check out our additional SEO Services.

scarmardo

  • Registered Customer
  • Approved member
  • *
  • Posts: 2
Re: Cannot use string offset as an array
« Reply #2 on: May 24, 2010, 04: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

info1325

  • Registered Customer
  • Approved member
  • *
  • Posts: 1
Re: Cannot use string offset as an array
« Reply #3 on: May 25, 2010, 03: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, 03:12:31 PM by info1325 »

XML-Sitemaps Support

  • Administrator
  • Hero Member
  • *****
  • Posts: 10624
Re: Cannot use string offset as an array
« Reply #4 on: May 25, 2010, 08:57:33 PM »
Replied to your PM.
Oleg Ignatiuk
www.xml-sitemaps.com
Send me a Private Message

For maximum exposure and traffic for your web site check out our additional SEO Services.

 

SMF 2.0.12 | SMF © 2014, Simple Machines
XHTML RSS WAP2