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
Erik
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
Bob
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
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
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
Bob,
I found this thread from awhile back and tried the fix you describe in it. http://www.chronoengine.com/forums/index.php?option=com_chronoforums&cont=posts&f=3&t=89182. The fix got rid of the error, but now I try to redirect to the user login page after activation and get an Error that says "Registration failed: Verification code not found". What do you think I can do about that? Any help would be great. Thanks!
I found this thread from awhile back and tried the fix you describe in it. http://www.chronoengine.com/forums/index.php?option=com_chronoforums&cont=posts&f=3&t=89182. The fix got rid of the error, but now I try to redirect to the user login page after activation and get an Error that says "Registration failed: Verification code not found". What do you think I can do about that? Any help would be great. Thanks!
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.
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.
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
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
Hey Bob!
I was linking to the form name itself so something like this
Erik
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
This topic is locked and no more replies can be posted.