kumarsivarajan / mollify

Automatically exported from code.google.com/p/mollify
0 stars 0 forks source link

Register New User Confirmation Error #483

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Clicking on registration confirmation link sent to email.
2. Manually Confirming the account via admin page does not work either as I get 
the same error.

What is the expected output? What do you see instead?

Expected output is message registration confirmed page from the Registration 
Plugin.  Instead I get this:

PHP error #2, Missing argument 5 for DbConfiguration::addUser(), called in 
/home/legends0/public_html/charactersubmission/backend/plugin/Registration/Regis
trationServices.class.php on line 118 and defined 
(/home/legends0/public_html/charactersubmission/backend/include/configuration/Db
Configuration.class.php:128)

What version of the product are you using? On what operating system?

Version 1.8.9.3

Please provide any additional information below.

I'm guessing this has something to do with the DbConfiguration.class.php file?  
Please help I do not want to upgrade to the new 2.0 version because of the time 
put into the CSS coding for the current version, thanks.

Original issue reported on code.google.com by mariokr...@gmail.com on 28 Oct 2013 at 1:32

Attachments:

GoogleCodeExporter commented 8 years ago
The ConfigurationDao has

addUser($name, $pw, $email, $permission, $expiration, $auth = NULL)

but RegistrationServices calls it with

$id = $this->env->configuration()->addUser($registration['name'], 
$registration['password'], $registration['email'], $permission);

So the expiration field is missing. You need to change the 
RegistrationServices.class.php line 118 into

$id = $this->env->configuration()->addUser($registration['name'], 
$registration['password'], $registration['email'], $permission, NULL);

ie add NULL into the end.

Original comment by samuli.j...@gmail.com on 28 Oct 2013 at 6:43

GoogleCodeExporter commented 8 years ago
I'll have to close this issue since it is old version, but let me know if the 
fix did not work.

Original comment by samuli.j...@gmail.com on 28 Oct 2013 at 9:53

GoogleCodeExporter commented 8 years ago
Apologies I went ahead and re-downloaded the RegistrationServices.class.php for 
1.8.9.3 as mine was from a previous version.  Worked like a charm!  I'm all 
set.  Any chance of a dark theme for 2.0?  I only ask because I went ahead and 
customized my own style for pre-2.0.

Original comment by mariokr...@gmail.com on 28 Oct 2013 at 4:38