Security image... again, sorry

Dr. GBooky is here to help you with your guestbook problems ...
Post Reply
polarisproductions
Posts: 3
Joined: Sat Mar 29, 2008 1:02 pm

Security image... again, sorry

Post by polarisproductions »

Script URL: w
Version of script: 1.6
Hosting company:http://www.insanitydefensemovie.com/Debate/debate.php
URL of phpinfo.php:http://www.insanitydefensemovie.com/Debate/phpifo.php
URL of session_test.php:http://www.insanitydefensemovie.com/Deb ... n_test.php
What terms did you try when SEARCHING for a solution: security image

Write your message below:
The security numbers don't appear in a box as a graphic. When I click 'submit' with the security numbers, I get 'wrong security number' although I type the right one.

I went through the script tons of times and can't find the error. I inserted it in a table to be able to have Google ads on the side. I just seemed to be easier to me than the header.txt page as I kept having overlapping problems. But I wouldn't have thought that that's the cause of my problem. I think it's more a question of script error that I've made somewhere.I have changed the name from gbook.php to debate.php everywhere. Nevertheless, my software indicates a link error and I just can't find it.

I'm sure it must be something silly but I'm stuck.... :o(

Thank you VERY MUCH.

Sylvie :o)
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

If you upload the original gbook.php it works fine, doesn't it?

The problem is you are either including gbook.php code in "debate.php" or have added HTML code to the top of gbook code. The result is HTTP headers are output before the GBook session is started and thus the GBook session can't be started properly. If you change

Code: Select all

ini_set('display_errors', 0);
in settings.php to

Code: Select all

ini_set('display_errors', 1);
you will probably see an error something like "Headers already sent".

Solution? Don't edit gbook.php unless you are very familiar about how PHP and sessions work. Try using the recommended header.txt and footer.txt to include any HTML code to GBook. There were a number of threads about it here.
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
polarisproductions
Posts: 3
Joined: Sat Mar 29, 2008 1:02 pm

Almost there

Post by polarisproductions »

Well, it works now. I basically took the script I had added in gbook.php and put it in the header.txt file.

But I had to leave the name gbook.php and not debate.php. I thought I had replaced all the instances of gbook by debate but obviously not. Anyhow, that's not a problem.

But the security number appears as any other text, not in a specific box, is that normal? Do I have to add something else to make it appear in a box?

Thanks.

Sylvie
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

For image set $settings['autosubmit'] to 1, you have it set to 2 that's why it shows plain text.

You can rename it to debate.php, the problem was the other code you had, not the name.
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
polarisproductions
Posts: 3
Joined: Sat Mar 29, 2008 1:02 pm

Thank you

Post by polarisproductions »

Super, thank you :D

Sylvie
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

You're welcome and thanks for the donation :wink:
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
Post Reply