hi paul, i just installed the guestbook on my server,everything went ok,all permissions were set accourding to the readme file that came with the download. however, after installing it i recieved 2 errors when i tried to update my member profile settings. i tried adding my new email address and uploading an avitar but when i click apply all i get is a page saying..
parameter wrote: Warning: copy(/home/domain/public_html/gbook/attachments/646d9f7afb52fbf54708eb011ac2c0d0.jpg) [function.copy]: failed to open stream: Permission denied in /home/my1site/public_html/gbook/functions.php on line 433
Catchable fatal error: Object of class language could not be converted to string in /home/domain/public_html/gbook/commonfuncs.php on line 330
note the original jpeg is named 1.jpg and only 75x75 im not sure where 646d9f7afb52fbf54708eb011ac2c0d0.jpg comes from.
ive tried changing file permissions but it did not work either. (got same messege) other than that its been easy going no other problems.
hi paul thanks for the reply, i tried 777 and 755 either one did not work but upon your mention of the php version i discovered my hosting server is using PHP version 5.2.0 i have no control of the version used unfortunatly (its up to them) i suppose it means i cant use the wsn guest unless its made compatable with 5.2.0
thanks paul, i appreciate it. i will give that a try and if i still get the error.i will look for the same fields in other files. btw, im currently using the wsn links & wsn forum. they seem to work ok with the server configuration. its just the wsn guest i was having trouble with so far. i'll let you know how it goes. thanks for the help.. shawn
parameter wrote: Catchable fatal error: Object of class language could not be converted to string in /home/domain/public_html/gbook/commonfuncs.php on line 330
i got when trying to change my email address,
but i still get
parameter wrote: Warning: copy(/home/domain/public_html/wguest/attachments/uploads/52da2dd1699dbb83d24983d6599a1ffc.gif) [function.copy]: failed to open stream: No such file or directory in /home/my1site/public_html/guest/functions.php on line 433
across the top of the page
line 433 reads as
parameter wrote: if (copy($upload_temp, $target_file))
im not much of a coder personally,but i tried changing $upload_temp, to $upload_attachments, and it got rid of the error but still did not allow the upload.just said The file could not be uploaded. Please check that it's an allowed file type and is below the maximum allowed size.(which it was)
btw, just so you know,when i set my server permissions it does display as what i set them to,so like if i change it to 777 they do display as 777.
Either the directory isn't chmoded correctly (try 755 if 777 doesn't work) or the file path to your attachments directory is typed incorrectly. "attachments/uploads/" is highly suspicious since that's not the attachments directory -- so your file path must be set wrong in your settings, it has this extraneous "uploads" bit.
hi paul, when i try to add the path to attachments directory
/home/mydomain/public_html/guest/attachments/
which is what is called for i believe,nothing happens.
i add that,click submit then go back to it to see if it worked and its blank again. ive tried many other options even a direct url to it, but its not saving the path at all in the admin/prefs.php file. i even tried chmod'ing it to 644, 666,755 and 777 but no luck.
the only refferance i find to uploadpath is this from prefs.php
$uploadpath = str_replace("", '\', $uploadpath);
or this one
if (copy($upload_temp, $target_file))
im lost when it comes to code lol. but it seems like the changes are getting blocked or something.
I don't see how that can be. It accepts anything I type there. Well it's in the wsnguest_settings table in the database, the row named uploadpath, you can always force it in via phpmyadmin I suppose.
hi paul, sorry,i did a fresh install using wnsguest as a default name for directories etc.along with a new mysql setup.(last time i tried just guest as a directory) i doubt that mattered though. i had to add the code fix for the Catchable fatal error mentioned, but it seems to have taken care of the upload problem as well but i did notice something else though.. when i edited my email address in the edit profile page it shows my email as "E-Mail: admin at my1-site dot com " (no "") not E-Mail: admin@my1-site.com
i typed it as admin@my1-site.com in the members profile
The view profile page protects against spam. Displaying an email directly on a public page is suicide, it's not polite to cause your members to be burried by spam.
thats something that didnt even dawn on me, very good idea. you do not normally see that in other guestbooks. keep up the good work thanks for the help shawn
0/5
1
2
3
4
5
This thread is closed, so you cannot post a reply.
Comments on errors
Member
Usergroup: Member
Joined: Aug 27, 2006
Location: Canada
Total Topics: 4
Total Comments: 16
hi paul,
i just installed the guestbook on my server,everything went ok,all permissions were set accourding to the readme file that came with the download.
however,
after installing it i recieved 2 errors when i tried to update my member profile settings.
i tried adding my new email address and uploading an avitar but when i click apply all i get is a page saying..
Warning: copy(/home/domain/public_html/gbook/attachments/646d9f7afb52fbf54708eb011ac2c0d0.jpg) [function.copy]: failed to open stream: Permission denied in /home/my1site/public_html/gbook/functions.php on line 433
Catchable fatal error: Object of class language could not be converted to string in /home/domain/public_html/gbook/commonfuncs.php on line 330
note the original jpeg is named 1.jpg and only 75x75 im not sure where 646d9f7afb52fbf54708eb011ac2c0d0.jpg comes from.
ive tried changing file permissions but it did not work either.
(got same messege)
other than that its been easy going no other problems.
any suggestions to fix this ?
shawn
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
1) CHMOD the attachments directory to 777. Some servers may need 755 instead, there's no way to know if you're on such a server.
2) Catchable fatal error probably means you're using PHP 5.2.0. Use 5.1 or earlier.
Member
Usergroup: Member
Joined: Aug 27, 2006
Location: Canada
Total Topics: 4
Total Comments: 16
hi paul
thanks for the reply,
i tried 777 and 755 either one did not work but upon your mention of the php version i discovered my hosting server is using PHP version 5.2.0 i have no control of the version used unfortunatly (its up to them)
i suppose it means i cant use the wsn guest unless its made compatable with 5.2.0
thanks anyway
shawn
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
You can fix this particular error by changing line 33 of classes/member.php from to , but it's possible there are other spots as yet unnoticed.
Member
Usergroup: Member
Joined: Aug 27, 2006
Location: Canada
Total Topics: 4
Total Comments: 16
thanks paul,
i appreciate it.
i will give that a try and if i still get the error.i will look for the same fields in other files.
btw,
im currently using the wsn links & wsn forum.
they seem to work ok with the server configuration.
its just the wsn guest i was having trouble with so far.
i'll let you know how it goes.
thanks for the help..
shawn
Member
Usergroup: Member
Joined: Aug 27, 2006
Location: Canada
Total Topics: 4
Total Comments: 16
I changed that part of the code it did fix the
Catchable fatal error: Object of class language could not be converted to string in /home/domain/public_html/gbook/commonfuncs.php on line 330
but i still get
Warning: copy(/home/domain/public_html/wguest/attachments/uploads/52da2dd1699dbb83d24983d6599a1ffc.gif) [function.copy]: failed to open stream: No such file or directory in /home/my1site/public_html/guest/functions.php on line 433
line 433 reads as
if (copy($upload_temp, $target_file))
im not much of a coder personally,but i tried changing $upload_temp, to $upload_attachments, and it got rid of the error but still did not allow the upload.just said The file could not be uploaded. Please check that it's an allowed file type and is below the maximum allowed size.(which it was)
btw, just so you know,when i set my server permissions it does display as what i set them to,so like if i change it to 777 they do display as 777.
thanks,
shawn
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
Either the directory isn't chmoded correctly (try 755 if 777 doesn't work) or the file path to your attachments directory is typed incorrectly. "attachments/uploads/" is highly suspicious since that's not the attachments directory -- so your file path must be set wrong in your settings, it has this extraneous "uploads" bit.
Member
Usergroup: Member
Joined: Aug 27, 2006
Location: Canada
Total Topics: 4
Total Comments: 16
hi paul,
when i try to add the path to attachments directory
which is what is called for i believe,nothing happens.
i add that,click submit then go back to it to see if it worked and its blank again.
ive tried many other options even a direct url to it,
but its not saving the path at all in the admin/prefs.php file.
i even tried chmod'ing it to 644, 666,755 and 777 but no luck.
the only refferance i find to uploadpath is this from prefs.php
or this one
im lost when it comes to code lol.
but it seems like the changes are getting blocked or something.
shawn
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
nothing happens.
I don't see how that can be. It accepts anything I type there. Well it's in the wsnguest_settings table in the database, the row named uploadpath, you can always force it in via phpmyadmin I suppose.
Member
Usergroup: Member
Joined: Aug 27, 2006
Location: Canada
Total Topics: 4
Total Comments: 16
hi paul,
sorry,i did a fresh install using wnsguest as a default name for directories etc.along with a new mysql setup.(last time i tried just guest as a directory)
i doubt that mattered though.
i had to add the code fix for the Catchable fatal error mentioned,
but it seems to have taken care of the upload problem as well but i did notice something else though..
when i edited my email address in the edit profile page it shows my email as
"E-Mail: admin at my1-site dot com " (no "") not E-Mail: admin@my1-site.com
i typed it as admin@my1-site.com in the members profile
everything else seems ok for now.
shawn
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
The view profile page protects against spam. Displaying an email directly on a public page is suicide, it's not polite to cause your members to be burried by spam.
Member
Usergroup: Member
Joined: Aug 27, 2006
Location: Canada
Total Topics: 4
Total Comments: 16
thats something that didnt even dawn on me,
very good idea.
you do not normally see that in other guestbooks.
keep up the good work
thanks for the help
shawn