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.
Options

Facebook login error

PateyPatey New
edited August 2012 in Vanilla 2.0 - 2.8

wehn trying to use the facebook login it shows this error:

Fatal error: Undefined class constant 'USERNAME_REGEX_MIN' in /home/vhosts/evbas.ueuo.com/plugins/Facebook/class.facebook.plugin.php on line 228

using latest stable download and firefox for browser, tried in IE with same result :/
anyone know what this means?

Comments

  • Options
    peregrineperegrine MVP
    edited August 2012

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

  • Options
    peregrineperegrine MVP
    edited August 2012

    also some kind of github issue reported I think

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

  • Options

    latest release available when clicking download above. it wouldnt be the plugin itself- at first it only showed a blank white popup, then one day it worked and allowed me to use it to login, then it did this and today its back to a blank white popup :S i havent changed anything, i was waiting for a reply on another discussion here and creating categories while i waited.

  • Options

    I guess you want to say 2.0.18.4

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

  • Options
    peregrineperegrine MVP
    edited August 2012

    see if your version of/applications/dashboard/models/usermodel.php has something like this

    class UserModel extends Gdn_Model {
       const DEFAULT_CONFIRM_EMAIL = 'You need to confirm your email address before you can continue. Please confirm your email address by clicking on the following link: {/entry/emailconfirm,url,domain}/{User.UserID,rawurlencode}/{EmailKey,rawurlencode}';
       const USERID_KEY = 'user.{UserID}';
       const USERNAME_KEY = 'user.{Name}.name';
       const USERROLES_KEY = 'user.{UserID}.roles';
       const USERPERMISSIONS_KEY = 'user.{UserID}.permissions.{PermissionsIncrement}';
       const INC_PERMISSIONS_KEY = 'permissions.increment';
       const REDIRECT_APPROVE = 'REDIRECT_APPROVE';
       const USERNAME_REGEX_MIN = '^\/"\\\\#@\t\r\n';
    

    --

    if not you may need to add the constant. (least desirable option).

    or you may need to get rid of the facebook plugin and use the one that came with your version (which it does). If you downloaded the facebook plugin you probably overwrote the proper one that comes with the vanilla download built in.

    it really does help to learn what your version number is - instead of making people trying to answer you jump through hoops by pointing to links or clicks.

    I think you have a mismatch of facebook plugin version and version of vanilla!

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

  • Options

    I am using the plugin that came with the version, when i uploaded the forums to the host i didnt change anything, only added a few plugins like category headings and stuff. i checked the constants and had to add the bottom 2,the error no longer shows but its still an empty white box.
    I assumed anyone who could help me with this would already know what the version of the latest release is, you wouldnt have to search for a github page to find something thats a stable release...

  • Options
    peregrineperegrine MVP
    edited August 2012

    sorry, can't help you. You and I also have a different idea on how to make things easy for people responding to questions. To me clearly stating version number is the way (no assumptions necessary). - for you it is something else

    Stating the version number - rather than latest stable release - also makes it easier for viewers in the future - when the stable version changes - people will know what version you were relating to. sometimes logic can't prevail.

    Don't know you facebook pluginversion either.

    is it 0.1a or 1.01? or should we guess and assume?

    its like pulling teeth getting info and I'm trying to help you. But that is going to end shortly.

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

  • Options

    Theres no need to get on like that, i'm not purposely withholding info. I had intended to reply with more information but the city started maintence on power lines in my area and i lost my internet today untill about an hour ago. The facebook plugin (1.0.1) was with the release (2.0.18.4) i downloaded. the only thing that has been altered is the constants, i added the missing ones above.

  • Options
    peregrineperegrine MVP
    edited August 2012

    Fatal error: Undefined class constant 'USERNAME_REGEX_MIN' in /home/vhosts/evbas.ueuo.com/plugins/Facebook/class.facebook.plugin.php on line 228

    I could be wrong, however, I think I am correct. Since no one is peepng up to help you.

    Your error does NOT pertain to Version of Facebook Plugin 1.01. There is no line 128 referring to that in class.facebook.plugin.php. v1.01.

    these are the steps in the exact order I would do if it were me:

    -I would delete any and all files that relate to plugins/Facebook.

    -Remove anything relating to Facebook in your config.php (make a copy of config.php first)

    Either you are inadvertently reading the wrong
    class.facebook.plugin.php because of duplicates or you have the wrong one installed, end of story.

    after you have removed all remnants of Facebook.

    Recopy from the core download of v2.0.18.4 that contains the Facebook plugin 1.01.

    reactivate plugin and settings.

    Also reinstall the original copy of

    /applications/dashboard/models/usermodel.php that came with 2.0.18.4

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

  • Options

    might be less confusing to just start fresh- whats 2.1 like now? last time i tried it there was a bug with the comments, if thats working good i'll try an upgrade

Sign In or Register to comment.