Secutity code is not working

Dr. GBooky is here to help you with your guestbook problems ...
Post Reply
collectcamera
Posts: 2
Joined: Thu Dec 24, 2009 11:42 am

Secutity code is not working

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

Re: Secutity code is not working

Post 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.
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
collectcamera
Posts: 2
Joined: Thu Dec 24, 2009 11:42 am

Post by collectcamera »

Hello Klemen,
I followed your instruction and.......it works !
Thanks for your support. Merry Christmas.
Theo.
Post Reply