Page 1 of 1

Secutity code is not working

Posted: Thu Dec 24, 2009 12:02 pm
by collectcamera
Hi,
I bought Gbook 1.7 yesterday. I like it quite a lot.
After installing Gbook using $settings['autosubmit']=1, all worked fine. The graphic image showed up and I was able to add a few Gbook entries. After a few hours though, the image did not show up anymore.
Then I changed $settings['autosubmit']=2. The result was the message "incorrect code".
Then I installed Gbook again; same result.
Working on: http://www.saskiadewit.com/guestbook/gbook.php?a=sign
PHP-info: http://www.saskiadewit.com/guestbook/phpinfo.php
Session-test: http://www.saskiadewit.com/guestbook/session_test.php
I did not use the overall_header.php; I inserted html directly in gbook.php.
I can't see anything that might cause this problem. I browsed the forum for possible solutions to this problem.
I am relatively desparate and I am in need for some help.
Anyone please ????
Theo de Wit.

Re: Secutity code is not working

Posted: Thu Dec 24, 2009 4:28 pm
by Klemen
collectcamera wrote:I did not use the overall_header.php; I inserted html directly in gbook.php.
This must be the problem. By inserting the code directly into gbook.php file you most likely broke PHP sessions which don't work correctly anymore.

If you delete

Code: Select all

ini_set('display_errors', 0);
ini_set('log_errors', 1);
from the settings.php file and try again you will probably see a bunch of "Warning: Cannot modify header information - headers already sent by..." warnings in the guestbook.

What you should do is upload the original gbook.php file and use the templates and/or header.txt/footer.txt files to add any code.

Posted: Fri Dec 25, 2009 10:38 am
by collectcamera
Hello Klemen,
I followed your instruction and.......it works !
Thanks for your support. Merry Christmas.
Theo.