I've set up all the Login pages as instructed for integration with Discuss. They're all working, except for Confirm Registration. I've got this on the Register Page:
[[!Register?
&submitVar=`registerbtn`
&activationResourceId=`12`
&activationEmailTpl=`lgnActivateEmailTpl`
&activationEmailSubject=`Thanks for Registering!`
&submittedResourceId=`425`
&usergroups=`Forum Members:Member`
&validate=`nospam:blank,
username:required:minLength=^6^,
password:required:minLength=^6^,
password_confirm:password_confirm=^password^,
fullname:required,
email:required:email`
&placeholderPrefix=`reg.`
]]
followed by the form. On submission, it goes to the right URL for Confirm Registration, but I get the 404 Not Found error message, and the user's info is not entered in the database. If I disable this line in the ConfirmRegistration snippet:
$output = $controller->run($scriptProperties);
then the page loads fine, except of course that the registration process does not finish. Since the page loads fine with the snippet disabled, then there is obviously no problem finding this page, so what page exactly is it that is not being found? Is the ConfirmRegistration page trying to access some page internally that is generating the error? I've checked the logs and don't see any URL that is trying to be accessed (other than the Confirm Registration page itself, when the snippet is not disable) that has a 404 attached to it.
Also, when I click the submit button, this error message appears in the MODX error log:
[2014-12-30 21:00:59] (ERROR @ /index.php) Could not get table class for class: modAccess
[2014-12-30 21:00:59] (ERROR @ /index.php) Could not get table name for class: modAccess
[2014-12-30 21:00:59] (ERROR @ /index.php) Error 42000 executing statement:
Array
(
[0] => 42000
[1] => 1064
[2] => You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AS `modAccess` WHERE `modAccess`.`principal` = 27' at line 1
)
ALSO, the confirm script does send out the email, but the activation link is missing:
blahblah,
Thanks for registering! To activate your new account, please click on the following link:
After activating, you may login with your password and username:
Username: blahblah
Password: blahblah123
If you did not request this message, please ignore
I'm running Revo 2.3.2, with all the latest versions of Discuss, Formit, and Login
[ed. note: rainbowtiger last edited this post 9 years, 11 months ago.]