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'

castaldicastaldi New
edited April 2012 in Vanilla 2.0 - 2.8

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!

Best Answer

  • x00x00 MVP
    Answer ✓

    There is not need to install this plugin, it comes with the core. you might be using an old version.

    grep is your friend.

Answers

  • x00x00 MVP
    Answer ✓

    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!

Sign In or Register to comment.