• Resolved Katrina Massey

    (@katrinadtl)


    I applied the latest Woocommerce update to my environment and received this error in my email –

    Error Details
    =============
    An error of type E_ERROR was caused in line 360 of the file /home/mysite/public_html/wp-content/plugins/woocommerce/includes/class-wc-api.php. Error message: Uncaught Error: Class ‘WC_REST_Coupons_V1_Controller’ not found in /home/mysite/public_html/wp-content/plugins/woocommerce/includes/class-wc-api.php:360
    Stack trace:
    #0 /home/mysite/public_html/wp-includes/class-wp-hook.php(286): WC_API->register_rest_routes(Object(WP_REST_Server))
    #1 /home/mysite/public_html/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array)
    #2 /home/mysite/public_html/wp-includes/plugin.php(465): WP_Hook->do_action(Array)
    #3 /home/mysite/public_html/wp-includes/rest-api.php(475): do_action(‘rest_api_init’, Object(WP_REST_Server))
    #4 /home/mysite/public_html/wp-includes/rest-api.php(433): rest_get_server()
    #5 /home/mysite/public_html/wp-includes/rest-api.php(1394): rest_do_request(Object(WP_REST_Request))
    #6 [internal function]: rest_preload_api_request(Array, ‘/wc/v3’)
    #7 /home/mysite/public_html/wp-content/plugins/woocommerce-admin/includes/class-wc-admin-loader.php(521): array_reduce(Array, ‘rest_preload_ap…’)
    #8 /home/mysite/public_html/wp-include

    I’m not experiencing any problems with my site right now. Everything appears to be fine. I didn’t get the WSOD and can access the dashboard and website just fine. My URL is https://www.dtlart.com

Viewing 7 replies - 16 through 22 (of 22 total)
  • Hi have this error on product page, could you help me?
    Warning: sprintf(): Too few arguments in /web/htdocs/www.xxx.com/home/wp-content/plugins/woocommerce/includes/wc-formatting-functions.php on line 1185

    I have the same issue.

    How can be resolved?

    For me was the translation: ex %n% 2 times…

    What do you mean?

    I have wpml

    is that the issue?

    i have same problem. each time i try to add new product, i cant add a discription or the product image, even the gallery image.

    the base of the page i get an error message that ask me to check my email
    here is the email i got

    Howdy!

    Since WordPress 5.2 there is a built-in feature that detects when a plugin or theme causes a fatal error on your site, and notifies you with this automated email.

    In this case, WordPress caught an error with one of your plugins, WooCommerce.

    First, visit your website (https://zoe-fashion.com/) and check for any visible issues. Next, visit the page where the error was caught (https://zoe-fashion.com/wp-admin/post-new.php?post_type=product) and check for any visible issues.

    Please contact your host for assistance with investigating this issue further.

    If your site appears broken and you can’t access your dashboard normally, WordPress now has a special “recovery mode”. This lets you safely login to your dashboard and investigate further.

    https://zoe-fashion.com/wp-login.php?action=enter_recovery_mode&rm_token=1YbxyMaeZiU0shxLJ8in80&rm_key=MPcyamjgpQHRzJ7Kyb2NKn

    To keep your site safe, this link will expire in 1 day. Don’t worry about that, though: a new link will be emailed to you if the error occurs again after it expires.

    When seeking help with this issue, you may be asked for some of the following information:
    WordPress version 5.4.2
    Current theme: OceanWP (version 1.8.3)
    Current plugin: WooCommerce (version 4.2.2)
    PHP version 7.3.18

    Error Details
    =============
    An error of type E_COMPILE_ERROR was caused in line 0 of the file /home/customer/www/zoe-fashion.com/public_html/wp-content/plugins/woocommerce/includes/admin/settings/class-wc-settings-products.php. Error message: Cannot declare class WC_Settings_Products, because the name is already in use

    @stavroch and @henex10
    My problem was a string translation… so I put the default translation back and the error disappeared. In my translation I put the variable (%) twice but the phrase contains only one…
    I hope it helps

    @henex10 your error is not the same… This is the cause: Error message: Cannot declare class WC_Settings_Products, because the name is already in use…

    Change name

Viewing 7 replies - 16 through 22 (of 22 total)
  • The topic ‘Error after latest update’ is closed to new replies.