Error on Joomla User Login

luxhodge 19 Dec, 2013
I am using Chronoforms v4.01 with Joomla! v3.16. I am trying to override the Joomla user registration function. When I register a user, I get a page that says a verification link has been sent to my email. I check my email and click on the verification link. I then get this error: Fatal error: Call to undefined method JUtility::getHash() in /home/appsave/public_html/administrator/components/com_chronoforms/form_actions/joomla_user_activation/joomla_user_activation.php on line 130. Has anyone seen this? Please let me know. I just want to get this working. Thanks!

Erik
GreyHead 23 Dec, 2013
Hi Erik,

It looks as though JHash changed in Joomla 3.2 The current code at line 130 of administrator/components/com_chronoforms/form_actions/joomla_user_activation/joomla_user_activation.php is
$data['activation'] = JUtility::getHash(JUserHelper::genRandomPassword());
Please try replacing this with
$data['activation'] = JApplication::getHash(JUserHelper::genRandomPassword());


Bob
luxhodge 14 Jan, 2014
Thanks for your help Bob!

I finally got back to working on this...I made the change you indicated on line 130, but I am now getting this error: Fatal error: Call to undefined method JApplication::sendMail() in /home/appsave/public_html/administrator/components/com_chronoforms/form_actions/joomla_user_activation/joomla_user_activation.php on line 164. This line initially was JUtility. I changed it after getting the same error but with JUtility in the file. Any ideas?

Thanks!

Erik
luxhodge 14 Jan, 2014
SOLVED - but if anyone has an explanation, I would love to know more about this solution.

I changed the redirect link after activation to an article that called the user login form via the chronoforms plugin. My redirect link that was causing the error was direct to a form. I am not sure why this matters, but it works every time now for all users.
GreyHead 14 Jan, 2014
Hi luxhodge,

Are you linking to a 'new' event or to the form On Load or On Submit events? It may be that there is a Security Setting on the form that disables remote links.

Bob
luxhodge 14 Jan, 2014
Hey Bob!

I was linking to the form name itself so something like this
http://mydomain.com/index.php?option=com_chronoforms&chronoform=SomeLoginFormName
. When I link to an article with the form displaying as a plugin it is fine. I looked at all the tabs in the form (general, code, JS Validation, etc.), but I don't see any security settings that would keep me from reading the activation code. Thanks for the help!

Erik
GreyHead 15 Jan, 2014
Hi Erik,

If it works, that's fine - I have no real clue why it works that way and not with the direct link though :-(

Bob
This topic is locked and no more replies can be posted.