Security Code 1 or 2

Dr. GBooky is here to help you with your guestbook problems ...
Post Reply
zehnernet
Posts: 4
Joined: Sun Apr 19, 2009 10:31 am

Security Code 1 or 2

Post 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
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post 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.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
zehnernet
Posts: 4
Joined: Sun Apr 19, 2009 10:31 am

Post by zehnernet »

Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post 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
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
zehnernet
Posts: 4
Joined: Sun Apr 19, 2009 10:31 am

Post 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
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

Yes, I thought so because the symptoms were those of non-working sessions but your session test file works fine.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
zehnernet
Posts: 4
Joined: Sun Apr 19, 2009 10:31 am

Post by zehnernet »

Thanks Klemen, now everything is woking very well!

Stefan
Post Reply