Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Facebook plugin: Undefined class constant 'USERNAME_REGEX_MIN'
castaldi
New
Hi all,
I have troubles with integrating the Faceook-connect plugin with the Vanilla forum. I've installed it and the Facebook part works, but then the browser goes to:
/entry/connect/facebook
and the following error message appears:
Fatal error: Undefined class constant 'USERNAME_REGEX_MIN' in /home//domains//public_html/forum/plugins/Facebook/class.facebook.plugin.php on line 228
Line 228 is:
'Garden.User.ValidationRegex' => UserModel::USERNAME_REGEX_MIN,
part of:
if (C('Plugins.Facebook.UseFacebookNames')) {
$Form->SetFormValue('Name', GetValue('name', $Profile)); SaveToConfig(array( 'Garden.User.ValidationRegex' => UserModel::USERNAME_REGEX_MIN, 'Garden.User.ValidationLength' => '{3,50}', 'Garden.Registration.NameUnique' => FALSE ), '', FALSE); }
Can it be an old class that is being used? Or is something else going on?
Thanks in advance!
Tagged:
0
Answers
There is not need to install this plugin, it comes with the core. you might be using an old version.
grep is your friend.
Thanks for your reply.
Something must went wrong with uploading the files, this solved this and some other problems as well.
Thank you very much!