• Resolved WebCodePoet

    (@senjoralfonso)


    [07-May-2021 12:00:27 UTC] PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function Automattic\WooCommerce\Admin\Loader::get_script_asset_filename(), 1 passed in /var/www/vhosts/httpdocs/wp-content/plugins/woocommerce-admin/src/Features/Coupons.php on line 132 and exactly 2 expected in /var/www/vhosts/httpdocs/wp-content/plugins/woocommerce-admin/src/Loader.php:255
    Stack trace:
    #0 /var/www/vhosts/httpdocs/wp-content/plugins/woocommerce-admin/src/Features/Coupons.php(132): Automattic\WooCommerce\Admin\Loader::get_script_asset_filename()
    #1 /var/www/vhosts/httpdocs/wp-includes/class-wp-hook.php(292): Automattic\WooCommerce\Admin\Features\Coupons->maybe_add_marketing_coupon_script()
    #2 /var/www/vhosts/httpdocs/wp-includes/class-wp-hook.php(316): WP_Hook->apply_filters()
    #3 /var/www/vhosts/httpdocs/wp-includes/plugin.php(484): WP_Hook->do_action()
    #4 /var/www/vhosts/httpdocs/wp-admin/admin-header.php(102): do_action()
    #5 /var/www/vhosts/httpdocs/wp-admin/edit.php(394): require_once(‘…’)
    #6 {main}
    thrown in /var/www/vhosts/httpdocs/wp-content/plugins/woocommerce-admin/src/Loader.php on line 255

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support abwaita a11n

    (@abwaita)

    Hi @senjoralfonso,

    This kind of problem is usually caused by a conflict with your theme or with another plugin.
     
    The best way to determine this is to:

    • Temporarily switch your theme to Storefront
    • Disable all plugins except for WooCommerce
    • Repeat the action that is causing the problem

    If you’re not seeing the same problem after completing the conflict test, then you know the problem was with the plugins and/or theme you deactivated. To figure out which plugin is causing the problem, reactivate your other plugins one by one, testing after each, until you find the one causing conflict. You can find a more detailed explanation on how to do a conflict test here.

    Let us know how it goes.

    garywatson

    (@garywatson)

    I’m suddenly seeing the exact same error (same files and line numbers referenced in the stack trace) logged by my website, specifically when I try to open Marketing\Coupons page in WP Admin.

    When I run the conflict test I see that it’s the “WooCommerce Admin” plug-in that’s causing this issue.

    I’ve created a post in that plug-ins support forum about this.

    P.S. the forum post I created is awaiting moderation so may not be immediately visible.

    • This reply was modified 5 years ago by garywatson.
    Plugin Support B C. a11n

    (@battouly)

    Hi @garywatson,

    Thanks for sharing your findings.

    While waiting for @senjoralfonso, I see you replied to the thread with a confirmation of a fix, did that work for you?

    If it did not fix it then, since you’re not the person who originally started this topic then, per the forum guidelines, please start your own topic? We’ll be more than happy to help there 🙂

    See you!

    Thread Starter WebCodePoet

    (@senjoralfonso)

    I fixed it by deactivating WooCommerce Admin, because the plugin has a bug.

    Plugin Support abwaita a11n

    (@abwaita)

    Hi @senjoralfonso,

    Glad to hear that you were able to find your way around it.

    As regards the issue, I would suggest checking with the WooCommerce Admin support so that they can take a closer look: https://wordpress.org/support/plugin/woocommerce-admin/

    I’ll go ahead and mark the thread as resolved here. Please feel free to create a new thread for any core WooCommerce plugin issues/questions you have.

    Thanks.

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

The topic ‘Bug on last update’ is closed to new replies.