SOLVED-Security number not working

Dr. GBooky is here to help you with your guestbook problems ...
Post Reply
wino
Posts: 6
Joined: Wed Mar 12, 2014 8:25 am

SOLVED-Security number not working

Post by wino »

Script URL: http://www.saveportphillip.22web.org
Version of script:
Hosting company:
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution:

Write your message below:

Hello when I click the "submit my comment" button it gives me a new security number without submitting my comment. It worked before and I'm wondering what has changed? I ran the session test with the results below. Thanks.


Session started successfully!
CLICK HERE FOR PAGE 2

$_SESSION['test'] is set to: TRUE
Last edited by wino on Mon Mar 31, 2014 5:38 am, edited 1 time in total.
Henrie
Posts: 1095
Joined: Sun Aug 14, 2005 8:57 pm

Re: Security number not working

Post by Henrie »

I get the same results as you do when I test on your website. Every time I try to post I get a new security image and the session test results in $_SESSION['test'] is set to: TRUE

Unfortunately I have no idea what could cause this. Maybe Klemen knows?

If you have not changed anything on your server yourself, than probably your hosting company did an upgrade or changed a setting. You could ask what they changed that might cause this.

Greetings,
Henrie
I do not monitor the Gbook forums regularly anymore since I do not use the Gbook script myself anymore for a long time. But it helped me a lot in learning to understand php.
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Re: Security number not working

Post by Klemen »

It seems that PHP session is broken. If the session test works fine, the problem most likely is some of the GBook source files have been modified improperly (empty lines, hidden bytes) that send out HTTP headers before the session-related headers are sent.

Try uploading original unmodified GBook files and see if that works.

P.s.: you have a unique anti-spam question that should block most (if not all) SPAM, so you might also want to consider disabling the image.
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
wino
Posts: 6
Joined: Wed Mar 12, 2014 8:25 am

Re: Security number not working

Post by wino »

Thanks heaps henrie and klem, last thing I changed was the view/sign text to align center. I must have stuffed something up there :? I will try disabling the image and hope that is enough protection.

Cheers fellas.

EDIT

I just uploaded the gbook.php from a back up I did a few days ago and walla :) I must have changed something in the gbook files...figures! Thanks again gents.
Post Reply