Hi, im getting this error. The first two erros pop up quickly just after the crawl has been done.

Calculating changelog...
Warning: fopen(/home/zotozco/public_html/ror.xml) [function.fopen]: failed to open stream: Permission denied in /home/zotozco/public_html/sitemap/pages/class.xml-creator.inc.php(2) : eval()'d code on line 96

Warning: fwrite(): supplied argument is not a valid stream resource in /home/zotozco/public_html/sitemap/pages/class.xml-creator.inc.php(2) : eval()'d code on line 107

Warning: fopen(/home/zotozco/public_html/sitemap.xml) [function.fopen]


Then I get these two errors when under the ror.xml

Warning: file(/home/zotozco/public_html/sitemap/data/sitemap.xml) [function.file]: failed to open stream: No such file or directory in /home/zotozco/public_html/sitemap/pages/class.utils.inc.php(2) : eval()'d code on line 23

Warning: implode() [function.implode]: Bad arguments. in /home/zotozco/public_html/sitemap/pages/class.utils.inc.php(2) : eval()'d code on line 23


I have checked the permissions on the files and folders. Also made sure there is a ror.xml and sitemap.xml file in the data folder.

Any ideas?  ???

James

Hi, This is to carry on from the last message.

Although the sitemap was made, this morning I have seen more errors from the cron job:

<html>
<head>
<title>XML Sitemaps - Generation</title>
<meta http-equiv="Content-type" content="text/html;charset=iso-8859-15" />
<link rel=stylesheet type="text/css" href="pages/style.css">
</head>
<body>
Resuming the last session (last updated: 1969-12-31 19:00:00)1 | 36 | 31.0 |
0:02 | 1:18 | 1 | - | 1 | 0 | 0
20 | 17 | 321.2 | 0:03 | 0:02 | 1 | - | 20 | 52 | 0
40 | 85 | 857.0 | 0:04 | 0:08 | 2 | - | 39 | 21 | 0
60 | 65 | 1,437.8 | 0:05 | 0:05 | 2 | - | 59 | 96 | 0
80 | 45 | 2,014.4 | 0:06 | 0:03 | 2 | - | 79 | 140 | 0
100 | 25 | 2,585.4 | 0:07 | 0:01 | 2 | - | 99 | 246 | 0
120 | 5 | 3,155.2 | 0:09 | 0:00 | 2 | - | 119 | 344 | 0
140 | 343 | 3,731.7 | 0:10 | 0:24 | 3 | - | 139 | 32 | 0
160 | 323 | 4,304.7 | 0:11 | 0:22 | 3 | - | 159 | 52 | 0
180 | 303 | 4,822.6 | 0:11 | 0:19 | 3 | - | 179 | 68 | 0
200 | 283 | 5,395.6 | 0:12 | 0:18 | 3 | - | 199 | 88 | 0
220 | 263 | 5,927.3 | 0:13 | 0:16 | 3 | - | 219 | 105 | 0
240 | 243 | 6,500.4 | 0:14 | 0:14 | 3 | - | 239 | 125 | 0
260 | 223 | 6,990.7 | 0:15 | 0:13 | 3 | - | 259 | 139 | 0
280 | 203 | 7,563.8 | 0:16 | 0:12 | 3 | - | 279 | 159 | 0
300 | 183 | 8,136.8 | 0:17 | 0:10 | 3 | - | 299 | 179 | 0
320 | 163 | 8,696.0 | 0:18 | 0:09 | 3 | - | 319 | 198 | 0
340 | 143 | 9,241.5 | 0:19 | 0:08 | 3 | - | 339 | 216 | 0
360 | 123 | 9,814.6 | 0:20 | 0:06 | 3 | - | 359 | 236 | 0
380 | 103 | 10,387.6 | 0:21 | 0:05 | 3 | - | 379 | 256 | 0
400 | 83 | 10,960.6 | 0:22 | 0:04 | 3 | - | 399 | 276 | 0
420 | 63 | 11,533.6 | 0:23 | 0:03 | 3 | - | 419 | 296 | 0
440 | 43 | 12,092.9 | 0:24 | 0:02 | 3 | - | 439 | 315 | 0
460 | 23 | 12,624.6 | 0:25 | 0:01 | 3 | - | 459 | 332 | 0
480 | 3 | 13,197.6 | 0:26 | 0:00 | 3 | - | 479 | 352 | 0
500 | 321 | 13,536.4 | 0:26 | 0:17 | 4 | - | 499 | 2 | 0
520 | 301 | 13,833.9 | 0:26 | 0:15 | 4 | - | 519 | 2 | 0
540 | 281 | 14,131.4 | 0:27 | 0:14 | 4 | - | 539 | 2 | 0
560 | 261 | 14,428.9 | 0:27 | 0:12 | 4 | - | 559 | 2 | 0
580 | 241 | 14,726.4 | 0:27 | 0:11 | 4 | - | 579 | 2 | 0
600 | 221 | 15,023.9 | 0:28 | 0:10 | 4 | - | 599 | 2 | 0
620 | 201 | 15,321.4 | 0:28 | 0:09 | 4 | - | 619 | 2 | 0
640 | 181 | 15,618.9 | 0:28 | 0:08 | 4 | - | 639 | 2 | 0
660 | 161 | 15,916.4 | 0:28 | 0:07 | 4 | - | 659 | 2 | 0
680 | 141 | 16,213.9 | 0:29 | 0:06 | 4 | - | 679 | 2 | 0
700 | 121 | 16,511.4 | 0:29 | 0:05 | 4 | - | 699 | 2 | 0
720 | 101 | 16,808.9 | 0:29 | 0:04 | 4 | - | 719 | 2 | 0
740 | 81 | 17,106.4 | 0:29 | 0:03 | 4 | - | 739 | 2 | 0
760 | 61 | 17,403.9 | 0:30 | 0:02 | 4 | - | 759 | 2 | 0
780 | 41 | 17,701.4 | 0:30 | 0:01 | 4 | - | 779 | 2 | 0
800 | 21 | 17,998.9 | 0:30 | 0:00 | 4 | - | 799 | 2 | 0
820 | 1 | 18,296.4 | 0:30 | 0:00 | 4 | - | 819 | 2 | 0
821 | 0 | 18,311.3 | 0:30 | 0:00 | 5 | - | 820 | 0 | 0
<h4>Completed</h4>Total pages indexed: 820<br>Calculating changelog...
Warning: fopen(/home/zotozco/public_html/sitemap/data/urllist.txt): failed
to open stream: Permission denied in
/home/zotozco/public_html/sitemap/pages/class.xml-creator.inc.php(2) :
eval()'d code on line 93

