Manual OK but CRON gives multiple errors/warnings!
« on: March 14, 2016, 06:49:43 PM »
Everything is installed per instructions.  666 and 777's are all set according to same.

I can run it successfully manually but when the same is run via CRON the following report is generated from my server:

Content-type: text/html

Resuming the last session (last updated: 2016-03-04 06:08:23)
8270 | 0 | 185,621.8 | 2:08:23 | 0:00:00 | 11 | 5,429.8 Kb | 3547 | 0 | 5429 <h4>Completed</h4>Total pages indexed: 3547 <br>Creating sitemaps...
 and calculating changelog...
<div id="percprog"></div>
8270 | 0 | 185,621.8 | 2:08:29 | 0:00:00 | 11 | 4,080.7 Kb | 3547 | 0 | 4080
8270 | 0 | 185,621.8 | 2:08:34 | 0:00:00 | 11 | 3,827.5 Kb | 3547 | 0 | 3827
8270 | 0 | 185,621.8 | 2:08:39 | 0:00:00 | 11 | 3,529.7 Kb | 3547 | 0 | 3529 Creating HTML sitemap...<div id="percprog2"></div><br />
<b>Warning</b>:  fopen(/home/wwg/public_html/generator/data/sitemap.html): failed to open stream: Permission denied in <b>/home/wwg/public_html/generator/pages/class.utils.inc.php</b> on line <b>102</b><br /> <br />
<b>Warning</b>:  fclose() expects parameter 1 to be resource, boolean given in <b>/home/wwg/public_html/generator/pages/class.html-creator.inc.php</b> on line <b>103</b><br /> <br />
<b>Warning</b>:  fopen(/home/wwg/public_html/generator/data/sitemap2.html): failed to open stream: Permission denied in <b>/home/wwg/public_html/generator/pages/class.utils.inc.php</b> on line <b>102</b><br /> <br />
<b>Warning</b>:  fclose() expects parameter 1 to be resource, boolean given in <b>/home/wwg/public_html/generator/pages/class.html-creator.inc.php</b> on line <b>103</b><br /> <br />
<b>Warning</b>:  fopen(/home/wwg/public_html/generator/data/sitemap3.html): failed to open stream: Permission denied in <b>/home/wwg/public_html/generator/pages/class.utils.inc.php</b> on line <b>102</b><br /> <br />
<b>Warning</b>:  fclose() expects parameter 1 to be resource, boolean given in <b>/home/wwg/public_html/generator/pages/class.html-creator.inc.php</b> on line <b>103</b><br /> <br />
<b>Warning</b>:  fopen(/home/wwg/public_html/generator/data/sitemap4.html): failed to open stream: Permission denied in <b>/home/wwg/public_html/generator/pages/class.utils.inc.php</b> on line <b>102</b><br /> <br />
<b>Warning</b>:  fclose() expects parameter 1 to be resource, boolean given in <b>/home/wwg/public_html/generator/pages/class.html-creator.inc.php</b> on line <b>103</b><br /> <h4>An error occured: </h4> <script> top.location = 'index.php?op=config&errmsg=Error+writing+to+these+files%3A%3Cbr+%2F%3E%0A%3Cb%3E%2Fhome%2Fwwg%2Fpublic_html%2Fgenerator%2Fdata%2Fsitemap.html%3Cbr+%2F%3E%0A%2Fhome%2Fwwg%2Fpublic_html%2Fgenerator%2Fdata%2Fsitemap2.html%3Cbr+%2F%3E%0A%2Fhome%2Fwwg%2Fpublic_html%2Fgenerator%2Fdata%2Fsitemap3.html%3Cbr+%2F%3E%0A%2Fhome%2Fwwg%2Fpublic_html%2Fgenerator%2Fdata%2Fsitemap4.html%3C%2Fb%3E%3Cbr+%2F%3E%0APlease+correct+files+permissions+and+resume+sitemap+creation.' </script>
Re: Manual OK but CRON gives multiple errors/warnings!
« Reply #1 on: March 15, 2016, 05:24:20 AM »
Hello,

please try to set 666 permissions for all sitemap files in generator/data/ folder.
Re: Manual OK but CRON gives multiple errors/warnings!
« Reply #2 on: March 21, 2016, 02:44:54 PM »
That fixed the writing errors - however, the error regarding the class.html-creator.inc.php has not gone away:

