Enabling Recaptcha only gives Verification *

  • Judy Akers
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
10 years 1 month ago #75827 by Judy Akers
This is topic is to let others know about how we solved this issue.

All Attempts to enable the ReCaptcha in Event Booking on one of our websites only gave the title of "Verification" with the required asterisk * but no image or input on the bottom of the form. This was true in both version 1.6.6 and version 2.3.1.

After much testing it was determined that the problem was with the custom Template that our agency had created for that website. The Captcha/ReCaptcha worked just fine with any other basic Template that is a part of core Joomla.

The issue was that was missing a line of PHP code that loads the MooTools Javascript Library. Specifically, in the first php statement, once I added JHtml::_('behavior.framework', true); between the "defined( '_JEXEC' ) or die" and the "$app = JFactory::getApplication() " - the problem was resolved.

So for anyone else who is having the same problem - see if this helps resolve it for you.

Example:
<?php
defined( '_JEXEC' ) or die( 'Restricted access' );

/* The following line loads the MooTools JavaScript Library */
JHtml::_('behavior.framework', true);

$app = JFactory::getApplication()
?>
The following user(s) said Thank You: Tuan Pham Ngoc

Please Log in or Create an account to join the conversation.

Moderators: Tuan Pham Ngoc