Support » Plugin: Add Customer for WooCommerce » Critical error when creating e new user on order page

  • Resolved Ronan Prado

    (@ronanprado)


    Hi!

    Thanks for the excelent plugin ! Recentlly i’ve a issue when to creating new user on order page , look this report from wordpress:


    WordPress versão 5.4.7
    Tema atual: Blocksy (versão 1.7.71)
    Plugin atual: Add Customer for WooCommerce (versão 1.6.3)
    PHP versão 7.4.33

    Detalhes do erro
    ================
    Um erro do tipo E_ERROR foi causado na linha 128 do arquivo /public_html/wp-content/plugins/add-customer-for-woocommerce/include/tools/helper.php. Mensagem de erro: Uncaught ArgumentCountError: Too few arguments to function woo_add_customer_helper::{closure}(), 2 passed in /public_html/wp-includes/class-wp-hook.php on line 287 and exactly 3 expected in /public_html/wp-content/plugins/add-customer-for-woocommerce/include/tools/helper.php:128
    Stack trace:
    #0 /public_html/wp-includes/class-wp-hook.php(287): woo_add_customer_helper->{closure}(true, Object(WP_User))
    #1 /public_html/wp-includes/plugin.php(206): WP_Hook->apply_filters(true, Array)
    #2 /public_html/wp-content/plugins/woocommerce/includes/emails/class-wc-email.php(467): apply_filters(‘woocommerce_ema…’, true, Object(WP_User))
    #3 /public_html/wp-content/plugins/woocommerce/includes/emails/class-wc-email-customer-new-account.php(109): WC_Email->is_enabled()
    #4 /public_html/wp-content/plugins/woocommerce/includes/class-wc-emails.php(356): WC_Email_Customer_New_Account->trigger(11, ‘d8PxGwazg)Mu’, f`

    How we can fix the issue ?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author dansart

    (@dansart)

    Hi Ronan

    Thanks for your report. I checked the issue very quickly and could not reproduce it.
    Can you give me some additional info? The report, that shows the installed Plugins etc. will be helpful. This is to be found here: Tools -> Site health -> info.

    Is there a reason you running an old version of WP?

    Best, Daniel

    Thread Starter Ronan Prado

    (@ronanprado)

    Hi Dans ,

    Sorry for slow, i get the solution. Was some erro relationed of mail and database woocommerce. I will give here the steps that works for me:

    1 Reinstall woocommerce

    2 Install the plugin “jquery migrate helper” and active

    3 Enable Cron (temporary) before update database of woocommerce

    4 Create new pages of woocommerce, clean transients, clean data, using the tools (option on menu)

    5 Set manually mail fields on WordPress > Settings > Add customer > set fields of mail like as [first_name].[last_name]@mymail.com.br

    After that, update page pressing “F5” and worked normally.

    I don’t know say what steps fix the issue but worked for me.

    Very thanks for support and the good disposition for help 😉

    • This reply was modified 3 weeks, 6 days ago by Ronan Prado.
    Plugin Author dansart

    (@dansart)

    Hi Ronan

    Thanks for the update. Glad you found a solution. 🙂</img>

    Don’t hesitate to open this topic again, if the error reoccurs.
    Best, Daniel

    • This reply was modified 3 weeks, 2 days ago by dansart.
    • This reply was modified 3 weeks, 2 days ago by dansart.
Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.