| Author |
Message |
webservant Worker


Joined: Feb 26, 2006 Posts: 142 Location: Springfield, MA
|
Posted:
Tue Mar 13, 2007 6:08 am |
|
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? |
|
|
|
 |
kguske Site Admin

Joined: Jun 04, 2004 Posts: 4980
|
Posted:
Tue Mar 13, 2007 6:13 am |
|
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? |
|
|
|
 |
Guest

|
Posted:
Tue Mar 13, 2007 6:16 am |
|
The security codes worked in 2.02.02.
I am using IE, and I do see the missing image (red-X). |
|
|
|
|
 |
kguske Site Admin

Joined: Jun 04, 2004 Posts: 4980
|
Posted:
Tue Mar 13, 2007 6:24 am |
|
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 Moderator

Joined: Aug 29, 2004 Posts: 7582 Location: Arizona
|
Posted:
Tue Mar 13, 2007 7:18 am |
|
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. |
|
|
|
 |
webservant Worker


Joined: Feb 26, 2006 Posts: 142 Location: Springfield, MA
|
Posted:
Tue Mar 13, 2007 7:34 am |
|
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 Involved


Joined: Jul 07, 2005 Posts: 495
|
Posted:
Tue Mar 13, 2007 12:47 pm |
|
What is the url it's showing for the image? |
|
|
|
 |
webservant Worker


Joined: Feb 26, 2006 Posts: 142 Location: Springfield, MA
|
Posted:
Tue Mar 13, 2007 2:37 pm |
|
For this page:
The image is: |
|
|
|
 |
webservant Worker


Joined: Feb 26, 2006 Posts: 142 Location: Springfield, MA
|
Posted:
Tue Mar 13, 2007 2:41 pm |
|
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<ԢyPLTEėtʆolտrmiݫe}ڂЅԓvdf֜x (tm)՞wےz҂wzјnptr~qnrp̀ʷzɞڤjotiyӼtw}wuz㴃l, T5IKAJ,44]cTnIDATx[H r/h{rj KISOn6ɂ9gofw*+zۘd<A鿯rvbNg!uW5rV근_hjZirML]ER)RkfN0 M4-. KќT0lR2aF S:V1hv^!S5t sxfiԮ,xd7^g$rTysph.HE$ \23:$HNV)lm#> kx'M$^*))2Y'ƌ} #+ϡ J!~pBBZj S@ï$IA6FlĞRskq_~I@^[HF9GgʡLDvyF{1*8zzxjܡ&wI4S E@la3oi9.8=RQhP ,3X $hQ:D{,?l4X +{E #tJ?![VeY^QQTJMh:*-N.yewb>z+£}Vcw M&SBJoD\Ρӫ;dnc(c jR'v,/U{o(z2e8*9 59 rtJ>c5Wq)( űzGѸo$JDk8C,`p@B $><+SZHKy ͋Z,D+U|~ d6(DN9@Ij7Sn8wR,/$Tky,ZjTcr;]@$ LRPtBZv LKhtLHQy(fNbbOgaaٌƥ㉥QIM'CB .&9(tm),K0hfx}(OS u'G(I«P`GP8f8Mrq2A*v٘d(jm4Œd<lSŅGp #e 98/!Gak6 6\la;d"f\_Ds)lQ\x0ڳ5`Ӏ4Mr4$F#I"b>,(ŅdR\\8F&e H2VڤB\iNǁeirI*얷6(tm)юJ(tm)8JTMkh:`^^0(i=2F=Zl9y;6l%0)pH-Ρhiq>%4h]359r:(RSz^qJ_DC}Uk :q9\I@8"}(A} IԦB ddۛckbA 8Bb&ű>Jjfq|w ͋)0Qa,JJTp8 c8 ЕxxDWSH\A|TS֬LHfJ Gôu%U@ITeL Kƺ[ΩPpvaDzmWE{ Mh+#1rWє,cIhx}$'4Ԕ.Lax1VbntkB?%9!VW;5x( ˹2o1/xZʪȣq1'-ߔ*&RT!9^H]^^Va>y{^y785 ,7/hM7_U[ E^zixRA(tm)z,hûz(tm)IENDB` |
|
|
|
|
 |
