zpCaptcha: broken images with 1.4.5

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?

Comments

  • vincent3569 Member, Translator
    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...
  • fretzl Administrator, Developer
    It looks like the "Allowed characters" option (in zpCaptcha options) is empty.
  • Ra10 Member
    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
  • Ra10 Member
    @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
  • fretzl Administrator, Developer
    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"
    `
  • 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.
  • Ra10 Member
    @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
  • 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.
  • Ra10 Member
    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
  • acrylian Administrator, Developer
    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!
Sign In or Register to comment.