XenForo Login Problem - Fixed

Discussion in 'Integration' started by lifeobject, Mar 17, 2014.

  1. lifeobject

    lifeobject New Member

    Joined:
    Apr 10, 2013
    Messages:
    5
    Hello,

    I am posting this solution in the hope that it might save several hours of work for anyone else who is facing the following issue,

    My XenForo Version: 1.3.0
    aMember Version: 4.3.6

    Problem:

    Unable to login to XenForo even User record is created in XenForo by aMember.

    Solution:

    There is change in table structure of XenForo `xf_user_profile ` So you will notice the following error in aMember logs,

    Unknown column 'facebook_auth_id' in 'field list' at

    Fix It:

    File: amember/application/default/plugins/protect/xenforo/xenforo.php
    Line No: 264
    Comment or remove: 'facebook_auth_id' => 0

    Final code will look like,

    PHP:
    $profile = array(
                
    'user_id' => $record->pk(),
                
    'dob_day' => 0,
                
    'dob_month' => 0,
                
    'dob_year' => 0,
                
    'status' => '',
                
    'status_date' => 0,
                
    'status_profile_post_id' => 0,
                
    'signature' => '',
                
    'homepage' => '',
                
    'location' => '',
                
    'occupation' => '',
                
    'following' => '',
                
    //'identities' => '',
                
    'csrf_token' => '',
                
    'avatar_crop_x' => 0,
                
    'avatar_crop_y' => 0,
                
    'about' => ''
                
    //'facebook_auth_id' => 0
            
    );
    Enjoy!

    I am also observing another error in log on user deletion i.e.

    Table 'xf_dovethemes.xf_user_identity' doesn't exist at

    I have not looked into the code about this but i am sure this table will be obsolete in the new XenForo version.

Share This Page