Error after server change
« on: June 07, 2012, 12:08:04 AM »
Hi,

Recently I have change server to VPS.
Now getting this message in my sitemap pro installation
<b>Warning</b>:  fopen(/home/mymind/public_html/generator/data/sitemap.html) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: Permission denied in <b>/home/mymind/public_html/generator/pages/class.utils.inc.php</b> on line <b>102</b><br />
Data foder is 777

Rds,
K
Re: Error after server change
« Reply #2 on: June 07, 2012, 10:55:09 PM »
Hi,

I have data/ folder set to 777

Still getting this message from cron:

Resuming the last session (last updated: 2012-06-04 17:09:52)
<h4>Completed</h4>Total pages indexed: 143
<br>Creating sitemaps...
 and calculating changelog...
<div id="percprog"></div>
Creating HTML sitemap...<div id="percprog2"></div><br />
<b>Warning</b>:  fopen(XXX/public_html/generator/data/sitemap.html) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: Permission denied in <b>/XXX/public_html/generator/pages/class.utils.inc.php</b> on line <b>102</b><br />
<br />
<b>Warning</b>:  fwrite() expects parameter 1 to be resource, boolean given in <b>/XXX/public_html/generator/pages/class.html-creator.inc.php</b> on line <b>102</b><br />
<br />
<b>Warning</b>:  fclose() expects parameter 1 to be resource, boolean given in <b>/XXX/public_html/generator/pages/class.html-creator.inc.php</b> on line <b>102</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%2FXXX%2Fpublic_html%2Fgenerator%2Fdata%2Fsitemap.html%3C%2Fb%3E%3Cbr+%2F%3E%0APlease+correct+files+permissions+and+resume+sitemap+creation.' </script>
Re: Error after server change
« Reply #4 on: June 11, 2012, 11:57:35 AM »
Hi,

I have decided to re-install script.
Now I can have automated sitemap generation.
But still I have this error in my cron report:

<h4>Completed</h4>Total pages indexed: 144
<br>Creating sitemaps...
<div id="percprog"></div>
Creating HTML sitemap...<div id="percprog2"></div><br />
<b>Warning</b>:  fopen(/home/mymind/public_html/generator/data/sitemap.html) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: Permission denied in <b>/home/mymind/public_html/generator/pages/class.utils.inc.php</b> on line <b>102</b><br />
<br />
<b>Warning</b>:  fwrite() expects parameter 1 to be resource, boolean given in <b>/home/mymind/public_html/generator/pages/class.html-creator.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/mymind/public_html/generator/pages/class.html-creator.inc.php</b> on line <b>102</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%2Fmymind%2Fpublic_html%2Fgenerator%2Fdata%2Fsitemap.html%3C%2Fb%3E%3Cbr+%2F%3E%0APlease+correct+files+permissions+and+resume+sitemap+creation.' </script>

Any ideas?

K.
Re: Error after server change
« Reply #5 on: June 11, 2012, 03:36:47 PM »
Again, looks like permissions issue, setting 777 for data/ folder and 666 for all files in it should help.