Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> RN Conversion Issues From v2.02
Author Message
webservant
Worker
Worker



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

PostPosted: Tue Mar 13, 2007 6:08 am Reply with quote

Forgive me if this is the wrong topic in which to place this.

I'm converting my development site (i.e., this is not a production issue) from RN 2.02.02. The conversion went well. However, I'm not seeing the security code anywhere (e.g., admin.php, Your Account, etc.). I have $display_errors=TRUE, but am not seeing any error messages. When I set gfx_check to 0 in config.php, I am able to login in.

Is this a code issues or is my server lacking some underlying pre-requisite?

_________________
Awaiting His Shout
Webservant - GraciousCall.org
Romans 8:28-39 
View user's profile Send private message Visit poster's website AIM Address
kguske
Site Admin



Joined: Jun 04, 2004
Posts: 6432

PostPosted: Tue Mar 13, 2007 6:13 am Reply with quote

It does require the GD lib (PHP). Did you have security codes in 2.02.02? If you're using IE, do you see a red X where the image is supposed to be?

_________________
I search, therefore I exist...
nukeSEO - nukeFEED - nukePIE - nukeSPAM - nukeWYSIWYG
 
View user's profile Send private message
kguske







PostPosted: Tue Mar 13, 2007 6:24 am Reply with quote

Sounds like your GD is working (or was). I'm not as familiar with the changes as Raven or montego, but I'd check the installation to make sure all the files were installed.
 
montego
Site Admin



Joined: Aug 29, 2004
Posts: 9457
Location: Arizona

PostPosted: Tue Mar 13, 2007 7:18 am Reply with quote

webservant, I appologize for asking this, but are you certain that the $gfx_chk variable in config.php is set up right to see it? I mean if you had it before you should still have it. We did move the captcha on the New Registration to the Confirm page, so have you checked the basic login page to see if its there?

Also, since you have upgraded, did you have to make any merging of code? Maybe you missed something? Not sure, just something to consider.

Guest, you have hijacked webservant's thread. We'll try to help both of you, but you very well may have different issues causing this.

_________________
Where Do YOU Stand?
HTML Newsletter::ShortLinks::Mailer::Downloads and more... 
View user's profile Send private message Visit poster's website
webservant







PostPosted: Tue Mar 13, 2007 7:34 am Reply with quote

Guest is me - not a hijack. I used quick reply (like now). I'm not sure if I was logged in or not. I am now, so we'll see if this is an issue on this site. I probably was not logged in on the machine from which I replied.

I have had to do some code merging, and will recheck, but in these modules, it was things like cookie timeouts. Does captcha and gfx run on the same base PHP code or is there a new feature involved that may not be working on my server? Which files/functions are involved in presenting the image, so I can narrow my search on this?
 
technocrat
Life Cycles Becoming CPU Cycles



Joined: Jul 07, 2005
Posts: 511

PostPosted: Tue Mar 13, 2007 12:47 pm Reply with quote

What is the url it's showing for the image?

_________________
Nuke-Evolution
phpBB-Evolution / phpBB-Evolution Blog 
View user's profile Send private message
webservant







PostPosted: Tue Mar 13, 2007 2:37 pm Reply with quote

For this page: [ Only registered users can see links on this board! Get registered or login! ]
The image is: [ Only registered users can see links on this board! Get registered or login! ]
 
webservant







PostPosted: Tue Mar 13, 2007 2:41 pm Reply with quote

When I go to the image URL directly, I get this:

Quote:
Warning: imageftbbox(): No FreeType 2 support in this PHP build in /home/doulos/public_html/includes/class.php-captcha.php on line 298

Warning: imagefttext(): No FreeType 2 support in this PHP build in /home/doulos/public_html/includes/class.php-captcha.php on line 306

Warning: imageftbbox(): No FreeType 2 support in this PHP build in /home/doulos/public_html/includes/class.php-captcha.php on line 298

