Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length

JoomlaTune Support Forum    JComments component    Bug-reports    Topic: Captcha picture missing (solved)
Pages: [1]   Go Down
  Print  
Author Topic: Captcha picture missing (solved)  (Read 3648 times)
0 Members and 2 Guests are viewing this topic.
grabit
Newbie
*

Karma: 0
Offline Offline

Posts: 8


« on: November 06, 2010, 16:49:24 »

Hello,

I am using Jcomments in conbination with Flexicontent. It was working well for a while but now the captcha picture is not displaying anymore. I have a question mark like a missing picture.

I am using:
Joomla 1.5.21
PHP 5.2.0 and GD is enabled
Jcomment 2.2.0.2
Flexicontent 1.5.3c
Joomfish  2.0.4

I have attached a screen capture.

Any suggestions?





* Capture d’écran 2010-11-06 à 11.31.32.png (37.97 KB, 588x531 - viewed 274 times.)
« Last Edit: November 22, 2010, 17:21:36 by grabit » Logged
smart
Administrator
Hero Member
*****

Karma: 160
Offline Offline

Gender: Male
Posts: 2559



WWW
« Reply #1 on: November 08, 2010, 15:41:09 »

Could you show me link to your site?
Logged

If you use JComments, please post a rating and a review at the Joomla! Extensions Directory
grabit
Newbie
*

Karma: 0
Offline Offline

Posts: 8


« Reply #2 on: November 08, 2010, 16:32:53 »

You will find the site at:

www.energymag.be
Logged
smart
Administrator
Hero Member
*****

Karma: 160
Offline Offline

Gender: Male
Posts: 2559



WWW
« Reply #3 on: November 08, 2010, 16:45:29 »

With some reason the link to CAPTCHA image (http://www.energymag.be/index.php?option=com_jcomments&task=captcha&tmpl=component&ac=61440) is redirected to your site's home: http://www.energymag.be/fr. I don't know why... What SEF are you use?
Logged

If you use JComments, please post a rating and a review at the Joomla! Extensions Directory
grabit
Newbie
*

Karma: 0
Offline Offline

Posts: 8


« Reply #4 on: November 08, 2010, 16:47:36 »

I am using the Joomla standard one.
Logged
smart
Administrator
Hero Member
*****

Karma: 160
Offline Offline

Gender: Male
Posts: 2559



WWW
« Reply #5 on: November 08, 2010, 16:53:45 »

Seems I've found problem's source... this isn't common solution but must work for you.

Open file /components/com_jcomments/jcomments.class.php and replace:
Code: (php)
return JURI::root(true) . '/index.php?option=com_jcomments&task=captcha&tmpl=component&ac=' . $random;
with
Code: (php)
return JURI::root(true) . '/fr/index.php?option=com_jcomments&task=captcha&tmpl=component&ac=' . $random;
Logged

If you use JComments, please post a rating and a review at the Joomla! Extensions Directory
grabit
Newbie
*

Karma: 0
Offline Offline

Posts: 8


« Reply #6 on: November 08, 2010, 17:04:00 »

And is it working with the dutch language also where fr is replaced by nl in the URL?
Logged
smart
Administrator
Hero Member
*****

Karma: 160
Offline Offline

Gender: Male
Posts: 2559



WWW
« Reply #7 on: November 08, 2010, 17:07:30 »

Oh, you're using JoomFish? In this case made such modification:


Open file /components/com_jcomments/jcomments.class.php and replace:
Code: (php)
return JURI::root(true) . '/index.php?option=com_jcomments&task=captcha&tmpl=component&ac=' . $random;
with
Code: (php)
$lang = ($mainframe->getCfg('multilingual_support') == 1) ? ('&lang='.$iso_client_lang) : '';
return JURI::root(true) . '/index.php?option=com_jcomments&task=captcha&tmpl=component&ac=' . $random. $lang;
Logged

If you use JComments, please post a rating and a review at the Joomla! Extensions Directory
grabit
Newbie
*

Karma: 0
Offline Offline

Posts: 8


« Reply #8 on: November 08, 2010, 17:22:14 »

Your first modification was OK for FR and strangely also for nl. At least in the display (I didn't try to enter a comment)

But the last one is not working.
Logged
smart
Administrator
Hero Member
*****

Karma: 160
Offline Offline

Gender: Male
Posts: 2559



WWW
« Reply #9 on: November 08, 2010, 17:52:59 »

If previous version was working for both languages you could leave it. I need some additional time to make extra tests with JoomFish.
Logged

If you use JComments, please post a rating and a review at the Joomla! Extensions Directory
grabit
Newbie
*

Karma: 0
Offline Offline

Posts: 8


« Reply #10 on: November 08, 2010, 20:44:05 »

Smart,

The captcha is displaying OK with that first version but I am not able to send anymore the comments. Even if I am connected as member of the community.

Thanks for your help.
Logged
grabit
Newbie
*

Karma: 0
Offline Offline

Posts: 8


« Reply #11 on: November 13, 2010, 16:04:09 »

Hello Smart,

this message to tell you that I found the source of the problem.

I was using the 302 redirection in jfrouter plugin.

As soon as I removed that redirection, all the problems were gone.

Post was again possible and captcha came back to life.

Thanks again for your help.
Logged
smart
Administrator
Hero Member
*****

Karma: 160
Offline Offline

Gender: Male
Posts: 2559



WWW
« Reply #12 on: November 22, 2010, 17:06:35 »

this message to tell you that I found the source of the problem.
Thank you for sharing your problem's solution!
Logged

If you use JComments, please post a rating and a review at the Joomla! Extensions Directory
Pages: [1]   Go Up
  Print  
JoomlaTune Support Forum    JComments component    Bug-reports    Topic: Captcha picture missing (solved)
 
Jump to: