989

*
  • *
  • 34
php7 compatibility
« on: February 12, 2016, 12:27:45 PM »
Hi,

when will we get a xml sitemapgenerator update that is 100% php7 compatible and doesn't throw errors when using php7?

Thanks & regards
Re: php7 compatibility
« Reply #1 on: February 13, 2016, 09:28:31 AM »
Hello,

you can redownload current version of sitemap generator, the issue with " Methods with the same name as their class " should be corrected now.

989

*
  • *
  • 34
Re: php7 compatibility
« Reply #2 on: February 14, 2016, 10:51:30 AM »
Installed the update on the server. Still got errors that send ultra long text emails (11 MB) - which isn't useful and hurts my email account.

This is how these email starts (too long to copy):
<html><head><title>XML Sitemaps - Generation</title><meta http-equiv="Content-type" content="text/html;" charset="utf-8" /><link rel=stylesheet type="text/css" href="pages/style.css"></head><body><div id="glog">Links depth: <b><span id="llevel">-</span></b><br>Current page: <span id="cpage">-</span><br>Pages added to sitemap: <span id="compno">-</span><br>Pages scanned: <span id="pdone">-</span> (<span id="bdone">-</span> KB)<br>Pages left: <span id="pleft">-</span> (+ <span id="l2">-</span> queued for the next depth level)<br>Time passed: <span id="tdone">-</span><br>Time left: <span id="tleft">-</span><br>Memory usage: <span id="musage">-</span></div><script language="Javascript">var pageLoadCompleted=false;function HGWO7D8YcMrOwQ_B(id,txt){el = document.getElementById(id);el.innerHTML = txt;}function aqAxgNGqxV(txt1,txt2,txt3,txt4,txt5,txt6,txt7,txt8,txt9,txt10){HGWO7D8YcMrOwQ_B('cpage',txt1);HGWO7D8YcMrOwQ_B('pleft',txt2);HGWO7D8YcMrOwQ_B('pdone',txt3);HGWO7D8YcMrOwQ_B('bdone',txt4);HGWO7D8YcMrOwQ_B('tdone',txt5);HGWO7D8YcMrOwQ_B('tleft',txt6);HGWO7D8YcMrOwQ_B('llevel',txt7);HGWO7D8YcMrOwQ_B('musage',txt8);HGWO7D8YcMrOwQ_B('compno',txt9);HGWO7D8YcMrOwQ_B('l2',txt10);}function R4_8B4Be7gefytd(){if(window.parent && window.parent.document){window.parent.lastupdate = new Date();}}window.onload=function(){pageLoadCompleted = true;};</script><script>aqAxgNGqxV('', '0', '0', '0.0', '0:00:01', '0:00:00', '0', '1,240.2 Kb', '0', '0' ); R4_8B4Be7gefytd(); </script>

989

*
  • *
  • 34
Re: php7 compatibility
« Reply #4 on: February 15, 2016, 07:11:51 PM »
I start sitemap generator via cron job and php.
php version is 7.0.2.
web site itself runs under https.
Cronjob URL runs under http.

989

*
  • *
  • 34
Re: php7 compatibility
« Reply #6 on: February 16, 2016, 12:11:43 PM »
Code: [Select]
http://subdomain.domain.de/folder_4/generator_71/index.php?op=crawlproc&resume=1
Re: php7 compatibility
« Reply #7 on: February 16, 2016, 04:36:05 PM »
The cron task command line looks like:
php /path/to/public_html/generator/runcrawl.pgp

(otherwise it is running in the same way as in browser hence large output).

989

*
  • *
  • 34
Re: php7 compatibility
« Reply #8 on: February 16, 2016, 07:51:22 PM »
No, i have to start the cronjob via http and a url.

This is a specification of my isp and the interface.

Don't have a chance to start it in the way you've mentioned.
« Last Edit: February 16, 2016, 07:52:56 PM by 989 »
Re: php7 compatibility
« Reply #9 on: February 17, 2016, 05:40:42 AM »
There are no errors in the output quoted in the post above ( https://www.xml-sitemaps.com/forum/index.php/topic,9156.msg28475.html#msg28475 ) - this is expected output when running via URL (and not command line).

989

*
  • *
  • 34
Re: php7 compatibility
« Reply #10 on: February 17, 2016, 08:59:28 AM »
OK, is there a way to suppress this additional email when starting the cronjob via http?

At the moment it's a 11 MB pure text email which really makes problems in my mail account.
Re: php7 compatibility
« Reply #11 on: February 17, 2016, 03:52:06 PM »
No, there is no option for that. You might be able to disable email notification for the cron task though.

989

*
  • *
  • 34
Re: php7 compatibility
« Reply #12 on: February 17, 2016, 04:10:01 PM »
OK, thanks. Found a way to suppress the email when it has a defined keyword. So i defined "XML Sitemaps - Generation" as phrase, which is not part of the general info mail that sitemap generator sends when the daily crawl is done. So hopefully this works and prevents the cron job from sending the 11 mb email.

Regards from Germany
« Last Edit: February 17, 2016, 04:11:45 PM by 989 »