technocrat Involved


Joined: Jul 07, 2005 Posts: 495
|
Posted:
Tue Mar 13, 2007 2:41 pm |
|
Neither of those URLs seem to be working. If you give the working url I can look into it better. |
|
|
|
 |
webservant Worker


Joined: Feb 26, 2006 Posts: 142 Location: Springfield, MA
|
Posted:
Tue Mar 13, 2007 2:49 pm |
|
Sorry, the server is behind my firewall locally.
Try this:
|
|
|
|
 |
technocrat Involved


Joined: Jul 07, 2005 Posts: 495
|
Posted:
Tue Mar 13, 2007 2:57 pm |
|
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 Worker


Joined: Feb 26, 2006 Posts: 142 Location: Springfield, MA
|
Posted:
Tue Mar 13, 2007 3:03 pm |
|
One additional line shows up in the body:
bool(true) int(1) |
|
|
|
 |
technocrat Involved


Joined: Jul 07, 2005 Posts: 495
|
Posted:
Tue Mar 13, 2007 3:08 pm |
|
*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 Worker


Joined: Feb 26, 2006 Posts: 142 Location: Springfield, MA
|
Posted:
Tue Mar 13, 2007 3:12 pm |
|
bool(true) bool(true) bool(true) |
|
|
|
 |
technocrat Involved


Joined: Jul 07, 2005 Posts: 495
|
Posted:
Tue Mar 13, 2007 3:19 pm |
|
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 Worker


Joined: Feb 26, 2006 Posts: 142 Location: Springfield, MA
|
Posted:
Tue Mar 13, 2007 3:24 pm |
|
OK.
- removed the line from includes/gfx_check.php
- added new line to images/captcha.php
- go to
See a blank page with an image of colored lines.
If I refresh, the image changes - like someone rearranged the lines. |
|
|
|
 |
webservant Worker


Joined: Feb 26, 2006 Posts: 142 Location: Springfield, MA
|
Posted:
Tue Mar 13, 2007 3:25 pm |
|
BTW - the original Your Account URL now shows the same image, but no code that is discernable/readable. |
|
|
|
 |
technocrat Involved


Joined: Jul 07, 2005 Posts: 495
|
Posted:
Tue Mar 13, 2007 3:29 pm |
|
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 Worker


Joined: Feb 26, 2006 Posts: 142 Location: Springfield, MA
|
Posted:
Tue Mar 13, 2007 3:37 pm |
|
$ /usr/bin/freetype-config --version
9.2.3
# rpm -qa | grep -i free
freetype-2.1.3-6 |
|
|
|
 |
technocrat Involved


Joined: Jul 07, 2005 Posts: 495
|
Posted:
Tue Mar 13, 2007 3:41 pm |
|
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 Moderator

Joined: Aug 29, 2004 Posts: 7582 Location: Arizona
|
Posted:
Wed Mar 14, 2007 6:36 am |
|
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 Worker


Joined: Feb 26, 2006 Posts: 142 Location: Springfield, MA
|
Posted:
Wed Mar 14, 2007 2:06 pm |
|
I'm running Red Hat 9. I have another thread open on a clean install (http://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 Worker


Joined: Feb 26, 2006 Posts: 142 Location: Springfield, MA
|
Posted:
Thu Mar 15, 2007 8:36 pm |
|
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 Moderator

Joined: Aug 29, 2004 Posts: 7582 Location: Arizona
|
Posted:
Fri Mar 16, 2007 8:50 am |
|
You might really want to consider going to PHP 4.4.6. |
|
|
|
 |
|
|
|
|