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

Resolved ErrorException: [E_WARNING] Undefined property

zastavra

Member
XFtoWP
Messages
11
Reaction score
0
Hello,

Creating a new user is giving me this error:

Code:
Server error log
ErrorException: [E_WARNING] Undefined property: stdClass::$user /www/html/wp-content/plugins/XFWP/requests/users.php:639
Generated by: USER Nov 22, 2023 at 6:49 PM
Stack trace
#0 /www/html/wp-content/plugins/XFWP/requests/users.php(639): XF::handlePhpError(2, '[E_WARNING] Und...', '/var/www/petbir...', 639)
#1 /www/html/wp-content/plugins/XFWP/requests/users.php(40): XFWP_Users_Requests->update_user('19234', Array)
#2 /www/html/wp-content/plugins/XFWP/requests/users.php(18): XFWP_Users_Requests->create_user(19234, 'XFtoWP', '*****')
#3 /www/html/wp-includes/class-wp-hook.php(324): XFWP_Users_Requests->user_register(19234, Array)
#4 /www/html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(false, Array)
#5 /www/html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#6 /www/html/wp-includes/user.php(2504): do_action('user_register', 19234, Array)
#7 src/addons/Kolakube/RegisterWpUsers/Framework.php(42): wp_insert_user(Array)
#8 src/addons/Kolakube/RegisterWpUsers/XF/Admin/Controller/User.php(28): Kolakube\RegisterWpUsers\Framework::registerWpUser('XFtoWP', 'domain.com+xft...', '*****')
#9 src/XF/Mvc/Dispatcher.php(352): Kolakube\RegisterWpUsers\XF\Admin\Controller\User->actionSave(Object(XF\Mvc\ParameterBag))
#10 src/XF/Mvc/Dispatcher.php(259): XF\Mvc\Dispatcher->dispatchClass('XF:User', 'Save', Object(XF\Mvc\RouteMatch), Object(SV\DailyStatistics\XF\Admin\Controller\User), NULL)
#11 src/XF/Mvc/Dispatcher.php(115): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(SV\DailyStatistics\XF\Admin\Controller\User), NULL)
#12 src/XF/Mvc/Dispatcher.php(57): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#13 src/XF/App.php(2487): XF\Mvc\Dispatcher->run()
#14 src/XF.php(524): XF\App->run()
#15 admin.php(13): XF::runApp('XF\\Admin\\App')
#16 {main}
Request state
array(4) {
  ["url"] => string(33) "/community/admin.php?users/0/save"
  ["referrer"] => string(49) "https://domain.com/community/admin.php?users/add"
  ["_GET"] => array(1) {
    ["users/0/save"] => string(0) ""
  }
  ["_POST"] => array(14) {
    ["_xfToken"] => string(8) "********"
    ["user"] => array(12) {
      ["username"] => string(6) "XFtoWP"
      ["email"] => string(28) "domain.com+xftowp@gmail.com"
      ["user_group_id"] => string(1) "2"
      ["user_state"] => string(5) "valid"
      ["security_lock"] => string(0) ""
      ["custom_title"] => string(0) ""
      ["message_count"] => string(1) "0"
      ["reaction_score"] => string(1) "0"
      ["trophy_points"] => string(1) "0"
      ["style_id"] => string(1) "0"
      ["language_id"] => string(1) "1"
      ["timezone"] => string(13) "Europe/Athens"
    }
    ["password"] => string(8) "********"
    ["dob_month"] => string(1) "0"
    ["dob_day"] => string(0) ""
    ["dob_year"] => string(0) ""
    ["profile"] => array(6) {
      ["location"] => string(0) ""
      ["website"] => string(0) ""
      ["about"] => string(0) ""
      ["xa_ams_author_name"] => string(0) ""
      ["xa_ams_about_author"] => string(0) ""
      ["signature"] => string(0) ""
    }
    ["custom_fields"] => array(14) {
      ["onoma"] => string(0) ""
      ["gender"] => string(0) ""
      ["ring_number"] => string(0) ""
      ["occupation"] => string(0) ""
      ["facebook"] => string(0) ""
      ["instagram"] => string(0) ""
      ["twitter"] => string(0) ""
      ["viber"] => string(0) ""
      ["whatsapp"] => string(0) ""
      ["skype"] => string(0) ""
      ["gtalk"] => string(0) ""
      ["yahoo"] => string(0) ""
      ["icq"] => string(0) ""
      ["pbcp_contribution"] => string(0) ""
    }
    ["option"] => array(7) {
      ["content_show_signature"] => string(1) "1"
      ["receive_admin_email"] => string(1) "1"
      ["email_on_conversation"] => string(1) "1"
      ["sv_email_on_mention"] => string(1) "1"
      ["sv_email_on_quote"] => string(1) "1"
      ["creation_watch_state"] => string(11) "watch_email"
      ["interaction_watch_state"] => string(14) "watch_no_email"
    }
    ["enable_activity_summary_email"] => string(1) "1"
    ["privacy"] => array(5) {
      ["allow_view_profile"] => string(4) "none"
      ["allow_post_profile"] => string(4) "none"
      ["allow_receive_news_feed"] => string(4) "none"
      ["allow_send_personal_conversation"] => string(4) "none"
      ["allow_view_identities"] => string(4) "none"
    }
    ["_xfRequestUri"] => string(30) "/community/admin.php?users/add"
    ["_xfWithData"] => string(1) "1"
    ["_xfResponseType"] => string(4) "json"
  }
}
Any help please?
 
Solution
Hi @zastavra is this the first time you've setup the plugin? It's possible that the API key does not have full permissions.

Let's run a manual user syncing test. Assuming you have made a successful API connection, go to WP admin > XenForo > User syncing > Settings > Sync user registrations. Save settings.

Now go to WP admin > Users > Add new and fill out the form to create a new user. After the user is created, go to the edit screen and scroll to the bottom of the page where the XenForo profile box is. You should see an associated user on XF has been created and their details are there.

If so, this means the API is fully setup and I'll keep working with you on troubleshooting the issue. If not, follow this guide...
Hi @zastavra is this the first time you've setup the plugin? It's possible that the API key does not have full permissions.

Let's run a manual user syncing test. Assuming you have made a successful API connection, go to WP admin > XenForo > User syncing > Settings > Sync user registrations. Save settings.

Now go to WP admin > Users > Add new and fill out the form to create a new user. After the user is created, go to the edit screen and scroll to the bottom of the page where the XenForo profile box is. You should see an associated user on XF has been created and their details are there.

If so, this means the API is fully setup and I'll keep working with you on troubleshooting the issue. If not, follow this guide for any steps that may have been missed during setup:


Also, are you using any of the free XF addons on your forum?
 
Comment
Solution
Back
Top