rhutchison:
Hey Woody and Andrew,
I'm having the same problem with the Captcha image not displaying. I'm on GoDaddy shared hosting with PHP 4.3.11. When I run captcha_img.php on the browser I get:
When I run captcha_test the image is also not displaying.
I don't know if there's a solution yet, but I wanted to be in on any solutions that do come up. Let me know if there are any settings I can try massaging.
Hi Roger,
Thank you for your report. I was going wacko thinking I was the only one with this issue.
My webhost is quickly tiring of my communications on this issue. They keep saying it is a problem with the script or an "authoring" issue. I say NOT! I'm convinced it is a server configuration issue. But if I am wrong I will eat crow (but I prefer turkey).
Several months ago my hosting company messed up (we are apparently a live guinea pig) and added mod_security rules which prevented the serving of my production shop's product images. Took the webhost two days to find problem and repair (apparently they did not document their changes and they could not remember what they changed... go figure).
A similar rule might be causing the captcha_image to not get served (get filtered). But webhost consistently responds no rules are in place which would filter the image. I suspect otherwise but don't know how to prove as I have no access to server wide rules or server wise error logs (I can access my own error log but that is all clear). Such is life in a shared host environment.
They are aware of this thread and I'm amazed they have not responded or posted here. I would think they would want to learn? I know I do!
Does your host employ mod_security? Any special server wide/global rules applied?
Have you tried testing by quickly and temporarily disabling your .htaccess files? (remove the period in front of htaccess. Be sure to change back quickly after testing). I just tested doing that myself and did not help.
I will PM you latest debug script Andrew sent me. If you learn anything please do post. And I'll do the same.
And an EXTRA BIG thanks to Andrew with helping troubleshoot this issue!
Woody