Page 1 of 1
session is not working + security number is not visible
Posted: Sun Sep 10, 2006 9:25 pm
by roosiedb
Script URL:
http://84.85.224.212/gbook143/index.htm
Version of script: 1.43
Hosting company: personal
URL of phpinfo.php:
http://84.85.224.212/test/phpinfo/index.php
URL of session_test.php:
http://84.85.224.212/test/session_test/session_test.php
What terms did you try when SEARCHING for a solution:
1. Yahoo Search: session problems, sessions php, etc.
2. PHP.net: about configuration of PHP.INI
3. Apache: about configuration file
4. This forum.
Write your message below:
I have installed GBOOK143 but it is giving the following error when I go to the SIGN GUESTBOOK page:
Warning: Unknown(): open(/tmp\sess_93b68a13af3ca6dcb99759b6bf3d537f, O_RDWR) failed: No such file or directory (2) in Unknown on line 0
Warning: Unknown(): Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in Unknown on line 0
Furthermore, the image (with the security number) is not shown.
Please help.
Posted: Sun Sep 10, 2006 10:01 pm
by Klemen
Hi,
Few things to try:
1. Make sure you have the correct sessions folder ("session.save_path") in your php.ini file. Now you have "/tmp", change it to an EXISTING folder on your server and make sure that folder is writable
2. delete line 49 in gbook.php:
session_regenerate_id();
3. upgrade PHP to a newer version (4.4.x)
Let me know how it goes.
Regards
Posted: Tue Sep 12, 2006 7:58 pm
by roosiedb
Klemen Stirn wrote:Hi,
Few things to try:
1. Make sure you have the correct sessions folder ("session.save_path") in your php.ini file. Now you have "/tmp", change it to an EXISTING folder on your server and make sure that folder is writable
2. delete line 49 in gbook.php:
session_regenerate_id();
3. upgrade PHP to a newer version (4.4.x)
Let me know how it goes.
Regards
Hi there,
I have tried to remove the session_regenerate() on line 49, after that I have upgraded PHP to 4.4. The directory for saving session files have been changed too (and I can see the session file is there when I go to the page gbook.php).
However, the image still doesn't appear.
I really don't know what I am doing wrong here.
Could you please give me some more options to try?
Thank you in advance. I really hope I can make this guestbook work on my webserver...
Regards,
Stefan.
P.S.
Posted: Tue Sep 12, 2006 8:03 pm
by roosiedb
roosiedb wrote:Klemen Stirn wrote:Hi,
Few things to try:
1. Make sure you have the correct sessions folder ("session.save_path") in your php.ini file. Now you have "/tmp", change it to an EXISTING folder on your server and make sure that folder is writable
2. delete line 49 in gbook.php:
session_regenerate_id();
3. upgrade PHP to a newer version (4.4.x)
Let me know how it goes.
Regards
Hi there,
I have tried to remove the session_regenerate() on line 49, after that I have upgraded PHP to 4.4. The directory for saving session files have been changed too (and I can see the session file is there when I go to the page gbook.php).
However, the image still doesn't appear.
I really don't know what I am doing wrong here.
Could you please give me some more options to try?
Thank you in advance. I really hope I can make this guestbook work on my webserver...
Regards,
Stefan.
P.S.
I forgot to tell you that the error message (on the bottom of the page SIGN) is gone now, so it seems that the session directory is working properly. However, the image is not there yet.
Posted: Tue Sep 12, 2006 9:32 pm
by Klemen
Hi,
I think I found it, you don't have the GD library installed or enabled for your PHP, the gd_test.php file is blank:
http://84.85.224.212/gbook143/gd_test.php
If you had GD library working properly it should look like this:
http://www.phpjunkyard.com/gbook/gd_test.php
So what you need to do is install GD library for your PHP. In many cases the library is already installed, you just need to activate the extension in the php.ini file. Try here:
http://www.boutell.com/gd/faq.html
Read under "How do I get gd to work with PHP?"
Or try searching here:
http://www.google.com/search?q=PHP+GD+library
Once you get
http://84.85.224.212/gbook143/gd_test.php
working correctly see if GBook works. And come tell us here

Unbelievable!
Posted: Sat Sep 16, 2006 8:34 am
by roosiedb
Hi there,
It is working perfect now !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
I just enabled GD in php.ini...
Thank you very much for your support and for your patience.
I am very happy now!
Thx!
Regards,
Stefan.