We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 7087
    • 15 Posts
    Hi All,

    I have a problem with Captcha code images not displaying.

    I have a site developed locally on WampServer with Apache. I have transferred the site to the hosting server and made the necessary configuration changes and the site is working perfectly. However, the Captcha code images are not displaying on the contact form or the manager login screen.

    The hosting server is a Windows server but from the phpinfo, the GD Library is actually enabled (see below) so I have no idea what the problem is.

    GD Support  enabled  
    GD Version  bundled (2.0.28 compatible)  
    FreeType Support  enabled  
    FreeType Linkage  with freetype  
    GIF Read Support  enabled  
    GIF Create Support  enabled  
    JPG Support  enabled  
    PNG Support  enabled  
    WBMP Support  enabled  
    XBM Support  enabled 
    


    No error messages are generated. I read in the forum something about the cache - perhaps this is the problem.

    We are going to temporarily disable the Captcha codes on the site - although they work quite happily on the WampServer so I guess this must be a simple config issue.

    Would appreciate any help you can muster - many thanks in advance.

    Alan Wyatt-Jones
      • 7087
      • 15 Posts
      Just some further info. If I try and run the veriword.php script using the same call and parameter as the image on the screen, the following errors are generated.

      Warning: imagettfbbox() [function.imagettfbbox]: Could not read font in e:\domains\e\xxx.co.uk\user\htdocs\manager\includes\veriword.php on line 126
      
      Warning: Division by zero in e:\domains\e\xxx.co.uk\user\htdocs\manager\includes\veriword.php on line 131
      
      Warning: imagettfbbox() [function.imagettfbbox]: Could not read font in e:\domains\e\xxx.co.uk\user\htdocs\manager\includes\veriword.php on line 134
      
      Warning: imagettftext() [function.imagettftext]: Could not read font in e:\domains\e\xxx.co.uk\user\htdocs\manager\includes\veriword.php on line 157
      
      Warning: Cannot modify header information - headers already sent by (output started at e:\domains\e\xxx.co.uk\user\htdocs\manager\includes\veriword.php:126) in e:\domains\e\xxx.co.uk\user\htdocs\manager\includes\veriword.php on line 68
      ÿØÿàJFIFÿþ>CREATOR: gd-jpeg v1.0 (using IJG JPEG v62), default quality ÿÛC    $.' ",#(7),01444'9=82<.342ÿÛC  2!!22222222222222222222222222222222222222222222222222ÿÀ<”"ÿÄ ÿĵ}!1AQa"q2?‘¡#B±ÁRÑð$3br‚ %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyzƒ„…†‡ˆ‰Š’“”•–—˜™š¢£¤¥¦§¨©ª²³´µ¶·¸¹ºÂÃÄÅÆÇÈÉÊÒÓÔÕÖרÙÚáâãäåæçèéêñòóôõö÷øùúÿÄ ÿĵw!1AQaq"2?B‘¡±Á #3RðbrÑ $4á%ñ&'()*56789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz‚ƒ„…†‡ˆ‰Š’“”•–—˜™š¢£¤¥¦§¨©ª²³´µ¶·¸¹ºÂÃÄÅÆÇÈÉÊÒÓÔÕÖרÙÚâãäåæçèéêòóôõö÷øùúÿÚ ?÷½q|-þÏ!\ãÌÚØüöãõ¤Ô¯ÎxÑÉû¬áxüjö)®ŠøÜ¡±ÈȦšºÐ úQ4ªæÝB®P Ÿ—<û{ÔösÉsn²¿–3ÈòÛpÇÖ§(¤ä¨$ðN;T2Z‰Ù4±Ú2þT]4Yu£{ © ‚?dù¹Æ2Nµ곑x¡BÊIPIÁÆ2 ­%‰c’0X?“õ¦H<å—fFút§ÍÀT’ûÉ[²³,ÎŽ¡eÈvã'½ ©´« *»Ô'9Î0¸ëÓùUà‘6ì*xnëN§"ñÓŽ”sG°öÚ”ÓÃrïnË]ÊŠÄõà€xRžb[“éž”ÿ*2NQyëÇZ¯Ë‘?íÔ°Ïd¥dÅÆQxàqEUho?ð‘nÀ·Ïú­ƒùã?­7TŽâX órOX˜)?Ç箈D¾Q•7ÿwpÏåI5Ä6ɾi¦Zšnë@(‹yRy?—;ïO¼' tÆÏ\÷ãëKoq ?º-ÕÇ“# •¹•w>•d_Ú—‘˺1–ƒ©!¸†á7Ã"ºçSšm»j€Ìx®&k§„Ü.á˜ÛÍqœ Ügðü*·K,0Ÿ¶3ì$eÀÚwp[æ þdûV±¾µ:yé½Xg‘Iý¡i”h?/÷Fzö§Í.ÀR‘. ]¬VÒF]Á Fî€ã x>”‘ÅxÉoæ¤å” ÊR%¹ä?Z¾.? š@cX›i-Œ‡<}iMå²ù{¦Aæ}ÎzÒæ}€Ï¶†ò8n„¯)vS´¹KsÊüÄã§aô«pÚÀËÆ,HŠ6“œŽøš•níäY J¬#ûØíQ‹Å2Ä‚)?x ·?œž*Rmî ýE sG26áûÖ-Ž3ÏþU^ádð#ö;`°|)]§ŒÁÏzºn£Uw}ȨÅrFsôÅ(»·2ùBT/ýÜþ4‹M¦W·¶-l#•eM§¼¥‰8뜟¤?yp¥~ôjã¯Þ© Ümºnu.?1Œœw¤ Ýù\€??Øù{wüh£VËÉ‚ Y$ àð¼Iÿ=ê[Èä–ÎXâÛæ2?»‰ó6j¹¿·I%Åݹ8ãŽzJ^ý€!Ò¢·ŠxÓh®Þ#U8穞½êÜJË+ãp*œ”“A<ÍlÑ¢)t'?0ÁöëǽJ¦íÞÝ–T9ès?Ò¦W¿¼$†6MáÂýòÊAìy¨RÒO¶É#2ˆ™ƒ*Žr@Ǽ©¨"Gg¸cq7Ý/QÅMa¼Ú£I+ÈÌØþ”4Ò½ÀzYÛ¡cäÆ]ÆÊ ¿×š?û6ÓÍ?Ä<±ò(QµyÎqÓ>õŸ©\ÜZC}4s¾cÀU8ÀÈÕWM¿»¼µŽY'`˶%[9«örµî鲴̇ìÐæO¿ò›¿>´áil<¼[Ä<³”ùÊ}½+>öCic¨Íáƒd s…¦Y\Owio3ÌêÂ$rbI?•JŒš½Âæ¢ÛA‘’Õ¤ûåTß_Ztj±Æ¨¼5ÍèúµÝäz—œàùQîL‡æÿ ÜŽÎ`˜ƒ½`çØÿ‰¥8¸»0VeˆãXËàŸ™‹œóG•”JQL€`69ëU0Ð> !y[s!Á<žÿ…U{©Æ¿¸?ù^Nâ=N NŨ¶jËÊ18V ÁÇCšV êQºƒTäŒ-ºfr%B œ?w ?mbûWÚ0|ÂëôÿA6&Š$†$Š5 ˆÐQ±rÌTe†{?òiç¥s²^K¥¬*“˜` ¬Y?lôÎ?!@?¯±ÚmŒ}šFrƒ`ùO·¥+ÚÛ9?¼1?ù@wc×Ö°ôëË«?2)ä¸}â6?ã?ØÁã¥Z’IÄq >\„8*üvôâ€/ý†Ó}šƒ`ãô¢²/5 «'Ž$—xس€IäÑ@ÿÙ


      PLEASE NOTE: I have deliberately concealed the domain by replacing it with ’xxx’ in the error messages above. The domain is current and correctly displayed in the real errors.
        • 7087
        • 15 Posts
        Just thought I would let you all know that the problem was with the font in the ’ttf’ folder. Whilst transferring the file from the development server, the FTP client sent the file as ascii as opposed to binary and therefore the file was corrupted.

        Re-transmitting the file as binary solved the issue.