Page 1 of 1

Security image... again, sorry

Posted: Mon Mar 31, 2008 7:13 pm
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)

Posted: Mon Mar 31, 2008 7:42 pm
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.

Almost there

Posted: Tue Apr 01, 2008 1:43 pm
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

Posted: Tue Apr 01, 2008 1:47 pm
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.

Thank you

Posted: Tue Apr 01, 2008 3:07 pm
by polarisproductions
Super, thank you :D

Sylvie

Posted: Tue Apr 01, 2008 4:55 pm
by Klemen
You're welcome and thanks for the donation :wink: