Title: Automatic Account Activation
Last modified: September 1, 2016

---

# Automatic Account Activation

 *  Resolved [lulf](https://wordpress.org/support/users/lulf/)
 * (@lulf)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/automatic-account-activation/)
 * Hey !
    I’ve got a problem with the activation of the MangoPay accounts. I have
   inserted manually (with mySQL requests) values for the new MangoPay required 
   fields (birthday, nationality, billing country), so now all the accounts should
   be “MangoPay Account”. Unfortunately for every single user, I have to go to “
   Edit User” page (in wp-admin) to activate the account and create the wallet. 
   I just have to click on it but I have thousands of users so it will take a while
   if I need to do this for all of them. Is there a way to create the wallet automatically
   when all the required fields are completed without going to each user page ? 
   Thanks !
 * [https://wordpress.org/plugins/mangopay-woocommerce/](https://wordpress.org/plugins/mangopay-woocommerce/)

Viewing 9 replies - 1 through 9 (of 9 total)

 *  Plugin Author [mangopay](https://wordpress.org/support/users/mangopay/)
 * (@mangopay)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/automatic-account-activation/#post-7674234)
 * Hello [@lulf](https://wordpress.org/support/users/lulf/), customer/buyer Mangopay
   accounts should be created on the fly when they do a payment, however this isn’t
   the case for vendors – I assume you’re therefore talking about vendors? If so,
   there is no way of bulk creating vendors at this time I’m afraid :-/
 *  Thread Starter [lulf](https://wordpress.org/support/users/lulf/)
 * (@lulf)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/automatic-account-activation/#post-7674367)
 * Hi !
 * Many thanks for your answer !
    Unfortunately I still have a problem. Indeed I
   have randomly an error message on the checkout page when I submit the form (the
   problem never happen if the user/customer has already a MangoPay Account/Wallet).
   I have the following error :
 * > Payment error:Could not create the MANGOPAY payment URL
   >  Could not create the
   > MANGOPAY payment URL
 * So it come from _gateway.inc.php_ and especially from this part :
    `$redirect_url
   = mpAccess::getInstance()->card_payin_url( $order_id, $wp_user_id,($order->order_total*
   100),$order->order_currency,0,$return_url,$locale,$mp_card_type);`
 * I have this error in my console :
    `<div class="error"><p>Error: MANGOPAY API
   returned: «Cannot put token to file»</p></div>` and this error in my Error Log:
 * > PHP Warning: error_log(/nas/content/live/chnew/wp-content/uploads/mp_tmp/sandbox/
   > mp-transactions.log.php): failed to open stream: Permission denied in /nas/
   > content/live/website/wp-content/plugins/mangopay-woocommerce/inc/mangopay.inc.
   > php on line 679, referer: [http://website.com/checkout](http://website.com/checkout)
 * I have seen this post : [https://github.com/MangoPay/mangopay2-php-sdk/issues/45](https://github.com/MangoPay/mangopay2-php-sdk/issues/45)
 * So it seems to be a permission problem. My file has the 664 permission and I 
   can’t change it due to my server provider (WPEngine).
    What’s weird is that I
   have not this error everytime, it’s totally random so I don’t know if the problem
   comes from your plugin or if it comes from my server provider.
 * If you have any idea, I’m more than interested !
    Thanks !
 * All the error in my Error Log :
 * > [Thu Aug 18 13:38:13.332046 2016] [:error] [pid 31102] [client 212.238.212.216:
   > 47012] PHP Warning: in_array() expects parameter 2 to be array, string given
   > in /nas/content/live/website/wp-content/plugins/mangopay-woocommerce/inc/mangopay.
   > inc.php on line 269, referer: [http://website.com/checkout/](http://website.com/checkout/)
   > [
   > Thu Aug 18 13:38:13.475538 2016] [:error] [pid 31102] [client 212.238.212.216:
   > 47012] PHP Warning: _wpe_old_file_put_contents(/nas/content/live/website/wp-
   > content/uploads/mp_tmp/sandbox//MangoPaySdkStorage.tmp.php): failed to open
   > stream: Permission denied in /opt/nas/www/common/production/php_prevent_flock.
   > php on line 58, referer: [http://website.com/checkout/](http://website.com/checkout/)[
   > Thu Aug 18 13:38:13.476411 2016] [:error] [pid 31102] [client 212.238.212.216:
   > 47012] PHP Warning: error_log(/nas/content/live/website/wp-content/uploads/
   > mp_tmp/sandbox/mp-transactions.log.php): failed to open stream: Permission 
   > denied in /nas/content/live/website/wp-content/plugins/mangopay-woocommerce/
   > inc/mangopay.inc.php on line 679, referer: [http://website.com/checkout/](http://website.com/checkout/)[
   > Thu Aug 18 13:38:13.477576 2016] [:error] [pid 31102] [client 212.238.212.216:
   > 47012] PHP Warning: in_array() expects parameter 2 to be array, string given
   > in /nas/content/live/website/wp-content/plugins/mangopay-woocommerce/inc/mangopay.
   > inc.php on line 269, referer: [http://website.com/checkout/](http://website.com/checkout/)[
   > Thu Aug 18 13:38:13.699633 2016] [:error] [pid 31102] [client 212.238.212.216:
   > 47012] PHP Warning: _wpe_old_file_put_contents(/nas/content/live/website/wp-
   > content/uploads/mp_tmp/sandbox//MangoPaySdkStorage.tmp.php): failed to open
   > stream: Permission denied in /opt/nas/www/common/production/php_prevent_flock.
   > php on line 58, referer: [http://website.com/checkout/](http://website.com/checkout/)[
   > Thu Aug 18 13:38:13.700203 2016] [:error] [pid 31102] [client 212.238.212.216:
   > 47012] PHP Warning: error_log(/nas/content/live/website/wp-content/uploads/
   > mp_tmp/sandbox/mp-transactions.log.php): failed to open stream: Permission 
   > denied in /nas/content/live/website/wp-content/plugins/mangopay-woocommerce/
   > inc/mangopay.inc.php on line 679, referer: [http://website.com/checkout/](http://website.com/checkout/)[
   > Thu Aug 18 13:38:13.802027 2016] [:error] [pid 31102] [client 212.238.212.216:
   > 47012] PHP Warning: in_array() expects parameter 2 to be array, string given
   > in /nas/content/live/website/wp-content/plugins/mangopay-woocommerce/inc/mangopay.
   > inc.php on line 269, referer: [http://website.com/checkout/](http://website.com/checkout/)[
   > Thu Aug 18 13:38:13.936870 2016] [:error] [pid 31102] [client 212.238.212.216:
   > 47012] PHP Warning: _wpe_old_file_put_contents(/nas/content/live/website/wp-
   > content/uploads/mp_tmp/sandbox//MangoPaySdkStorage.tmp.php): failed to open
   > stream: Permission denied in /opt/nas/www/common/production/php_prevent_flock.
   > php on line 58, referer: [http://website.com/checkout/](http://website.com/checkout/)[
   > Thu Aug 18 13:38:13.937240 2016] [:error] [pid 31102] [client 212.238.212.216:
   > 47012] PHP Warning: error_log(/nas/content/live/website/wp-content/uploads/
   > mp_tmp/sandbox/mp-transactions.log.php): failed to open stream: Permission 
   > denied in /nas/content/live/website/wp-content/plugins/mangopay-woocommerce/
   > inc/mangopay.inc.php on line 679, referer: [http://website.com/checkout/](http://website.com/checkout/)[
   > Thu Aug 18 13:38:13.937547 2016] [:error] [pid 31102] [client 212.238.212.216:
   > 47012] PHP Warning: Invalid argument supplied for foreach() in /nas/content/
   > live/website/wp-content/plugins/mangopay-woocommerce/inc/mangopay.inc.php on
   > line 972, referer: [http://website.com/checkout/](http://website.com/checkout/)
 *  Plugin Author [mangopay](https://wordpress.org/support/users/mangopay/)
 * (@mangopay)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/automatic-account-activation/#post-7674369)
 * Hmm, when you look at the plugin page, are all the status checks OK? It’s at 
   yoursite.com/wp-admin/admin.php?page=mangopay_settings
 *  Thread Starter [lulf](https://wordpress.org/support/users/lulf/)
 * (@lulf)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/automatic-account-activation/#post-7674371)
 * No, I have still this :
 * > All active vendors have a MANGOPAY account: Failure 🙁
 * But I always made the test with the same product which is sold by a vendor who
   have a MangoPay account so I really don’t believe it comes from there.
 *  Plugin Author [mangopay](https://wordpress.org/support/users/mangopay/)
 * (@mangopay)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/automatic-account-activation/#post-7674379)
 * Hmm, I think we need to take a closer look to resolve this for you – could you
   email [support@mangopay.com](https://wordpress.org/support/topic/automatic-account-activation/support@mangopay.com?output_format=md),
   and ideally create a temporary account for us to go in and check a couple of 
   things out?
 *  Thread Starter [lulf](https://wordpress.org/support/users/lulf/)
 * (@lulf)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/automatic-account-activation/#post-7674406)
 * Hi,
    I have just send you an email ! Thanks for your support !
 *  [dannykater](https://wordpress.org/support/users/dannykater/)
 * (@dannykater)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/automatic-account-activation/#post-8684583)
 * Any update on this one?
 *  Plugin Author [mangopay](https://wordpress.org/support/users/mangopay/)
 * (@mangopay)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/automatic-account-activation/#post-8730275)
 * Hey [@dannykater](https://wordpress.org/support/users/dannykater/) – this problem
   was very specific to [@lulf](https://wordpress.org/support/users/lulf/), could
   you create a new thread detailing exactly what problem you’re experiencing etc.
   Thanks.
 *  [dannykater](https://wordpress.org/support/users/dannykater/)
 * (@dannykater)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/automatic-account-activation/#post-8731093)
 * Done, thanks!
 * [https://wordpress.org/support/topic/front-end-mangopay-account-creation/](https://wordpress.org/support/topic/front-end-mangopay-account-creation/)

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Automatic Account Activation’ is closed to new replies.

 * ![](https://ps.w.org/mangopay-woocommerce/assets/icon-256x256.png?rev=2900765)
 * [MANGOPAY for WooCommerce](https://wordpress.org/plugins/mangopay-woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/mangopay-woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/mangopay-woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/mangopay-woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/mangopay-woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/mangopay-woocommerce/reviews/)

## Tags

 * [account](https://wordpress.org/support/topic-tag/account/)
 * [automatic](https://wordpress.org/support/topic-tag/automatic/)

 * 9 replies
 * 3 participants
 * Last reply from: [dannykater](https://wordpress.org/support/users/dannykater/)
 * Last activity: [9 years, 3 months ago](https://wordpress.org/support/topic/automatic-account-activation/#post-8731093)
 * Status: resolved