Notice

The forum is in read only mode.

Support Forum

Welcome! Support Forums have been reactivated
Welcome the Technical Support section. Help us in assisting you by providing us with a concise and descriptive elaboration of your issues. Be specific and if possible, provide us with a step-by-step instruction in replicating your problem.

Error 500 if I enable Nocaptcha in Jomsocial

8 years 11 months ago
  • Paul's Avatar
    Topic Author
  • Paul
  • Offline
  • Fresh Boarder
  • Posts: 17
  • Thank you received: 0
Licenses:
JomSocial Expired

ISSUE SUMMARY:
If I enable nocatchpa in Jomsocial it all looks good but when you try to register you get an error 500
No HTTP response code found.


STEPS TO REPLICATE:
1 In the back end enable nocatchpa in Jomsocial
2 On the frontend create a new account
3 Click I am not a robot and then next and the error appears
4
5
RESULT
EXPECTED RESULT
BROWSER

8 years 11 months ago
Licenses:

Hi,

please have a look at server error log, not joomla error log.
it must error detail at there. seem the issue related with server configuration.

you can asking your server support about how to find server error log.

Regards

8 years 11 months ago
  • Paul's Avatar
    Topic Author
  • Paul
  • Offline
  • Fresh Boarder
  • Posts: 17
  • Thank you received: 0
Licenses:
JomSocial Expired

Hi there,
Thanks for the answer I have contacted our hosting company and this is the answer they have given.

I checked that ticket and was able to replicate the issue with the nocatchpa plugin. I reviewed the server logs but there was nothing in regard to this 500 error. I am afraid that this indeed a problem with the plugin itself and not with the server's configurations.

Do you have any other ideas

8 years 11 months ago
Licenses:

Hi,

I cannot access your FTP. please provide me valid credentials information by editing your first post at this topic. put it at site info form (private)

Regards

8 years 10 months ago
  • Paul's Avatar
    Topic Author
  • Paul
  • Offline
  • Fresh Boarder
  • Posts: 17
  • Thank you received: 0
Licenses:
JomSocial Expired

Yes sorry these were the old FTP settings
Here are the new ones

8 years 10 months ago
Licenses:

Hi,

please try to get new Nocaptcha Key, and put it at jomsocial configuration.
if still happening, please try to upgrade your joomla to 2.5.11
www.joomla.org/announcements/release-new...2-5-11-released.html

so far there is no issue with jomsocial code, only with joomla cant get the return value of Nocaptcha.

Regards

8 years 10 months ago
  • Paul's Avatar
    Topic Author
  • Paul
  • Offline
  • Fresh Boarder
  • Posts: 17
  • Thank you received: 0
Licenses:
JomSocial Expired

Hi There
no change with the new recatchpa.
I am not sure how the Joomla update will work as the error is when it uses the jomsocial login
and tries to load this page
www.swinleyriders.co.uk/index.php/jomsocial/register

I get the error


500
Error: 500
No HTTP response code found.

Thanks
Paul

8 years 10 months ago
Licenses:

Hi,

there is an issue with that joomla version. to tackle the issue I put this changing:
/components/com_community/helpers/recaptcha.php line 80

public function verify ()
{
    // if Recaptcha is not enabled, return true
    if(!$this->enabled) return true;

    // get the Recaptcha response from the form data
    $response = JFactory::getApplication()->input->get('g-recaptcha-response');
    if(!$response) return false;

    // send it to verification server for confirmation
    $http = new JHttp();

    $result = $http->post(
        $this->verifyUrl,
        array (
            'secret' => $this->privateKey,
            'remoteip' => $this->ip,
            'response' => $response,
        )
    );

    $result = json_decode($result->body);
    return ($result->success === true) ? true : false;
}
changing it to
public function verify ()
{
    // if Recaptcha is not enabled, return true
    if(!$this->enabled) return true;

    // get the Recaptcha response from the form data
    $response = JFactory::getApplication()->input->get('g-recaptcha-response');
    if(!$response) return false;

    // send it to verification server for confirmation
   $result = json_decode(file_get_contents("https://www.google.com/recaptcha/api/siteverify?secret=".$this->privateKey."&response=".$response."&remoteip=".$_SERVER['REMOTE_ADDR']), true);
    return ($result['success']) ? true : false;
}

that code not using joomla library anymore.

Regards

The following user(s) said Thank You: Paul
Moderators: Piotr Garasiński
Powered by Kunena Forum

Join 180,000 websites creating Amazing communities

JomSocial is the most complete, easy-to-use addon that turns Joomla CMS into a
full -fledged, social networking site

TRY NOW BUY NOW