If you are not registered or logged in, you may still use these forums but with limited features. Show recent topics
  [Search] Search   [Hottest Topics] Hottest Topics   [Members]  Member Listing   [FAQ]  FAQ 
[Register] Register / 
[Login] Login 
Submitting body.php  XML
Forum Index » Support Forum
Author Message
Anonymous



Hi,

I'm trying to change the body.php-file, but after submitting it comes bacj with:

Warning: fopen(./templates/body.php): failed to open stream: Permission denied in /home/virtual/site114/fst/var/www/html/guestbook/lib/admin.class.php on line 193

Warning: fwrite(): supplied argument is not a valid stream resource in /home/virtual/site114/fst/var/www/html/guestbook/lib/admin.class.php on line 194

Warning: fclose(): supplied argument is not a valid stream resource in /home/virtual/site114/fst/var/www/html/guestbook/lib/admin.class.php on line 200


Any ideas what I'm doing wrong?

Thanks.
Carbonize
Master
[Avatar]

Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline

Not 100% sure but check that you didn't change the file permissions for body.php. I'd guess they should be 755.

Carbonize
I am not the maker of the Advanced Guestbook

get Lazarus
[Email] [WWW] [Yahoo!] aim icon [MSN] [ICQ]
Anonymous



I have found the problem with the Guestbook (I hope). In the readme.txt it only says to chmod the folders Public and Tmp, but in the template adminpanel it says (in small print) to give the templatefiles Read/Write permission, which would be 666.
I had tried to chmod the folders through WS-ftp, but one way or another it all got screwed up, so I had to do a completely new install and chmod through the config-panel of my provider, which seemed to work fine.

One question though: If all seems to work fine, do I need to delete the install.php or other files that may leave a door open for unwanted people?
Carbonize
Master
[Avatar]

Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline

Always delete the install.php file of any installation.

Carbonize
I am not the maker of the Advanced Guestbook

get Lazarus
[Email] [WWW] [Yahoo!] aim icon [MSN] [ICQ]
Anonymous



Thanks Carbonize, I just did For the people that like to see how my Guestbook turned out, click THIS. I have chosen the same colorscheme as I use at my messageboard. Click HERE for the forum. They're both in Dutch, btw.
Carbonize
Master
[Avatar]

Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline

Now you have 2.3.1 installed you can also add the yahoo/msn fields mod and my image verification.

Carbonize
I am not the maker of the Advanced Guestbook

get Lazarus
[Email] [WWW] [Yahoo!] aim icon [MSN] [ICQ]
Anonymous



oh fun lol - im getting this same error returned but ive changed my permissions

templates: 755
tmp: 777
public: 777
body.php: 755

i was sure those were the right settings - so whats could be going on?
Carbonize
Master
[Avatar]

Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline

Try body.php as 666 instead. This will leave it open to being edited via the admin section if you get hacked but thats the price you pay.

Carbonize
I am not the maker of the Advanced Guestbook

get Lazarus
[Email] [WWW] [Yahoo!] aim icon [MSN] [ICQ]
Anonymous



still didnt work - it dont matter, not as if i was going to put much in it anyway

cheers
Anonymous



ugh, now i feel stupid - i could have just edited them in the file manager couldnt i...

sorry about all that.
 
Forum Index » Support Forum
Go to:   
Based on the open source JForum