Missing PersonType
-
From front-end we:
– Register users
– Update user profile fields (user_mp_status and user_business_type)Then when you go to the WCV Pro Shop Settings Page it’s broken and debug_log.php shows below error (whole error at the bottom):
[09-Nov-2017 16:16:39 UTC] PHP Fatal error: Uncaught MangoPay\Libraries\Exception: Unexpected response. Missing PersonType property in /var/www/virtual/surfsnb.com/htdocs/wp-content/plugins/mangopay-woocommerce/sdk/MangoPay/ApiUsers.php:299
I found out that it’s because the
mp_user_id_sandbox
is not set yet. This value only seems to be set when i open the profile in the back-end or when a user completes an order. Obviously we would like the Shop Settings Page to work before so users can complete the KYC.Thanks.
Whole error log:
[09-Nov-2017 16:16:39 UTC] PHP Fatal error: Uncaught MangoPay\Libraries\Exception: Unexpected response. Missing PersonType property in /var/www/virtual/surfsnb.com/htdocs/wp-content/plugins/mangopay-woocommerce/sdk/MangoPay/ApiUsers.php:299 Stack trace: #0 /var/www/virtual/surfsnb.com/htdocs/wp-content/plugins/mangopay-woocommerce/sdk/MangoPay/ApiUsers.php(61): MangoPay\ApiUsers->GetUserResponse(Array) #1 /var/www/virtual/surfsnb.com/htdocs/wp-content/plugins/mangopay-woocommerce/inc/mangopay.inc.php(1541): MangoPay\ApiUsers->Get('') #2 /var/www/virtual/surfsnb.com/htdocs/wp-content/plugins/mangopay-woocommerce/inc/main.inc.php(468): mpAccess->get_mp_user('') #3 /var/www/virtual/surfsnb.com/htdocs/wp-content/plugins/mangopay-woocommerce/inc/main.inc.php(405): mangopayWCMain->kyc_doc_upload_form_func(Array) #4 /var/www/virtual/surfsnb.com/htdocs/wp-includes/class-wp-hook.php(298): mangopayWCMain->kyc_doc_upload_form_doaction('store-settings....', 'wc-vendors/dash...', '/var/www/virtua...', Array) #5 /var/www/virtual/surfsnb.com/htdocs/wp-includes/class- in /var/www/virtual/surfsnb.com/htdocs/wp-content/plugins/mangopay-woocommerce/sdk/MangoPay/ApiUsers.php on line 299
The page I need help with: [log in to see the link]
- The topic ‘Missing PersonType’ is closed to new replies.