Page 1 of 1

The security image won't show, but GD library is fine

Posted: Thu Sep 21, 2006 6:18 pm
by poslanik
Script URL: http://learn-croatian.com/guestbook/gbook.php
Version of script: 1.43
Hosting company: http://powweb.com
URL of phpinfo.php: I can't access this file, and I think nobody who bought some hosting can
URL of session_test.php: I don't know what this is, there are no files of this sort on my server
What terms did you try when SEARCHING for a solution: I checked the readme file carefully, checked the most recent posts on this forum (the ones that were made after the new version - 1.43 and checked my hosting provider to see if they had GD library)

Write your message below:

Well, the security image doesn't appear when I try to post a new message in the guestbook. As you can see (http://learn-croatian.com/guestbook/gd_test.php) the GD library is working perfectly fine on the server, so there must be something else. In the readme file this problem is addressed, it says that I probably have problems with php sessions and that I should contact my hosting provider and ask them to check PHP sessions configuration. This is all perfectly fine, but what should I tell them? I can't just say check the PHP sessions, they won't know what to look for. Could you please help me?

Posted: Thu Sep 21, 2006 8:40 pm
by Henrie
Hello poslanik,

The files phpinfo.php and session_test.php are not standard on your webserver.
you can find them here (inside the zip files):
http://www.phpjunkyard.com/extras/phpinfo.zip and http://www.phpjunkyard.com/extras/session_test.zip
Please upload the php files to your server and place a link here.

Greetings,
Henrie

Posted: Fri Sep 22, 2006 8:47 am
by Klemen
Yes, you have problems with sessions. Upload the two files Henrie gave you and we'll see what we can do.

You can also try what is suggested in my first reply at
viewtopic.php?t=1072

Posted: Fri Sep 22, 2006 12:05 pm
by poslanik
Alright, I've uploaded the files.

http://learn-croatian.com/phpinfo.php

http://learn-croatian.com/session_test.php

http://learn-croatian.com/session_test2.php

I've also tried deleting the session_regenerate_id(); line but it hasn't helped.

Posted: Fri Sep 22, 2006 12:23 pm
by Klemen
Yep, you have problem swith sessions in general. The problem is probably session.save_path, contact your host and ask them to change "session.save_path" to a valid folder with correct permissions and that they should check why else PHP sessions aren't working

Posted: Fri Sep 22, 2006 2:45 pm
by Henrie
You have the same problem as someone else who posted at powweb and it is solved there.
Take a look at the following topic:
viewtopic.php?t=852

At first it seems to not apply to you, but if you start reading from about 1/3 of the page at this post viewtopic.php?p=4159#4159 it is exactly your situation.

Greetings,
Henrie

Posted: Sun Sep 24, 2006 8:53 am
by poslanik
Thanks for everyone's help, the problem's fixed. I will tell you what I did in hope it helps someone else with the same problem.

The problem seemed to be that the session.save_path was uncorrectly configured. I order to fix this you need to do the following steps. NOTE: This is only for Powweb customers.

1. Login to OPS.
2. Click on the 'Main' tab.
3. Please click on the 'CGI Management' link.
4. Click on the 'PHP Scripting' link.
5. Here you will be able to edit the php.ini file by clicking on the 'Edit' button.
6. Find the session.save_path (three quarters down) and replace the text with a different path. Of course, not just any link, I used a link that powweb support game me and I'm not quite sure I'm supposed to disclose it for security reasons. So I guess this isn't really a full explanation. IF you have the same problem I had, just link them to this post, explain your problems and they will fix it in no time.