XML Sitemaps Generator

Author Topic: PHP 7.1 bug in page-crawlproc.inc.php  (Read 2731 times)

Astuteboy

  • Registered Customer
  • Approved member
  • *
  • Posts: 2
PHP 7.1 bug in page-crawlproc.inc.php
« on: January 26, 2017, 11:37:24 AM »
I've been using xml-sitemaps since 2008 and I'm currently running the latest version (7.1). It's served me very well so thank you for the script.

I recently upgraded my server to PHP 7.1 (from 5.6); I  now get the following errors logged on every cron run of runcrawl.php:

[25-Jan-2017 05:30:03 UTC] PHP Warning:  A non-numeric value encountered in [path redacted]pages/page-crawlproc.inc.php on line 212
[25-Jan-2017 05:30:03 UTC] PHP Warning:  A non-numeric value encountered in [path redacted]pages/page-crawlproc.inc.php on line 212
[25-Jan-2017 05:30:03 UTC] PHP Warning:  A non-numeric value encountered in [path redacted]pages/page-crawlproc.inc.php on line 212

over and over again.

The sitemap file still generates OK, but I just get a full error log of these messages. One of my sites has over 2.5k pages, so the error log gets large quite quickly.

I would guess it's a fairly simple change to fix/suppress this warning in page-crawlproc.inc.php, but with the code obfuscation I can't see what would need to change.

Is this something you could fix? Even just an updated copy of that file to stop the warnings would be great.

Thanks in advance.


XML-Sitemaps Support

  • Administrator
  • Hero Member
  • *****
  • Posts: 10894
Re: PHP 7.1 bug in page-crawlproc.inc.php
« Reply #1 on: January 26, 2017, 02:27:17 PM »
Hello,

please try to redownload and reinstall sitemap generator, this issue should be corrected.
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.

Astuteboy

  • Registered Customer
  • Approved member
  • *
  • Posts: 2
Re: PHP 7.1 bug in page-crawlproc.inc.php
« Reply #2 on: January 28, 2017, 09:13:53 AM »
Thank you; the warnings have gone now. Appreciate the help.

 

SMF 2.0.14 | SMF © 2017, Simple Machines
XHTML RSS WAP2