PHP Web Host - Quality Web Hosting For All PHP Applications Clan Themes! We make clans look good!!
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.
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 Back to top

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?
View user's profile Send private message Visit poster's website AIM Address
kguske
Site Admin


Joined: Jun 04, 2004
Posts: 6044

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

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?
View user's profile Send private message
Guest






PostPosted: Tue Mar 13, 2007 6:16 am Reply with quote Back to top

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: 6044

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

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.
View user's profile Send private message
montego
Site Admin


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

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

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.
View user's profile Send private message Visit poster's website
webservant
Worker
Worker


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

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

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?
View user's profile Send private message Visit poster's website AIM Address
technocrat
Life Cycles Becoming CPU Cycles


Joined: Jul 07, 2005
Posts: 511

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

What is the url it's showing for the image?
View user's profile Send private message
webservant
Worker
Worker


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

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

For this page:
Only registered users can see links on this board!
Get registered or login to the forums!

The image is:
Only registered users can see links on this board!
Get registered or login to the forums!
View user's profile Send private message Visit poster's website AIM Address
webservant
Worker
Worker


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

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

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(fNbbOg‹aaٌƥ㉥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`
View user's profile Send private message Visit poster's website AIM Address
technocrat
Life Cycles Becoming CPU Cycles


Joined: Jul 07, 2005
Posts: 511

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

Neither of those URLs seem to be working. If you give the working url I can look into it better.
View user's profile Send private message
webservant
Worker
Worker


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

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

Sorry, the server is behind my firewall locally.

Try this:
Only registered users can see links on this board!
Get registered or login to the forums!
View user's profile Send private message Visit poster's website AIM Address
technocrat
Life Cycles Becoming CPU Cycles


Joined: Jul 07, 2005
Posts: 511

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

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
View user's profile Send private message
webservant
Worker
Worker


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

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

One additional line shows up in the body:

bool(true) int(1)
View user's profile Send private message Visit poster's website AIM Address
technocrat
Life Cycles Becoming CPU Cycles


Joined: Jul 07, 2005
Posts: 511

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

*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
View user's profile Send private message
webservant
Worker
Worker


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

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

bool(true) bool(true) bool(true)
View user's profile Send private message Visit poster's website AIM Address
technocrat
Life Cycles Becoming CPU Cycles


Joined: Jul 07, 2005
Posts: 511

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

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
View user's profile Send private message
webservant
Worker
Worker


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

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

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 to the forums!


See a blank page with an image of colored lines.
If I refresh, the image changes - like someone rearranged the lines.
View user's profile Send private message Visit poster's website AIM Address
webservant
Worker
Worker


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

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

BTW - the original Your Account URL now shows the same image, but no code that is discernable/readable.
View user's profile Send private message Visit poster's website AIM Address
technocrat
Life Cycles Becoming CPU Cycles


Joined: Jul 07, 2005
Posts: 511

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

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....
View user's profile Send private message
webservant
Worker
Worker


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

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

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

# rpm -qa | grep -i free
freetype-2.1.3-6
View user's profile Send private message Visit poster's website AIM Address
technocrat
Life Cycles Becoming CPU Cycles


Joined: Jul 07, 2005
Posts: 511

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

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.
View user's profile Send private message
montego
Site Admin


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

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

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.
View user's profile Send private message Visit poster's website
webservant
Worker
Worker


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

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

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).
View user's profile Send private message Visit poster's website AIM Address
webservant
Worker
Worker


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

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

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.
View user's profile Send private message Visit poster's website AIM Address
montego
Site Admin


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

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

You might really want to consider going to PHP 4.4.6.
View user's profile Send private message Visit poster's website
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.

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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest 2002-2011 by Raven

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::
:: fisubice Theme Modified by the RavenNuke™ Team ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum