Page 1 of 1

SOLVED-Security number not working

Posted: Sat Mar 29, 2014 11:57 pm
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

Re: Security number not working

Posted: Sun Mar 30, 2014 7:06 am
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

Re: Security number not working

Posted: Sun Mar 30, 2014 10:23 am
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.

Re: Security number not working

Posted: Mon Mar 31, 2014 4:54 am
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.