Page 1 of 1

Security Code 1 or 2

Posted: Sun Apr 19, 2009 10:37 am
by zehnernet
Script URL: http://www.zehnernet.de/privat/guestbook/guestbook.html
Version of script: 1.6
What terms did you try when SEARCHING for a solution: "security"

Write your message below:

Hi members,

I try to implement the security code. However what value of the key I try, it does not work corractly.

With 2 (image), I have to press F5 in my browser to see the picture.
With1 (text), I can see a number, but the script returns "Wrong code!", after that I can't see any othe code to use.

I've read in this forum of questions of either key value = 1 OR 2, but nothing with the behaviour of my guestbook.

Can you test this and tell me is going wrong here, please?

Thanks in advance.
Stefan

Posted: Sun Apr 19, 2009 11:06 am
by Klemen
Most likely problems with sessions. Can't be sure unless you post the files you were asked for (phpinfo and session_test files), you will find them in the "READ THIS BEFORE POSTING A NEW QUESTION!!" topic.

Posted: Sun Apr 19, 2009 2:00 pm
by zehnernet

Posted: Sun Apr 19, 2009 2:24 pm
by Klemen
Sessions seem to work fine from the test file. Can you try removing these lines from the settings.php file and let's see if you get any new error messages:

Code: Select all

ini_set('display_errors', 0);
ini_set('log_errors', 1);
Also can you try installing a clean installation of GBook in a test folder without editing anything like this:
- make a test folder (for example "guestbooktest")
- upload all files
- chmod entries.txt to 666
- don't make any changes to the settings or language files
- test if it works

Posted: Mon Apr 20, 2009 6:11 am
by zehnernet
Hi,

I tried both possibikities. The first one gave me a lot of errors back.
If you are interested in:

Warning: Unterminated comment starting line 87 in /homepages/27/d13586505/htdocs/privat/guestbook/php/settings.php on line 87

Warning: Cannot modify header information - headers already sent by (output started at /homepages/27/d13586505/htdocs/privat/guestbook/php/gbook.php:5) in /homepages/27/d13586505/htdocs/privat/guestbook/php/gbook.php on line 1059

Warning: Cannot modify header information - headers already sent by (output started at /homepages/27/d13586505/htdocs/privat/guestbook/php/gbook.php:5) in /homepages/27/d13586505/htdocs/privat/guestbook/php/gbook.php on line 1060

Warning: Cannot modify header information - headers already sent by (output started at /homepages/27/d13586505/htdocs/privat/guestbook/php/gbook.php:5) in /homepages/27/d13586505/htdocs/privat/guestbook/php/gbook.php on line 1061

After click on new messege:
******************************

Warning: Unterminated comment starting line 87 in /homepages/27/d13586505/htdocs/privat/guestbook/php/settings.php on line 87

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /homepages/27/d13586505/htdocs/privat/guestbook/php/gbook.php:5) in /homepages/27/d13586505/htdocs/privat/guestbook/php/gbook.php on line 51

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /homepages/27/d13586505/htdocs/privat/guestbook/php/gbook.php:5) in /homepages/27/d13586505/htdocs/privat/guestbook/php/gbook.php on line 51

Warning: session_regenerate_id() [function.session-regenerate-id]: Cannot regenerate session id - headers already sent in /homepages/27/d13586505/htdocs/privat/guestbook/php/gbook.php on line 1227

Warning: Cannot modify header information - headers already sent by (output started at /homepages/27/d13586505/htdocs/privat/guestbook/php/gbook.php:5) in /homepages/27/d13586505/htdocs/privat/guestbook/php/gbook.php on line 1059

Warning: Cannot modify header information - headers already sent by (output started at /homepages/27/d13586505/htdocs/privat/guestbook/php/gbook.php:5) in /homepages/27/d13586505/htdocs/privat/guestbook/php/gbook.php on line 1060

Warning: Cannot modify header information - headers already sent by (output started at /homepages/27/d13586505/htdocs/privat/guestbook/php/gbook.php:5) in /homepages/27/d13586505/htdocs/privat/guestbook/php/gbook.php on line 1061

The second one works well: http://www.zehnernet.de/gbooktest/

Now I copied the "new" settings.php to my guestbookfolder, and it works here to.
So I think perhaps I've made a mistake ba translating the texts into Geman. I will try this again and will have a look.

Thanks again for helping :-)
Stefan

Posted: Mon Apr 20, 2009 6:15 am
by Klemen
Yes, I thought so because the symptoms were those of non-working sessions but your session test file works fine.

Posted: Mon Apr 20, 2009 6:25 am
by zehnernet
Thanks Klemen, now everything is woking very well!

Stefan