Member
Member
Ra10   26-07-2013, 15:51
#1

Hallo,

in the meantime I have my site up and running with zenphoto 1.4.5. Only one small issue remains: the captcha images (e.g. for commenting images) seem to be broken.

The zenpgoto error log does not show anything related. The GD library is enabled (freetype support on), watermarking works as well using a png watermark. Server Logfile shows that an image seems to be delivered with HTTP code 200). The image creation procedure seems to be running to the end (checked by adding an additional debugLog statement as last line in c.php). Background image is in place (path applied in c.php seems to be correct).

PHP version: 5.4.11 GD version: 2.0.34 compatible

Changing the theme or the web browser does not help either.

Any ideas what else could be wrong or how to further investigate?

Member
Member
vincent3569   26-07-2013, 17:05
#2

what theme are you using ?
what captcha are you using ?

If you are using reCaptcha with Stopdesign, I advice you to use another captcha image, prefixed by zp...

Administrator
Administrator
fretzl   26-07-2013, 17:52
#3

It looks like the "Allowed characters" option (in zpCaptcha options) is empty.

Member
Member
Ra10   26-07-2013, 17:54
#4

Thanks for the fast response. I use my own theme and the zpCaptcha extension. If I change the theme (lets say to zenpage) same behaviour applies - the captcha images are still broken.

Ralf

Member
Member
Ra10   26-07-2013, 18:02
#5

@fretzl Thanks, allowed character option is set in the user interface. I would rule out that one as well, since I checked (additional debug log in c.php) that the text string for the image to be generated contains characters...;-)

Ralf

Administrator
Administrator
fretzl   26-07-2013, 18:36
#6

Maybe this error is related. It's on your contact page.
string(156) "Missing argument 1 for zpCaptcha::getCaptcha(), called in /var/www/virtual/ra10/html/themes/zpBootstrap_tabula/contact_form/form.php on line 108 and defined" string(26) "Undefined variable: prompt" string(26) "Undefined variable: prompt"

Member
Member
sbillard   26-07-2013, 18:38
#7

From your details (some sort of image seems to be delivered) it sounds like the GD library is not rendering text properly. This is not something I have heard of before. But one suggestion would be to select a different font and see if it will render. Once you have applied the selection in the plugin options, the captcha image should show as a sample captcha image.

I would at least try "system" as well as any of the fonts in the .../zp-core/gd_fonts folder. Those are GD "built in" fonts.

Member
Member
Ra10   26-07-2013, 20:46
#8

@sbillard

None of the fonts work. However, "system" for example is not contained in the gd_fonts folder?

When I choose azimov $fontname in c.php is:
/var/www/virtual/ra10/html/zp-core/gd_fonts//azimov.gdf Is the double slash before the fontfile correct?

If I choose system $fontname seems to be empty. Is that correct?

Thanks Ralf

Member
Member
sbillard   26-07-2013, 21:10
#9

Empty is correct for the "system" font. There should not be the double slash in the file path, but it probably does not matter. Most systems ignore the extra slash.

Member
Member
Ra10   27-07-2013, 00:03
#10

Thanks again for all the help, since debugging the issue is becoming more and more complex I have switched to reCaptcha, which works fine so far after some small css-changes...
Ralf

Administrator
Administrator
acrylian   27-07-2013, 09:43
#11

Your site looks nice. You should submit it to our showcase when ready. (Advise from German to German, don't forget the Imprint (Impressum) - Law makes virtually no exception overhere!).

Btw, nice to see one of the first usages of my socialshareprivacy plugin!

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.