Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> RN v2.20.00 - All Issues
Author Message
webservant
Worker
Worker


Joined: Feb 26, 2006
Posts: 206
Location: Springfield, MA

PostPosted: Wed Feb 13, 2008 1:13 pm Reply with quote

I upgraded my development site last night. Everything went smootly, and I'm ironing out a few stray issues. So far, these are all mine - nothing with the upgrade at all.

At this point, I'm getting intermittent issues with Captcha. Sometimes the image shows up, sometimes not. Based on other forum threads, I started testing the images directly ( Only registered users can see links on this board! Get registered or login! - Don't try it, it's behind my firewall).

What I found is that sometimes I get the image, and other times, I get this error:
Code:


Warning: imageftbbox() [function.imageftbbox]: Could not read font in /home/gracious/public_html/includes/class.php-captcha.php on line 298

Warning: imagefttext() [function.imagefttext]: Could not read font in /home/gracious/public_html/includes/class.php-captcha.php on line 306

Warning: Cannot modify header information - headers already sent by (output started at /home/gracious/public_html/includes/class.php-captcha.php:298) in /home/gracious/public_html/includes/class.php-captcha.php on line 322
PNG  ��� IHDR������<���Ԣy��PLTEzqiɍǡؑsgu֪ԩҲƄh(tm)}̝܊yn(tm)dfioiū賂ͦjpyo }|tu|hue~ٺŐɼj(tm)ҶlqmolmC-SZGhra~Y>\ʓqx{ńQ7^wl(tm)EV�Կ_bb\kػĹs?e{os8jlIs5^d0Zw5˻[b^^cwg7_dfDwV;G*ojV9LQ_kwe.4DjnyT_Vs13P+*5F>@W|f{RPvaRgd-*8ڢ|Jz{U=@ʞ|]\jUWmoP`\u}IU\LLd\YZKQiLK}[WtnS �� IDATh؉W H= "-YTIjhdI@BZvǵrM.Il5㚚Mt/{}ͦBO{A;}o�%o+ːTo8�P;]ly9(tm)~&.Yd[k}RaAɩu?0gRR)sf�GX�鲨&͝=PM鞖a%} .'p2Ł3=AՔI#' Jr q8�cdiLXNp8ѣŒB7.Ctg:΅:;q=UO:ђ$9wܹ"ԄpA|Ee, {ٖRiD{ưUv7 |(tm){0zZJ4Ie5͡xԼls䪑E t0î(tm)a-q{9@ RJiIIb Ax؞(tm)Lijpu]-/^<GP.^IJQgҴsTj\(tm)E~T&O{륪i tvz)jm'SSCYO L#Aȹm PՌl.3u0IšK9'=|vۣ@;-~n5& x~L,\+sFm3%C O&ShsfS,-Zɱ;}{#޶)++<,\QA1z^~𪓒4mضee%H?>3ͻPm~~=/:لRaNuiZ֏~ם@S'm+s5͗/|">̗uLJgH?mV IoX}z-ΩC2竁H4.!#gۮ[yG@z|᳖hONbe=޲ڵM<׫W2:i;T_c_mUU~A 4uS+$hԲ�^۶hfʇ @(1qdҗ(tm)BW J0<9&9qyxв~+CL؏$X.u:4�Tjf~b-E3` !MK#Q1a9GKg_q͐5]S8*f[о7rF~(tm)ܲw_AS8̲QVEK ՇSe4;C(p?G0ͦCbՓK<$GiT#!Bkeך w׮A^꓇k5Gq,ƢQpI 49LX<5hYа7¯E봸1&6"H(tm)ܘemda͉S^W\WMfy\ocXD"#EQ(tm)(tm)KW PX6 C\Y WzY3Ⲵļ>]lylOsCapaI7oPu4ZLkdJ)Ys ͫ =kPi*Я2\~8+[hRdnr(tm)j/G qAjolRΘ#['*b,A z@e\6[@Z(tm)\VN<)q:A\YYڄ|l,-~R Wr1*ƶ=O,(htY$?ku5]sG]qr9bva PzY$0-)AR5pT|{ u�K!"ȶ95<"&Ƥִ*,C`vF7MCXGifz| N«2ݧB~3]bޯT_ZaWD"뜌&z\M' 2n -����IENDB`


I figure that it's something with either my PHP or Apache, but don't know where to look next. Does anyone have any constructive suggestions? Thanks.

_________________
Awaiting His Shout
Webservant - GraciousCall.org
Romans 8:28-39 
View user's profile Send private message Visit poster's website AIM Address
Gremmie
Former Moderator in Good Standing


Joined: Apr 06, 2006
Posts: 2415
Location: Iowa, USA

PostPosted: Wed Feb 13, 2008 1:30 pm Reply with quote

Make sure you have all the font files from the distribution on your server. Also make sure they aren't 0 bytes in size. This happened to me. I had 0 sized font files and as a result letters wouldn't show up.

_________________
Only registered users can see links on this board! Get registered or login! - An Event Calendar for PHP-Nuke
Only registered users can see links on this board! Get registered or login! - A Google Maps Nuke Module 
View user's profile Send private message
webservant
PostPosted: Wed Feb 13, 2008 1:45 pm Reply with quote

Font files? In RN? Or are you talking about something in the system?
 
webservant
PostPosted: Wed Feb 13, 2008 1:46 pm Reply with quote

Ahhh. As in includes/fonts!
 
webservant
PostPosted: Wed Feb 13, 2008 1:51 pm Reply with quote

-rw-r--r-- 1 gracious gracious 367111 2008-02-12 22:40 arial.ttf
-rw-r--r-- 1 gracious gracious 58716 2008-02-12 22:40 VeraBd.ttf
-rw-r--r-- 1 gracious gracious 63208 2008-02-12 22:40 VeraBI.ttf
-rw-r--r-- 1 gracious gracious 63684 2008-02-12 22:40 VeraIt.ttf
-rw-r--r-- 1 gracious gracious 49052 2008-02-12 22:40 VeraMoBd.ttf
-rw-r--r-- 1 gracious gracious 55032 2008-02-12 22:40 VeraMoBI.ttf
-rw-r--r-- 1 gracious gracious 54508 2008-02-12 22:40 VeraMoIt.ttf
-rw-r--r-- 1 gracious gracious 49224 2008-02-12 22:40 VeraMono.ttf
-rw-r--r-- 1 gracious gracious 58736 2008-02-12 22:40 VeraSeBd.ttf
-rw-r--r-- 1 gracious gracious 60280 2008-02-12 22:40 VeraSe.ttf
-rw-r--r-- 1 gracious gracious 65932 2008-02-12 22:40 Vera.ttf
-rw-r--r-- 1 gracious gracious 171792 2008-02-12 22:40 verdana.ttf
 
webservant
PostPosted: Wed Feb 13, 2008 2:02 pm Reply with quote

Thanks Gremmie! That was it. :clap:

I put a this line in the class.php-captcha.php file just above 298:
Code:
echo "font is $sCurrentFont <br>";


When I hit the URL several times, the arial font was alway right before the warnings. So, I uploaded the file again and the new copy was 1 byte larger, and the issue has disappeared. Bang Head
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> RN v2.20.00 - All Issues

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©