Page 1 of 1

Error after a minor edit to a message's HTML

Posted: Tue Jan 09, 2007 2:01 pm
by d2007
I'm just playing around with MBoard at the moment before I incorporate it into my site.

Everything works fine, except today, I amended one of the messages in the msg folder (to manually add keyword meta tags) and uploaded the file back to the msg folder.

Since then, when I try to reply to the message, I get the following message:

Warning: fopen(msg/1.html): failed to open stream: Permission denied

Error

Couldn't open file msg/1.html for writing! Please CHMOD the "msg" folder to 777 (rwx-rwx-rwx)!

However, it does actually post and save the file regardless of the error message and the msg folder is already CHMODed to 777.

As an experiment, I reinstalled all the files from new again and the board works properly again. When I edit the message file again, the problem reappears.

I know I am not supposed to edit the messages, but was just wondering what was happening?


Thanks

D

Posted: Tue Jan 09, 2007 2:16 pm
by Klemen
Try to chmod 666 file 1.html

Posted: Tue Jan 09, 2007 2:41 pm
by d2007
Yes, it worked, Thank you very much.

As a matter of interest, what was the problem? And if I change any message files in future, do I have to CHMOD those to 666 too?


Thanks again


D

Posted: Tue Jan 09, 2007 5:24 pm
by Klemen
The problem was you uploaded the edited file to the server and script didn't have write permission to that file anymore.

Yes, chmod to 666 any posts you edit/re-upload and it should work fine.