Can't register! Class 'passwordpolicy' not found?

pullvideos

Member
YetiShare User
Dec 15, 2013
88
1
8
Hi,
I get error below in php error log:
PHP Fatal error: Class 'passwordpolicy' not found in /public/themes/blue_v2/templates/register.html on line 120

Thanks!
 

pullvideos

Member
YetiShare User
Dec 15, 2013
88
1
8
Yes,I checked and Ensure that the "passwordPolicy.class.php" is uploaded to your /core/includes/ directory
This happen when i upgrade v3 to v4
Thanks!
 

adam

Administrator
Staff member
Dec 5, 2009
2,046
108
63
Also make sure you're using the release code and not beta. In the beta I believe there was an issue which was fixed around the naming convention of the call to passwordpolicy. (vs passwordPolicy)
 

pullvideos

Member
YetiShare User
Dec 15, 2013
88
1
8
Thanks much Adam!
I make sure using the release code but "passwordpolicy. (vs passwordPolicy)" -> this help me!
I renamed "passwordPolicy.class.php" to "passwordpolicy.class.php", it working fine now!It's strange!
I think the upgrade v3 -> v4 have some bugs!
Thanks!
 

ysmods

New Member
Jan 29, 2013
860
1
0
UK
www.ysmods.com
That means that you still have beta release code on your site.

The final release code uses passwordPolicy::generatePassword () without problems on my localhost and live development site.
 

coffee

New Member
Jul 23, 2014
83
0
0
pullvideos said:
Thanks much Adam!
I make sure using the release code but "passwordpolicy. (vs passwordPolicy)" -> this help me!
I renamed "passwordPolicy.class.php" to "passwordpolicy.class.php", it working fine now!It's strange!
I think the upgrade v3 -> v4 have some bugs!
Thanks!
LOL don't do that. Go get the fully updated release
 

pullvideos

Member
YetiShare User
Dec 15, 2013
88
1
8
Thanks ysmods,
passwordPolicy::generatePassword () -> this help me discover there is error in blue_v2 theme!
If you use blue_v2 on V4 you will can't register because it is passwordpolicy::generatePassword () in register.html
So i changed "passwordpolicy" to "passwordPolicy" in register.html without rename passwordPolicy.class.php file
coffee , thanks your help but i make sure install fully updated release V4
Thanks!
 

ysmods

New Member
Jan 29, 2013
860
1
0
UK
www.ysmods.com
I've emailed Adam with the details so he can update the release code.

For those of you using the Blue v2 theme and having issues with people not being able to register. (until Adam can update the release code).

In /themes/blue_v2/templates/register.html

Find the line (Approx line 120):
Code:
$newPassword = passwordpolicy::generatePassword();
Replace it with:
Code:
$newPassword = passwordPolicy::generatePassword();