×

Notice

The forum is in read only mode.
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Captcha don`t show up [ checked GD and Freetype ]

Captcha don`t show up [ checked GD and Freetype ] 15 years 4 months ago #5038

  • samircury
  • samircury's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 4
  • Thank you received: 0
The only suspect i have now, is that it could need a captcha plugin, but i read some code, and don`t looks like (and if needs, which one captcha plugin? anyone?)

looking into my com_comment/error_log i found that :
[11-Jul-2009 14:02:13] PHP Warning:  imagecreatefrompng(captcha/bg1.png): failed to open stream: No such file or directory in /home/samir/public_html/components/com_comment/joscomment/captcha.php on line 29
[11-Jul-2009 14:02:13] PHP Warning:  imagecolorallocate(): supplied argument is not a valid Image resource in /home/samir/public_html/components/com_comment/joscomment/captcha.php on line 47
[11-Jul-2009 14:02:13] PHP Warning:  imagecolorallocate(): supplied argument is not a valid Image resource in /home/samir/public_html/components/com_comment/joscomment/captcha.php on line 48
[11-Jul-2009 14:02:13] PHP Warning:  imagettfbbox(): Could not find/open font in /home/samir/public_html/components/com_comment/joscomment/captcha.php on line 50
[11-Jul-2009 14:02:13] PHP Warning:  imagesx(): supplied argument is not a valid Image resource in /home/samir/public_html/components/com_comment/joscomment/captcha.php on line 54
[11-Jul-2009 14:02:13] PHP Warning:  imagesy(): supplied argument is not a valid Image resource in /home/samir/public_html/components/com_comment/joscomment/captcha.php on line 55
[11-Jul-2009 14:02:13] PHP Warning:  imagettftext() expects parameter 1 to be resource, boolean given in /home/samir/public_html/components/com_comment/joscomment/captcha.php on line 57
[11-Jul-2009 14:02:13] PHP Warning:  imagettftext() expects parameter 1 to be resource, boolean given in /home/samir/public_html/components/com_comment/joscomment/captcha.php on line 58
[11-Jul-2009 14:02:13] PHP Warning:  Cannot modify header information - headers already sent by (output started at /home/samir/public_html/components/com_comment/joscomment/captcha.php:29) in /home/samir/public_html/components/com_comment/joscomment/captcha.php on line 60
[11-Jul-2009 14:02:13] PHP Warning:  imagepng(): supplied argument is not a valid Image resource in /home/samir/public_html/components/com_comment/joscomment/captcha.php on line 61
[11-Jul-2009 14:02:13] PHP Warning:  imagedestroy(): supplied argument is not a valid Image resource in /home/samir/public_html/components/com_comment/joscomment/captcha.php on line 62

Any clue?

Thanks!

Captcha don`t show up [ checked GD and Freetype ] 15 years 4 months ago #5039

  • samircury
  • samircury's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 4
  • Thank you received: 0
Ok, i just saw that he bg1.png wasn't a valid archive, maybe the file was corupted, i reinstalled that, but no luck yet, i'll wait to see the next logs, for now i disabled captcha =D

Captcha don`t show up [ checked GD and Freetype ] 15 years 4 months ago #5040

  • JonusC
  • JonusC's Avatar
  • Offline
  • Platinum Boarder
  • Platinum Boarder
  • Posts: 785
  • Thank you received: 48
Wow...
OK, so you do have Freetype and GD installed - that's what I was going to suggest :laugh: hmmm.... maybe permissions? Not too sure here... Captcha should just work without any extra configuration.

Daniel will need to take a look at this. :unsure:

Captcha don`t show up [ checked GD and Freetype ] 15 years 4 months ago #5094

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Those php warning just mean that you don't have either the GD or freetype library on your server. You need them both to have joomlacomment working.

Captcha don`t show up [ checked GD and Freetype ] 15 years 4 months ago #5099

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Please check again if your really have the GD and Freetype libraries.

Looking again in your warning messages:

[11-Jul-2009 14:02:13] PHP Warning: imagettfbbox(): Could not find/open font in /home/samir/public_html/components/com_comment/joscomment/captcha.php on line 50


What font are you using. What is the content of the captcha folder, are all files there or is something missing?

Captcha don`t show up [ checked GD and Freetype ] 15 years 4 months ago #5101

  • samircury
  • samircury's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 4
  • Thank you received: 0
OK, as i said on the second post:

"i just saw that he bg1.png wasn't a valid archive, maybe the file(s) were corupted, i reinstalled that(joomlacomment)"

You can see for yourself my phpinfo:

samircury.eng.br/phpinfo.php

i changed too captcha.php to 755 (as i saw in other posts)

really, this isn't essential to me( so you don't have to put a priority / spend much time on this ), because it's working finer with gmail auth + joomlacomment without captcha, but just to other users that download joomlacomment and for some reason it doesn't works, the guy can be disappointed and give up.

Maybe the error is from my server, but i'm quite sure that i have GD and Freetype.

You can ignore the error logs i posted, because on the new installation they don't exists... Just on the "corrupted" one.

Thanks!

Captcha don`t show up [ checked GD and Freetype ] 15 years 4 months ago #5102

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
what do you mean with valid archive? bg1.png should be e background picture.

P.S. All user problems here have highest priority :) I don't like to have unresolved problems :)

Captcha don`t show up [ checked GD and Freetype ] 15 years 4 months ago #5108

  • samircury
  • samircury's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 4
  • Thank you received: 0
Good thoughts man,

So, it wasn't a valid archive i mean that i tried to access it manually by a cat or something, and error, i tried to copy it and error, like the reference was there, but the data not, it was surely a file integrity error.

After that i downloaded another copy, and reinstalled, since then i had no errosr logs, but no captcha eighter.

Captcha don`t show up [ checked GD and Freetype ] 15 years 4 months ago #5125

  • JonusC
  • JonusC's Avatar
  • Offline
  • Platinum Boarder
  • Platinum Boarder
  • Posts: 785
  • Thank you received: 48
I would suggest reinstalling JoomlaComment if you want to try and fix the Captcha still. If the background PNG graphic was corrupted during transfer/install, it's quite possible that other files are corrupted too.

Captcha don`t show up [ checked GD and Freetype ] 15 years 4 months ago #5132

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
So instead of picture you have the text - security image?

Right click on this text -> properties and copy the address of the text, paste it in your browser and look if it generates an internal server error.

And also your permissions for the captcha.php are wrong - it should be 644.

The captcha folder should be 755.

Captcha don`t show up [ checked GD and Freetype ] 15 years 4 months ago #5142

  • JonusC
  • JonusC's Avatar
  • Offline
  • Platinum Boarder
  • Platinum Boarder
  • Posts: 785
  • Thank you received: 48
Daniel Dimitrov wrote:

And also your permissions for the captcha.php are wrong - it should be 644.

The captcha folder should be 755.


That's a very important one, good catch Daniel.

On my hosting provider, HostGator, they require that all PHP files be at 644 - otherwise it will generate a 500 Error on purpose because anything higher is apparently a security risk. I bet many other hosts do a similar thing as it's the default of PHPSuExec (which is getting installed ond more and more servers)
  • Page:
  • 1
Time to create page: 0.147 seconds