Warning: imagefttext(): No FreeType 2 support in this PHP build in /home/doulos/public_html/includes/class.php-captcha.php on line 306

Warning: imageftbbox(): No FreeType 2 support in this PHP build in /home/doulos/public_html/includes/class.php-captcha.php on line 298

Warning: imagefttext(): No FreeType 2 support in this PHP build in /home/doulos/public_html/includes/class.php-captcha.php on line 306

Warning: imageftbbox(): No FreeType 2 support in this PHP build in /home/doulos/public_html/includes/class.php-captcha.php on line 298

Warning: imagefttext(): No FreeType 2 support in this PHP build in /home/doulos/public_html/includes/class.php-captcha.php on line 306

Warning: imageftbbox(): No FreeType 2 support in this PHP build in /home/doulos/public_html/includes/class.php-captcha.php on line 298

Warning: imagefttext(): No FreeType 2 support in this PHP build in /home/doulos/public_html/includes/class.php-captcha.php on line 306

Warning: Cannot add header information - headers already sent by (output started at /home/doulos/public_html/includes/class.php-captcha.php:298) in /home/doulos/public_html/includes/class.php-captcha.php on line 322
‰PNG  IHDRŒ<ƒÔ¢yäPLTEÿÿÿ‘†óîÄ—â´t¥”«ìÒòʆoö“lÕ¿rÔÅòômãŽiñÝ«eæ¢Üñš}Ú‚Ð…æ²Ô“ví§ÈdÀfå÷ÖœxéÈ ¹À™ì¢Éêž‚ÄÓÊóŠùÕžw¼…¢ŽºÛ’¤zãÒ‚wzŽ¯¬ùð„ìÈјÑåøßÕnpíÈã‚ÑËßÎt¸öˆçÇrÚè~¢•qÊnr¯Àpœ«ŸÄÊÃ̀ͧëÔçõ€Ê·—¢zÉžÚ¤àjotÑàiÞyßÓ¼t¤wÄð­}µwuz—˜Àî½Ôã´ƒlÆÄ, T5IKAJ,44]èâcTnIDATxœ­Ù[ÚÊà¥H ‘r/h{ªžŠÔräj KISþÿOºóÍìn6É‚ô9gž§ˆËÛofw*õ+zó­ú‡×Û˜ßÕd<çÞÿðA˜é¿¯ñrvbN‹»¿g!ÍuW®û5›rVê·¼_hÌðjZ–žir¹ýML]E•¦ÂóR€)RkfN”ºšä0 M¯¢4-óþ.é KÑœT0lñR‚š2çáa—Fµ S:Ÿ®ÓêV1hÒüv¼Ùø^!¨S5Žt sxfŒÆi×Ԯ,xdÏ7^Êg®Œþ$ÉçrTyèsˆŸ¹¿—æpªé‘hºÝ.²ù«H†E$© \¹2´Ë3:å„$ªHÏNšV)lùê–ê¸m#“ù> kˆ“x'ÙM$ëœ^*ýê)ú«î)…2áY'ŽÆŒ‰‚¹} #+ÜÏ¡ ýJ!ý‰¾~½¿ç¥pŽÜçÊB¢öœŽ„BÕZj SÞ¶@ï•$¾ÿ¨Iˆ¢A6FåÞöªlÁ¤Äž˜èR‡ÛsÛßkq_Óì~I@óã­^[ªHF…9GgÊ¡èLŒæD…vÙyF{1õ*8®zz½¼§xjÜ¡&wI4S EÿÆ@²la“3–ÁoiÀ9.8=”RùQhP Ý,„3µ¡X $hQ:úDš{,?lù4XæÄ ´ƒ+ÇÍ{E¸Ñ #ÑtÓÔJþÐ?![›¬ìV¿³Óâeýø‘Y^’üîøä²ÃQ£šQØTJƒMÊh:*ù-áNÜÞ.yãewb>z+ã۵£¹}VôñcÈw M&SBëJo÷ÀàD\þú…«‰Î¡Ó«Ô;Üdnc(ãc…í jR'v,/UÉêª×{ìÙoÏÎ(›­z2e8*견9 ¦59“ÉÍ rùtJ˜>cª5WqÜ)( űºzGѸÅ©o¨$JÚDËk8Œ†C,ãÐ`p@B ¦$’><˜+¹SZHK¶¨y ©Í‹Z,®D©×××+UÕ|Û~“Ò œÜd6Ê(DN°Ø9„@“Ij7ê“Sn¶—8æwRÐ,/$ùTky,êŠZ¤³©jT’cr¨;]Úçè@$ ŸLR²³PÃÒtBßôZ‹v LKÂht£LHª†Qy’¤‹»À(ÌÏfNb³bÑOîžg‹éáaa³ÙŒÆ¥ã‰¥†Q†´­¾ÊI’èM'âCB Û.ÓÀŸ&¥´9™,K0h‚f´x}ê(OSÓ šÌéu'G(I«P`GP8f8ãMrqñò2A*v¼«Ù˜d˜ôØ(j´m4ºÅ’d<–û‘lSÓÅ…“Gp Ü#Še çä÷98/Ô!ŠGaïk6 ¨Žñô©»í6\€lò±aÊ;ídÊ"f\_‡ÂDsŸ)lQßç‹\xü°•0Ž†Ú³5‰`ÛÓ€š4Mr4$¤F#œI"׶b>,†(Å…àdRÕ\\8˜’F&e ŠÊH2VŽ…Ú¤ÛBË\˜i‘NŽªǁei‹rßïI»*ÆÎì–·6™ƒÑŽ©ú‚J’™‘°8JT»MkhÀý:á`^^0ð(«iÕ=«‹2F=ZŠÚl9yÿ’;Ë6ÒÌl½ž%0)Ñp‘§õÌïH‚à„-ΡhÃiq>%Œ4Ëhº]35ÈÄ–9rç:(RSÈùz^qJ_DC©Ä}U¼k ‚ï• :Ãá±q9è’æ\Iµ¡@ƒ8²ÒÌÌ"}Ê(œ—ÂA} IÔ¦«×BÁ¼ÔÞº §¶¢ddÀ±Û›‘ck¶b¿A ί8À‘ïBÄbû&űÔ>JðjÌüšf‘äq|wçîê Í‹û)0Qëõá´Ûa,ŸJßJ¯Tñp8 c8” òЕìx±x„ãîî®ôDWSúHú\¾§Í‘óA|•Tö€SÖ¬Š•L¡Hf†ïJ GãôÛëuŒ%Uû­@ITò¤eÌÊL Kƺ[ΩPpvaDÓÆåözm¸WôE{ Mêhº+#±1§rÑWÑ”,êŠcºIhx®}$'ž4½Ô”.Lõãaâx1VãbntÅúkBž?÷•%±çòÒ9!VÊW;5xÁè¦( ˹2oŸ1/àxZʪȣqû1Ô'³-ß”*»©&ÃÃRùT!9^ïõH]^^V©aÌË>Úÿy©²ƒ{^yöÀ785 ,7•Úû/hMý7_UÍ[œ E^zõæ‹ûê€ßiïåxRAí™Ãz½Õ,©ÿhûz×™êIEND®B`‚
 
technocrat







PostPosted: Tue Mar 13, 2007 2:41 pm Reply with quote

Neither of those URLs seem to be working. If you give the working url I can look into it better.
 
webservant







PostPosted: Tue Mar 13, 2007 2:49 pm Reply with quote

Sorry, the server is behind my firewall locally.

Try this: [ Only registered users can see links on this board! Get registered or login! ]
 
technocrat







PostPosted: Tue Mar 13, 2007 2:57 pm Reply with quote

Doesnt work either. What is wierd is the error messages you are getting says that you do not have the correct compiled functions to display the image, yet for that type of image to be there you have to imageftbbox to even have it send the URL.

Do me a favor open includes/gfx_check.php

Find:
Code:
if (defined('VISUAL_CAPTCHA')) {


Before add:
Code:
var_dump(GDSUPPORT, defined('VISUAL_CAPTCHA'));

Then refresh your screen you should see a data dump
 
webservant







PostPosted: Tue Mar 13, 2007 3:03 pm Reply with quote

One additional line shows up in the body:

bool(true) int(1)
 
technocrat







PostPosted: Tue Mar 13, 2007 3:08 pm Reply with quote

*scratched head*
Ok change the var_dump to:
Code:
var_dump(function_exists('imagecreatetruecolor'), function_exists('imageftbbox'), function_exists('imagefttext'));

Tell me what it says
 
webservant







PostPosted: Tue Mar 13, 2007 3:12 pm Reply with quote

bool(true) bool(true) bool(true)
 
technocrat







PostPosted: Tue Mar 13, 2007 3:19 pm Reply with quote

Ok remove that line.

Open images/captcha.php

and add:
Code:
error_reporting(0);

Right after the <?php

Then try going directly to the image and see if it still has those errors
 
webservant







PostPosted: Tue Mar 13, 2007 3:24 pm Reply with quote

OK.
- removed the line from includes/gfx_check.php
- added new line to images/captcha.php
- go to [ Only registered users can see links on this board! Get registered or login! ]

See a blank page with an image of colored lines.
If I refresh, the image changes - like someone rearranged the lines.
 
webservant







PostPosted: Tue Mar 13, 2007 3:25 pm Reply with quote

BTW - the original Your Account URL now shows the same image, but no code that is discernable/readable.
 
technocrat







PostPosted: Tue Mar 13, 2007 3:29 pm Reply with quote

Well I am a bit perplexed. The errors from before were saying the those functions did not exists in PHP, but when we did a var_dump php seems to think they are there. So perhaps you have an older version FreeType and need to update. Or I am missing something....
 
webservant







PostPosted: Tue Mar 13, 2007 3:37 pm Reply with quote

$ /usr/bin/freetype-config --version
9.2.3

# rpm -qa | grep -i free
freetype-2.1.3-6
 
technocrat







PostPosted: Tue Mar 13, 2007 3:41 pm Reply with quote

Well 2.3.2 is the most current, but I believe you should have been able to get this working with the version you had before.
 
montego







PostPosted: Wed Mar 14, 2007 6:36 am Reply with quote

webservant, is this by chance running on a windows environment? Since it is behind your firewall, I just have a sneaking suspicion so.

Also, when you refresh the browser (It might take a couple of refreshes) does the image then come up?

I have noticed this behaviour locally on my development PC which is why I ask.
 
webservant







PostPosted: Wed Mar 14, 2007 2:06 pm Reply with quote

I'm running Red Hat 9. I have another thread open on a clean install (http://www.ravenphpscripts.com/postt12897.html). I'm just under the PHP version that supports html_entity_decode(). I'm betting that this function is (one of) the underlying problem(s).
 
webservant







PostPosted: Thu Mar 15, 2007 8:36 pm Reply with quote

As I found in my clean install post, the issue was the underlying software...

I upgraded:
RedHat 9 --> CentOS 3.8
PHP 4.2.2 --> PHP 4.3.2

PHP 4.3.0 or greater is required for html_entity_decode().

I'm testing my upgraded site now.
 
montego







PostPosted: Fri Mar 16, 2007 8:50 am Reply with quote

You might really want to consider going to PHP 4.4.6.
 
Raven
Site Admin/Owner



Joined: Aug 27, 2002
Posts: 17088

PostPosted: Fri Mar 16, 2007 10:29 pm Reply with quote

webservant,

2 things. Do a Google on No FreeType 2 support in this PHP build and make sure that you have it installed correctly. Also, make sure that you have output buffering turned on in your php.ini file.
 
View user's profile Send private message
Display posts from previous:       
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> RN Conversion Issues From v2.02

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 ©