Content-type: text/html

Resuming the last session (last updated: 2016-03-04 06:08:23)
8270 | 0 | 185,621.8 | 2:08:23 | 0:00:00 | 11 | 5,432.7 Kb | 3547 | 0 | 5432 <h4>Completed</h4>Total pages indexed: 3547 <br>Creating sitemaps...
 and calculating changelog...
<div id="percprog"></div>
8270 | 0 | 185,621.8 | 2:08:29 | 0:00:00 | 11 | 4,080.4 Kb | 3547 | 0 | 4080
8270 | 0 | 185,621.8 | 2:08:34 | 0:00:00 | 11 | 3,848.7 Kb | 3547 | 0 | 3848
8270 | 0 | 185,621.8 | 2:08:39 | 0:00:00 | 11 | 3,554.9 Kb | 3547 | 0 | 3554 Creating HTML sitemap...<div id="percprog2"></div><br />
<b>Warning</b>:  fopen(/home/wwg/public_html/generator/data/sitemap.html): failed to open stream: Permission denied in <b>/home/wwg/public_html/generator/pages/class.utils.inc.php</b> on line <b>102</b><br /> <br />
<b>Warning</b>:  fclose() expects parameter 1 to be resource, boolean given in <b>/home/wwg/public_html/generator/pages/class.html-creator.inc.php</b> on line <b>103</b><br /> <br />
<b>Warning</b>:  fopen(/home/wwg/public_html/generator/data/sitemap2.html): failed to open stream: Permission denied in <b>/home/wwg/public_html/generator/pages/class.utils.inc.php</b> on line <b>102</b><br /> <br />
<b>Warning</b>:  fclose() expects parameter 1 to be resource, boolean given in <b>/home/wwg/public_html/generator/pages/class.html-creator.inc.php</b> on line <b>103</b><br /> <br />
<b>Warning</b>:  fopen(/home/wwg/public_html/generator/data/sitemap3.html): failed to open stream: Permission denied in <b>/home/wwg/public_html/generator/pages/class.utils.inc.php</b> on line <b>102</b><br /> <br />
<b>Warning</b>:  fclose() expects parameter 1 to be resource, boolean given in <b>/home/wwg/public_html/generator/pages/class.html-creator.inc.php</b> on line <b>103</b><br /> <br />
<b>Warning</b>:  fopen(/home/wwg/public_html/generator/data/sitemap4.html): failed to open stream: Permission denied in <b>/home/wwg/public_html/generator/pages/class.utils.inc.php</b> on line <b>102</b><br /> <br />
<b>Warning</b>:  fclose() expects parameter 1 to be resource, boolean given in <b>/home/wwg/public_html/generator/pages/class.html-creator.inc.php</b> on line <b>103</b><br /> <h4>An error occured: </h4> <script> top.location = 'index.php?op=config&errmsg=Error+writing+to+these+files%3A%3Cbr+%2F%3E%0A%3Cb%3E%2Fhome%2Fwwg%2Fpublic_html%2Fgenerator%2Fdata%2Fsitemap.html%3Cbr+%2F%3E%0A%2Fhome%2Fwwg%2Fpublic_html%2Fgenerator%2Fdata%2Fsitemap2.html%3Cbr+%2F%3E%0A%2Fhome%2Fwwg%2Fpublic_html%2Fgenerator%2Fdata%2Fsitemap3.html%3Cbr+%2F%3E%0A%2Fhome%2Fwwg%2Fpublic_html%2Fgenerator%2Fdata%2Fsitemap4.html%3C%2Fb%3E%3Cbr+%2F%3E%0APlease+correct+files+permissions+and+resume+sitemap+creation.' </script>
Re: Manual OK but CRON gives multiple errors/warnings!
« Reply #4 on: March 21, 2016, 05:07:43 PM »
Do you mean run it live first or allow it to run in CRON overnight first?

Please try to remove *html files in data/ folder and run generator again.
Re: Manual OK but CRON gives multiple errors/warnings!
« Reply #6 on: March 22, 2016, 03:05:54 PM »
That seems to have fixed it.  Thanks!!