Possible other fails for the captha can be other plugins/modules and even the used template. I had an template which caused several faults due to the Jquery.
I then installed The New Recaptha, you can find it on extensions.joomla.org This solved it.
But first try the same with a standard template like Beez or protostar.
captcha image not displayed (guestbook version 3.0.3)
- jeejeestudio
- Phoca Professional
- Posts: 113
- Joined: 12 Feb 2008, 13:44
- Location: Netherlands
-
- Phoca Member
- Posts: 20
- Joined: 17 Sep 2014, 12:34
Re: captcha image not displayed (guestbook version 3.0.3)
Hi jeejeestudio.
Thanks for your suggestions. Changing to protostar template and turning off all applied modules didn't make any difference.
Just to be sure; did reinstallation of the reCaptcha system plugin fixed the issue with the guestbook captcha?
The only two options that display images are the recaptcha plugin and the guestbook component recaptcha. The problems are with easy/math captcha etc.
@Jan,
checking the php code and being a true php starter; is it correct that the image link is build at lines 171 till 189 of helpers/phocaguestbook.php, being the md5(uniqid(time())) the actual image file? Is the captcha image actually stored somewhere?
Kind regards
Thanks for your suggestions. Changing to protostar template and turning off all applied modules didn't make any difference.
Just to be sure; did reinstallation of the reCaptcha system plugin fixed the issue with the guestbook captcha?
The only two options that display images are the recaptcha plugin and the guestbook component recaptcha. The problems are with easy/math captcha etc.
@Jan,
checking the php code and being a true php starter; is it correct that the image link is build at lines 171 till 189 of helpers/phocaguestbook.php, being the md5(uniqid(time())) the actual image file? Is the captcha image actually stored somewhere?
Kind regards
- jeejeestudio
- Phoca Professional
- Posts: 113
- Joined: 12 Feb 2008, 13:44
- Location: Netherlands
Re: captcha image not displayed (guestbook version 3.0.3)
I did not reinstall the original from joomla but the one from techjoomla.com, this one worked for me.
It is called The New Recaptcha its a plugin.
(maybe i partly misunderstood, i thought the captcha in general did not work on your site. Or do you specific mean with guestbook?)
It is called The New Recaptcha its a plugin.
(maybe i partly misunderstood, i thought the captcha in general did not work on your site. Or do you specific mean with guestbook?)
-
- Phoca Member
- Posts: 20
- Joined: 17 Sep 2014, 12:34
Re: captcha image not displayed (guestbook version 3.0.3)
The only plugin installed by default joomla package is a recaptcha plugin. Together with the recaptcha option from guestbook these are the only two displaying a picture. All the other guestbook incorporated options for captcha are displaying the alt text.
Jan, reading through the GD manual/code options and searching through the full component code by using Sublime text 2 I cannot find any instance of a picture generating command such as imagejpg, imagetiff etc.
So where in the code is the image rendered, and where is it programmed to be displayed on a browser?
Jan, reading through the GD manual/code options and searching through the full component code by using Sublime text 2 I cannot find any instance of a picture generating command such as imagejpg, imagetiff etc.
So where in the code is the image rendered, and where is it programmed to be displayed on a browser?
- Jan
- Phoca Hero
- Posts: 48403
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: captcha image not displayed (guestbook version 3.0.3)
Hi, see:
components/com_phocaguestbook/helpers/phocaguestbookcaptcha.php - imagecreatefromjpeg line 16
There are the libraries for creating images.
Jan
components/com_phocaguestbook/helpers/phocaguestbookcaptcha.php - imagecreatefromjpeg line 16
There are the libraries for creating images.
Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Member
- Posts: 20
- Joined: 17 Sep 2014, 12:34
Re: captcha image not displayed (guestbook version 3.0.3)
Jan, I traced down through the php files from the GD call @createimageformjpeg in phocaguestbookcaptcha.php -->createImageData in guestbooki.php wich mentions the function &getData. This is where I'm on a dead end. getData only reoccurs in guestbook.php as being part of a function name. Where is this function called/executed?
- Jan
- Phoca Hero
- Posts: 48403
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: captcha image not displayed (guestbook version 3.0.3)
Hi, getData is a function of model: components/com_phocaguestbook/models/guestbook (guestbooki)
Jan
Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Newbie
- Posts: 3
- Joined: 14 May 2015, 16:29
Re: captcha image not displayed (guestbook version 3.0.3)
Hello,
I've the same problem: Captcha image is not displayed.
PHP = 5.4.39
MySQLi = 5.0.10
Guestbook = 3.0.3
Strangely, the captcha image is not displayed.
Any idea to solve this?
Regards
Phil
I've the same problem: Captcha image is not displayed.
PHP = 5.4.39
MySQLi = 5.0.10
Guestbook = 3.0.3
Strangely, the captcha image is not displayed.
Any idea to solve this?
Regards
Phil
-
- Phoca Member
- Posts: 20
- Joined: 17 Sep 2014, 12:34
Re: captcha image not displayed (guestbook version 3.0.3)
Unfortunately not, I switched to the approach of installing an additional captcha plugin.
- Jan
- Phoca Hero
- Posts: 48403
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: captcha image not displayed (guestbook version 3.0.3)
Hi,
- check the parameters of Phoca Guestbook - check the path to image
- check the permissions on your site, it there is no problem to read the images on your server and to write the captcha code there
- check the method of the Captcha.
Jan
- check the parameters of Phoca Guestbook - check the path to image
- check the permissions on your site, it there is no problem to read the images on your server and to write the captcha code there
- check the method of the Captcha.
Jan
If you find Phoca extensions useful, please support the project