Page 1 of 1
Posting Security System
Posted: Tue Mar 19, 2013 12:48 am
by djames
Script URL:
http://www.kenilworth.qld.au/gbook/gbook.php
Version of script: 1.7
Hosting company: Netfirms
URL of phpinfo.php:
http://www.kenilworth.qld.au/gbook/
URL of session_test.php:
http://www.kenilworth.qld.au/gbook/
What terms did you try when SEARCHING for a solution: security
Write your message below:
Postings became impossible because the security image failed to display. I changed settings['autosubmit'] to 2 and the text number did then appear but was not recognised as correct.
I had not changed any settings so presume this is a server problem?
Re: Posting Security System
Posted: Tue Mar 19, 2013 8:29 am
by Klemen
This means sessions aren't working in GBook.
Did you modify any of the gbook files? Try uploading the original ones again (original files from phpjunkyard.com - without even opening them in an editor) and see if that makes a difference.
Re: Posting Security System
Posted: Wed Mar 20, 2013 12:47 am
by djames
I haven't changed any settings, apart from changing AUTOSUBMIT to 2 and then to 0 after the problem appeared. If I upload all the files again I will loose all the existing postings - is there anything else I can try first?
Re: Posting Security System
Posted: Wed Mar 20, 2013 9:02 am
by Klemen
This is not a settings problem, but rather a PHP sessions problem. Something is preventing the script from properly setting PHP sessions, most likely http headers are being output to the browser before the script sends session headers.
This usually happens when PHP files are not properly modified - for example, saved in utf-8 with byte order mark (BOM) added.
If you upload all files *except* settings.php and entries.txt you will keep all existing entries.
Of course, make a backup of all files before making changes.
Re: Posting Security System
Posted: Wed Mar 20, 2013 5:47 pm
by Henrie
It could also be that the hosting company has made an upgrade/change to their php installation which broke sessions.
Re: Posting Security System
Posted: Thu Mar 21, 2013 8:09 am
by Klemen
Usually that could be the case, but his sessions test file work fine, so it's not a global sessions problem.
Re: Posting Security System
Posted: Sun Mar 24, 2013 12:08 am
by djames
I've tried uploading files again with no effect so have decided to use the spam question option instead of a security number - this works OK.
It seems that Netfirms were recently aquired by TuCows and I have noticed some differences in their systems - especially mail accounts and password requirements. Perhaps it could still be something to do with them?
Thanks for your help.