Previous Thread
Next Thread
Print Thread
Hop To
Joined: Oct 2012
Posts: 5
T
stranger
stranger
T Offline
Joined: Oct 2012
Posts: 5
Hi,

We are having an issue with Captcha where it would sometimes not generate the verification image.

I've verified that the gallery and registration settings Graphic library is set to GD2. If we refresh the page, an image usually gets generated 9 times out of 10. But if we refresh another couple of times at least 1 time it wouldn't generate an image.

Thanks

Joined: Jun 2006
Posts: 16,299
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,299
Likes: 116
ImageMagick would be the preferred method, the caveat being that it's not always installed on servers.

What is the contents of the "/public_html/forum/images/captcha/backgrounds" folder on your server? There should be an index.html file and two images; if there is anything else in the folder it could be causing grief (same thing goes for the fonts directory under cache as well, only there are two font files and an index.html file).


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Joined: Oct 2012
Posts: 5
T
stranger
stranger
T Offline
Joined: Oct 2012
Posts: 5
My captcha forlder contains:
--Captcha/
--index.html
--backgrounds/
--background1.jpg
--background2.jpg
--index.html
--fonts/
--bullpen_.ttf
--eflb.ttf
--index.html

There isn't a font folder under the cache folder. only the one inside the captcha

Joined: Dec 2003
Posts: 6,562
Likes: 78
Joined: Dec 2003
Posts: 6,562
Likes: 78
What6 image library are you using?
Or I should ask which ones do you have?
GD2 or Imagemagick.


Blue Man Group
There is no such thing as stupid questions. Just stupid answers
Joined: Oct 2012
Posts: 5
T
stranger
stranger
T Offline
Joined: Oct 2012
Posts: 5
We only have the GD2 option.
The server is on a windows machine with IIS/php

Joined: Dec 2003
Posts: 6,562
Likes: 78
Joined: Dec 2003
Posts: 6,562
Likes: 78
There is a third location in the control panel.
Control Panel » Display Options
[-] Post/Reply Page Options
Use this Graphics Library for CAPTCHAs:
I would go back to all three locations and even if it looks correct save it again.

Other than that it could be a host or connectivity issue, when the image is attempting to load.


Blue Man Group
There is no such thing as stupid questions. Just stupid answers
Joined: Oct 2012
Posts: 5
T
stranger
stranger
T Offline
Joined: Oct 2012
Posts: 5
We found what was the issue with the captcha.

Installing Imagemagick techically didn't fix the issue but it did give out a nice error message, unlike GD2. It was trying to gererate an image using the Thumbs.db
file that was in the backgrounds folder. It was hidden in the windows explorer so I didn't see it the first time. Deleting that file fixed the errors.

Thanks for the help.

Joined: Dec 2003
Posts: 6,562
Likes: 78
Joined: Dec 2003
Posts: 6,562
Likes: 78
Ahhhh.
I assume you either have a windows server or when you uploaded the scripts your pc created it.
As gizmo stated nothing extra should be in those folders.
I had a ftp program years ago and when you would download a backup it created a log file in every folder.
so it would hose the captcha every time.


Blue Man Group
There is no such thing as stupid questions. Just stupid answers
Joined: Jun 2006
Posts: 16,299
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,299
Likes: 116
You should configure your remote administration tool to always show hidden files and folders.


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!

Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Bots
by Outdoorking - 04/13/2024 5:08 PM
Can you add html to language files?
by Baldeagle - 04/07/2024 2:41 PM
Do I need to rebuild my database?
by Baldeagle - 04/07/2024 2:58 AM
This is not a bug, but a suggestion
by Baldeagle - 04/05/2024 11:25 PM
spam issues
by ECNet - 03/19/2024 11:45 PM
Who's Online Now
0 members (), 1,073 guests, and 180 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20230217)