captcha image not displayed (guestbook version 3.0.3)

Phoca Guestbook - creating guestbooks in Joomla! CMS
User avatar
jeejeestudio
Phoca Professional
Phoca Professional
Posts: 113
Joined: 12 Feb 2008, 13:44
Location: Netherlands

Re: captcha image not displayed (guestbook version 3.0.3)

Post by jeejeestudio »

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.
zerofield
Phoca Member
Phoca Member
Posts: 20
Joined: 17 Sep 2014, 12:34

Re: captcha image not displayed (guestbook version 3.0.3)

Post by zerofield »

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
User avatar
jeejeestudio
Phoca Professional
Phoca Professional
Posts: 113
Joined: 12 Feb 2008, 13:44
Location: Netherlands

Re: captcha image not displayed (guestbook version 3.0.3)

Post by jeejeestudio »

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?)
zerofield
Phoca Member
Phoca Member
Posts: 20
Joined: 17 Sep 2014, 12:34

Re: captcha image not displayed (guestbook version 3.0.3)

Post by zerofield »

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?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: captcha image not displayed (guestbook version 3.0.3)

Post by Jan »

Hi, see:
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
zerofield
Phoca Member
Phoca Member
Posts: 20
Joined: 17 Sep 2014, 12:34

Re: captcha image not displayed (guestbook version 3.0.3)

Post by zerofield »

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?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: captcha image not displayed (guestbook version 3.0.3)

Post by Jan »

Hi, getData is a function of model: components/com_phocaguestbook/models/guestbook (guestbooki)


Jan
If you find Phoca extensions useful, please support the project
pvilloz
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 14 May 2015, 16:29

Re: captcha image not displayed (guestbook version 3.0.3)

Post by pvilloz »

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
zerofield
Phoca Member
Phoca Member
Posts: 20
Joined: 17 Sep 2014, 12:34

Re: captcha image not displayed (guestbook version 3.0.3)

Post by zerofield »

Unfortunately not, I switched to the approach of installing an additional captcha plugin.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: captcha image not displayed (guestbook version 3.0.3)

Post by Jan »

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
If you find Phoca extensions useful, please support the project
Post Reply