Wrong security number

Dr. GBooky is here to help you with your guestbook problems ...
Olywaguy
Posts: 2
Joined: Thu Sep 14, 2006 11:17 pm

Post by Olywaguy »

I am hoping you folks can help me with a problem that I am having with the guestbook.

I've added the guestbooks online. In order to prevent spamming, I wanted to add the feature that makes you type in the security number in order to post.

The problem that I am having is that after you type the security number, the form goes blank and gives you another security number to type. The message never gets posted. Of course it works fine when you disable the feature, but I do get tons of spam as a result.

The link is located at:

http://www.evergreen.edu/library/libhis ... /gbook.php

Please attempt to post something and you will see what I mean.

Is there a remedy for this problem?

Any help ya'll could give me would be most appreciated.
Olywaguy
Henrie
Posts: 1095
Joined: Sun Aug 14, 2005 8:57 pm

Post by Henrie »

Hello Olywaguy,

There is another thread in this forum which handles the repeating security check viewtopic.php?t=706&start=0.

First of all, it is best to upgrade your guestbook to the newest version (1.43) which has some improvements over version 1.41.

In the previously mentioned thread the outcome is that it most likely is a session problem.

Can you please upload the following files (the ones inside the zip file) to your server and place a link here:
http://www.phpjunkyard.com/extras/phpinfo.zip and http://www.phpjunkyard.com/extras/session_test.zip
Than we will have a further look.

Greetings,
Henrie
Olywaguy
Posts: 2
Joined: Thu Sep 14, 2006 11:17 pm

Post by Olywaguy »

Here's the link:

http://www.evergreen.edu/library/libhis ... hpinfo.php

http://www.evergreen.edu/library/libhis ... hpinfo.php

http://www.evergreen.edu/library/libhis ... hpinfo.php

http://www.evergreen.edu/library/libhis ... hpinfo.php

http://www.evergreen.edu/library/libhis ... n_test.php


I wasn't sure exactly where to place it so I placed them inside the main directory and the guestbook directories.

Guestbook 2 is the one that is set with the anti-spam. The other two are not set to it at this time.
Olywaguy
Klemen
Site Admin
Posts: 10141
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

Hi,

There is a number of tasks you should do to make sure your SPAM protection is working and up-to-date:

1. Upgrade GBook to version 1.43. It's easy and you won't loose any existing posts. Download the new version and see the readme.html file for instructions how to upgrade.

2. Next you should have your host (or yourself if you are server admin) install/enable GD library on your server so you can use the graphical security image. On Windows all it usually takes is a little change in the php.ini file, see this post for more info:
viewtopic.php?p=4486#4486

3. If at all possible I would recommend upgrading your PHP to a more recent version, for example 4.4.x as it has new features and many bugs fixed from your current version (4.3.2). Again this must be done by someone with root (administrator) server access.

If for some reason you can't upgrade it (or your host doesn't want to) you can try deleting line 49 in gbook.php (version 1.43):
session_regenerate_id();


Regards,
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
Villa Bussola
Posts: 9
Joined: Tue Jul 25, 2006 8:25 am

Post by Villa Bussola »

Host: alphamegahosting.com
Guestbook version 1.43
PHP Version 4.3.9
Uploaded the sesion_test.php and that works fine.

url of the guestbook:

http://www.villabussola.com/nederlands/gastenboek.html

Found this topic cause i have this problem with the security image,
When i fill in the exact numbers it keeps telling me its the wrong security number. I think this started after installing 1.43 but i'm not sure.
installed 1.43 because i had a lot of spam, that's over now . So are the normal messages ;-((

Allready tried the sessiontest with following outcome:

Session started successfully!
CLICK HERE FOR PAGE 2

$_SESSION['test'] is set to: TRUE

Help would be verry much apreciated
Henrie
Posts: 1095
Joined: Sun Aug 14, 2005 8:57 pm

Post by Henrie »

Hello Villa Bussola,

I just posted a message in your guestbook and got no error at all.

So everything seems to work.

Greetings,
Henrie
Villa Bussola
Posts: 9
Joined: Tue Jul 25, 2006 8:25 am

problem solved!

Post by Villa Bussola »

thanks for your reply but the problem is solved.
Two months ago i replaced the guestbook.php file for version 4.13, as i found out yesterday, i didn't replace the setting file !!!
after replacing the settings file with version 4.13 the problem was solved.

thanks again for teh help....
Post Reply