Error after a minor edit to a message's HTML

Is message board greying out your hair (at least what's left of it)? Let us help you here
Locked
d2007
Posts: 14
Joined: Fri Jan 05, 2007 1:14 pm

Error after a minor edit to a message's HTML

Post 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
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

Try to chmod 666 file 1.html
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
d2007
Posts: 14
Joined: Fri Jan 05, 2007 1:14 pm

Post 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
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post 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.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
Locked