Warning: fclose(): supplied argument is not a valid stream resource in
/home/zotozco/public_html/sitemap/pages/class.xml-creator.inc.php(2) :
eval()'d code on line 169
<br>Creating HTML sitemap...
Warning: fopen(/home/zotozco/public_html/sitemap/data/sitemap.html): failed
to open stream: Permission denied in
/home/zotozco/public_html/sitemap/pages/class.html-creator.inc.php(2) :
eval()'d code on line 138

Warning: fwrite(): supplied argument is not a valid stream resource in
/home/zotozco/public_html/sitemap/pages/class.html-creator.inc.php(2) :
eval()'d code on line 139

Warning: fclose(): supplied argument is not a valid stream resource in
/home/zotozco/public_html/sitemap/pages/class.html-creator.inc.php(2) :
eval()'d code on line 140
<script>
top.location = 'index.php?op=view'
</script>


Any ideas please?

James
Hello,

I have the same problem and have checked the permissions of the folder and they are correct.
Here is the CRON JOB LOG....

<html>
<head>
<title>XML Sitemaps - Generation</title>
<meta http-equiv="Content-type" content="text/html;charset=iso-8859-15" /> <link rel=stylesheet type="text/css" href="pages/style.css"> </head> <body> Resuming the last session (last updated: 1969-12-31 19:00:00)1 | 4 | 22.0 | 0:01 | 0:07 | 1 | - | 1 | 0 | 0 5 | 0 | 86.0 | 0:01 | 0:00 | 2 | - | 5 | 0 | 0 <h4>Completed</h4>Total pages indexed: 5<br>Calculating changelog...
Warning: fopen(/home/lpvlmocw/public_html/generator/data/urllist.txt): failed to open stream: Permission denied in /home/lpvlmocw/public_html/generator/pages/class.xml-creator.inc.php(2) : eval()'d code on line 93

Warning: fwrite(): supplied argument is not a valid stream resource in /home/lpvlmocw/public_html/generator/pages/class.xml-creator.inc.php(2) : eval()'d code on line 156

Warning: fwrite(): supplied argument is not a valid stream resource in /home/lpvlmocw/public_html/generator/pages/class.xml-creator.inc.php(2) : eval()'d code on line 156

Warning: fwrite(): supplied argument is not a valid stream resource in /home/lpvlmocw/public_html/generator/pages/class.xml-creator.inc.php(2) : eval()'d code on line 156

Warning: fwrite(): supplied argument is not a valid stream resource in /home/lpvlmocw/public_html/generator/pages/class.xml-creator.inc.php(2) : eval()'d code on line 156

Warning: fwrite(): supplied argument is not a valid stream resource in /home/lpvlmocw/public_html/generator/pages/class.xml-creator.inc.php(2) : eval()'d code on line 156

Warning: fclose(): supplied argument is not a valid stream resource in /home/lpvlmocw/public_html/generator/pages/class.xml-creator.inc.php(2) : eval()'d code on line 169 <br>Creating HTML sitemap...
Warning: fopen(/home/lpvlmocw/public_html/generator/data/sitemap.html): failed to open stream: Permission denied in /home/lpvlmocw/public_html/generator/pages/class.html-creator.inc.php(2) : eval()'d code on line 138

Warning: fwrite(): supplied argument is not a valid stream resource in /home/lpvlmocw/public_html/generator/pages/class.html-creator.inc.php(2) : eval()'d code on line 139

Warning: fclose(): supplied argument is not a valid stream resource in /home/lpvlmocw/public_html/generator/pages/class.html-creator.inc.php(2) : eval()'d code on line 140 <script> top.location = 'index.php?op=view' </script>

What can I try now?

Thanks
Cannot Change Permissions on files in Data Folder
« Reply #4 on: August 19, 2007, 09:06:04 PM »
Hello,

An update. I have tried to change permissions to 0666 but system does not permit it. I have deleted the files and re-run a manual site map creation, but the system still does not allow a change to the new files from 0644 to 0666.

Exactly how can I solve this? I do not understand how to log in as "Root User" if I am not already logged in as such.

Thanks
Hello,

you can manually upload empty urllist.txt file into data/ folder and set permissions to 0666 for it.
Thanks for the quick reply. I have contacted my hosting company and they have resolved the permissions issue. However, they informed me that the ownership of the files was altered and was causing the denial of access. My questions are:

1) Why is this hapening?
2) Will the CRON job change the ownership again after it writes the files once more? If so, isn't this a problem with the programming and how can this be corrected?

Thanks for your help!
Hello,

it means that your cron jobs and web scripts are running using different userids on your host. It should be ok now if you have permissions set as described.