The upgrade from 3.4.0 to 4.0.8 went smoothly and without any problems. I am having a problem (bug) when generating HTML to the ROOT directory using htmlcron.php. When doing so I receive the following output:
Warning: ftp_site() [function.ftp-site]: Could not change perms on /index.html: No such file or directory in /home/couponma/public_html/production/filefunctions.php on line 54
Warning: fopen(/index.html) [function.fopen]: failed to open stream: Permission denied in /home/couponma/public_html/production/filefunctions.php on line 383
Warning: fwrite(): supplied argument is not a valid stream resource in /home/couponma/public_html/production/filefunctions.php on line 383 Cannot write to the file /index.html! You must chmod it to 666. Warning: fclose(): supplied argument is not a valid stream resource in /home/couponma/public_html/production/filefunctions.php on line 385
Manual generation from admin panel works correctly. Also, if I use the cron to generate html to any directory below root, it works correctly.
Is this a bug or is there something I am not doing correctly? Note that in the admin panel I am leaving the directory setting to blank, which again works with a manual generation, not the htmlcron.php
If you're generating files to your root directory the directory needs to be 777. The auto ftp can have trouble chmoding the root directory, I've noticed.
The / there could indicate an extraneous leading slash in your html settings, but it's hard to tell from here.
Comments on Generate HTML W/cron
Experienced
Usergroup: Customer
Joined: Oct 02, 2003
Total Topics: 33
Total Comments: 97
The upgrade from 3.4.0 to 4.0.8 went smoothly and without any problems. I am having a problem (bug) when generating HTML to the ROOT directory using htmlcron.php. When doing so I receive the following output:
Warning: ftp_site() [function.ftp-site]: Could not change perms on /index.html: No such file or directory in /home/couponma/public_html/production/filefunctions.php on line 54
Warning: fopen(/index.html) [function.fopen]: failed to open stream: Permission denied in /home/couponma/public_html/production/filefunctions.php on line 383
Warning: fwrite(): supplied argument is not a valid stream resource in /home/couponma/public_html/production/filefunctions.php on line 383
Cannot write to the file /index.html! You must chmod it to 666.
Warning: fclose(): supplied argument is not a valid stream resource in /home/couponma/public_html/production/filefunctions.php on line 385
Manual generation from admin panel works correctly. Also, if I use the cron to generate html to any directory below root, it works correctly.
Is this a bug or is there something I am not doing correctly? Note that in the admin panel I am leaving the directory setting to blank, which again works with a manual generation, not the htmlcron.php
Ron
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
If you're generating files to your root directory the directory needs to be 777. The auto ftp can have trouble chmoding the root directory, I've noticed.
The / there could indicate an extraneous leading slash in your html settings, but it's hard to tell from here.
Experienced
Usergroup: Customer
Joined: Oct 02, 2003
Total Topics: 33
Total Comments: 97
The problem is that is if I chmod the root to 777, I receive the following error when executing any php file:
[2006-12-16 09:29:36]: error: directory is writable by others: (/home/couponma/public_html)
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
Then you're on one of the 5% of so of odd servers that requires 755 instead. You need to select 755 at Settings -> System as well.