Forgot your password? Forgot your username? Create an account

 
Welcome, Guest
Username: Password: Remember me

TOPIC: CAPTCHA not working on Live site. Works fine on localhost.

CAPTCHA not working on Live site. Works fine on localhost. 2 years 1 month ago #11650

  • kkk
  • kkk's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 2
  • Karma: 0
Hi,
I've just upgraded aiContactSafe from v2.0.10 to v2.0.15. The CAPTCHA was working fine on live site until the upgrade. After the upgrade, the CAPTACHA is not showing on live site but working fine on localhost. No configuration has been changed other than the upgrade. Both localhost and live site have exact same copies of the pages.
GD is enabled on live server and were working with the old version of aiContactForm. Please help!!

I tried to troubleshoot the problem and found the source of the problem:
Commenting $model->ob_clean_all(); on line 75 in file component/com_aicontactsafe/views/captcha/view.html.php
makes the CAPTCHA appear.
This line was not present in the v2.0.10 version. So, maybe is this is the cause of the issue? Please advice...
The administrator has disabled public write access.

CAPTCHA not working on Live site. Works fine on localhost. 2 years 1 month ago #11651

  • Alex
  • Alex's Avatar
  • NOW ONLINE
  • Administrator
  • Posts: 7806
  • Thank you received: 247
  • Karma: 60
Hi,

That line was introduced because on some servers some output was introduced before the CAPTCHA code the it was not displayed anymore.
Somehow on your server seams to be the other way around. You can just comment out ( or delete ) that line if it makes the CAPTCHA work.
The administrator has disabled public write access.

CAPTCHA not working on Live site. Works fine on localhost. 2 years 1 month ago #11652

  • kkk
  • kkk's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 2
  • Karma: 0
My live site is hosting on HostGator.
Well, thanks anyway!
You've really done a great job making the component.
The administrator has disabled public write access.

CAPTCHA not working on Live site. Works fine on localhost. 2 years 1 month ago #11653

  • Alex
  • Alex's Avatar
  • NOW ONLINE
  • Administrator
  • Posts: 7806
  • Thank you received: 247
  • Karma: 60
Thank you.
The administrator has disabled public write access.

CAPTCHA not working on Live site. Works fine on localhost. 2 years 1 month ago #11654

  • pakito1972
  • pakito1972's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 1
  • Karma: 0
Thank you!
I had the same problem with the following config at local host:

PHP: Windows 7
Versión de la base de datos: 5.1.36-community-log
Cotejamiento(collation): utf8_general_ci
Versión de PHP: 5.2.9
Servidor web: Apache/2.2.11 (Win32) PHP/5.2.9
Interfaz PHP del servidor: apache2handler
Versión de Joomla!: Joomla! 1.5.22 Stable [ senu takaa ama woi ] 04-November-2010 18:00 GMT
Agente: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:2.0) Gecko/20100101 Firefox/4.0
The administrator has disabled public write access.

CAPTCHA not working on Live site. Works fine on localhost. 2 years 1 month ago #11655

  • cvk
  • cvk's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 1
  • Karma: 0
I tried to troubleshoot the problem and found the source of the problem:
Commenting $model->ob_clean_all(); on line 75 in file component/com_aicontactsafe/views/captcha/view.html.php
makes the CAPTCHA appear.

Thank you! That worked for me too!
The administrator has disabled public write access.