• Welcome to the all-new Kolakube support, the official place to get help for Marketers Delight, XFtoWP, CryptoWP, and other WordPress products! Please login with your account details to access members-only support forums.

Import XF users to WP

zastavra

Member
XFtoWP
Messages
9
Reaction score
0
Hello,

I'm trying to import XF users to WP with no luck. Syncing does not move from 0.

Screen Shot 2023-07-24 at 18.12.15.png

Any help please.
 

Attachments

  • wptoff-user-sync.png
    wptoff-user-sync.png
    50.9 KB · Views: 13
Last edited by a moderator:
Hi, when this happens the issue is most likely because your API user doesnt have full permissions to sync users or is not a super user key.

Go through this guide and ensure all criteria is met, specifically the part about "Manage users and moderators":


Afterwards, check that you can manually sync a WP user by going to the Edit User screen and connecting/refreshing user data.

Screen Shot 2023-07-22 at 14.34.16.png
 
Comment
I'm afraid there's no way for me to work.

API user is Super Admin. Key type is Super user key with all All scopes checked.

These are the settings:

wp2xf1.pngwp2xf2.pngwp2xf3.png

Single user syncs OK.
 
Comment
in WP, this is my setup:
1691101216609.png

my API key is a user key, the user was made an regular administrator.

1691101383387.png


1691101283176.png

The only administrator role added was "Manage Users and Moderators"
 
Comment
Maybe this related error could be helpfull as well...

Code:
ErrorException: [E_WARNING] Undefined property: stdClass::$user /*****/wp-content/plugins/XFWP/requests/users.php:709
Stack trace
#0 /*****/wp-content/plugins/XFWP/requests/users.php(709): XF::handlePhpError(2, '[E_WARNING] Und...', '/*****', 709)
#1 /*****/wp-content/plugins/XFWP/requests/users.php(40): XFWP_Users_Requests->update_user('223', Array)
#2 /*****/wp-content/plugins/XFWP/requests/users.php(18): XFWP_Users_Requests->create_user(223, 'Sakiskaltz', '*****')
#3 /*****/wp-includes/class-wp-hook.php(308): XFWP_Users_Requests->user_register(223, Array)
#4 /*****/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(true, Array)
#5 /*****/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#6 /*****/wp-includes/user.php(2494): do_action('user_register', 223, Array)
#7 src/addons/Kolakube/RegisterWpUsers/Framework.php(42): wp_insert_user(Array)
#8 src/addons/Kolakube/RegisterWpUsers/XF/Service/User/Registration.php(25): Kolakube\RegisterWpUsers\Framework::registerWpUser('Sakiskaltz', 'vasiliki_kiacha...', '*****')
#9 src/addons/SV/ModeratorEssentials/XF/Service/User/Registration.php(24): Kolakube\RegisterWpUsers\XF\Service\User\Registration->_save()
#10 src/XF/Service/ValidateAndSavableTrait.php(42): SV\ModeratorEssentials\XF\Service\User\Registration->_save()
#11 src/XF/Pub/Controller/Register.php(429): XF\Service\User\Registration->save()
#12 src/addons/SV/NewRegistrationEmail/XF/Pub/Controller/Register.php(22): XF\Pub\Controller\Register->actionRegister()
#13 src/addons/SV/SignupAbuseBlocking/XF/Pub/Controller/Register.php(73): SV\NewRegistrationEmail\XF\Pub\Controller\Register->actionRegister()
#14 src/XF/Mvc/Dispatcher.php(352): SV\SignupAbuseBlocking\XF\Pub\Controller\Register->actionRegister(Object(XF\Mvc\ParameterBag))
#15 src/XF/Mvc/Dispatcher.php(259): XF\Mvc\Dispatcher->dispatchClass('XF:Register', 'Register', Object(XF\Mvc\RouteMatch), Object(SV\SignupAbuseBlocking\XF\Pub\Controller\Register), Object(XF\Mvc\Reply\Reroute))
#16 src/XF/Mvc/Dispatcher.php(115): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(SV\SignupAbuseBlocking\XF\Pub\Controller\Register), Object(XF\Mvc\Reply\Reroute))
#17 src/XF/Mvc/Dispatcher.php(57): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#18 src/XF/App.php(2487): XF\Mvc\Dispatcher->run()
#19 src/XF.php(524): XF\App->run()
#20 index.php(20): XF::runApp('XF\\Pub\\App')
#21 {main}
Request state
array(4) {
  ["url"] => string(34) "/community/login/register-register"
  ["referrer"] => string(20) "https://*****.^^*/"
  ["_GET"] => array(1) {
    ["/community/login/register-register"] => string(0) ""
  }
  ["_POST"] => array(18) {
    ["_xfToken"] => string(8) "********"
    ["username"] => string(0) ""
    ["*****************"] => string(10) "someusernam"
    ["*****************"] => string(27) "***@yahoo.***"
    ["v"] => string(8) "********"
    ["dob_month"] => string(1) "6"
    ["dob_day"] => string(1) "4"
    ["dob_year"] => string(4) "1990"
    ["custom_fields"] => array(1) {
      ["birdsown"] => array(1) {
        [0] => string(12) "parrot_owner"
      }
    }
    ["captcha_question_answer"] => string(4) "4117"
    ["captcha_question_hash"] => string(40) "49843b9f62fdb728d4cd3f690dba100a96b366b2"
    ["accept"] => string(1) "1"
    ["reg_key"] => string(16) "fP6fVs5pAVUThmV1"
    ["f97034e272b81150b855d0f50689336ce071645c"] => string(13) "Europe/Athens"
    ["timetaken"] => string(6) "60.789"
    ["_xfRequestUri"] => string(25) "/community/login/register"
    ["_xfWithData"] => string(1) "1"
    ["_xfResponseType"] => string(4) "json"
  }
}
 
Comment
Back
Top