I'm having trouble using captcha with the new version of ZenPhoto (1.1.5). I'm not installing the nightly builds...
What's happening is that when I use a theme that supports captcha and I enable it, I get a broken image link for the captcha image.
I've got zenphoto installed in a /gallery folder and I'd prefer to keep it like this. I edited the webpath to point to this folder and everything is working fine except captcha.
Any idea what could be causing this??
http://www.richmondaltphoto.com/gallery
I've got an old sterile theme setup right now but I'd like to switch to something different and use captcha.
Thanks for the help!
Ok, I was looking in the wrong place by accident. I found cache.png and changed its permissions to 777 from 644. Still no go...I just get a blank square with a red x in it, like any image that fails to load in IE.
edit Oh wait...I'm looking for "code.png"...nope, thats still not there.
The HTML looks correct, so we need to check a couple of other things.
First, is there a file c.php in your zp-core folder?
Second, are there any CGI errors in your server log?
Third, do protected full images (have to set the option so that images are protected) show when you click on the image on the image page?
There definately IS a c.hph file in my zp-core folder
I'll have to check on CGI errors...
When I click on an image on the image page (right click), it goes to the next image. When I left-click, it brings up the usual left click menu. Ichecked on the image display settings in zenphoto, and YES "protect full images" is checked.
I should have paid attention to the theme you are running. In stopdesign you have to click on the full image link on the left of the image to get what I wanted to see. But, I tried it and it worked. Can you try turning on watermarking to see if the full image will display with a watermark? That path uses the same techinque to display the image as is used to display the captcha.
Ok, I turned on watermarking but didn't go thru all the steps to put a watermark image .png file in the zp-core/watermark directory. Whats happening now is that its not displaying thre image at all on the image page, I'm guessing that this is because the watermark image can't be found. I'll finish setting it up and see what happens, but so far it looks like its working.
edit....ok, so there WERE watermark images there aready, but its not working...the images won't load when watermarking is turned on...and captcha is doing the same thing...
progress??
I was curious is the .htaccess file has anything to do with this. I didn't edit the new one before I uploaded everything, and while everything else is working, sould the path in the .htaccess file be causing a problem??
nope, that wasn't it...uploaded a fresh .htaccess file and changed the rewrite base to /gallery which is where my gallery is located. Everything is still working, except with watermarks turned on, images won't load on the image page, and captcha still isn't working.
Some system specs might help, but I think everything is a current version:
Apache 1.3.37 (unix) webserver
PHP version 5.0.5
MySQL version 5.0.27-standard-log
Progress is a relative term. We at least know what is not working but not why. The image creation/pass thru is not working on your site. Both watermarking and captcha make use of this capability. Nothing unusual about your system specs. The error probably has something to do with the GD support, but setup did a check on what we know is required.
Maybe Tris will note this thread and have something to add. I don't know what is wrong.
Looks like this is the output of the captcha image generation script - but this just means it's not outputting a valid image.
http://richmondaltphoto.com/gallery/zp-core/c.php?i=%0F%C6%3A
The output is actually this...
`Transfer-Encoding: chunked
Content-Type: image/png
200 OK`
`‰PNG
���
IHDR���A������¯Ú¸’`
I'm not sure if that's a valid PNG or not, I can't read binary, but the browser definitely says its invalid. It looks like the header is correct (content-type: image/png) but maybe there's something else going on...
It's definitely a problem with GD or the output function, not with the zenphoto configuration. c.php (the captcha creator) doesn't have the same kind of error reporting that i.php does, so it's nearly impossible to debug from its output alone..
The only thing I can think of is maybe the fonts can't be found? Or some other configuration error. I really can't say.