• Resolved justas89

    (@justas89)


    Hey, today my stats stopped working on woocomerce (dev tools ) display 12x CORS errors in WP admin page under woocommerce tabs.

    and have a message There was an error getting your inbox. Please try again.

    Siteground updated my CDN today, can someone assist me, please?

    The page I need help with: [log in to see the link]

Viewing 15 replies - 1 through 15 (of 15 total)
  • Thread Starter justas89

    (@justas89)

    https://ibb.co/gdY4z1q
    These are errors, i noticed than in cart then changing quantity on items price does not update

    Hi @justas89!

    Thank for sending the screenshot.

    To further check into this, kindly provide us the following:

    • Your System Status: You can find it via WooCommerce > Status. Select ‘Get system report’ and then ‘Copy for support’. Once you do this, paste in here your response.
    • Fatal Error Log: Share a copy of any fatal error log found under WooCommerce > System Status > Logs (if available).
    • Thanks!

    Thread Starter justas89

    (@justas89)

    give me few minutes

    Thread Starter justas89

    (@justas89)

    
    ### WordPress Environment ###
    
    WordPress address (URL): https://craftshapesdirect.co.uk
    Site address (URL): https://craftshapesdirect.co.uk
    WC Version: 6.0.0
    REST API Version: ✔ 6.0.0
    WC Blocks Version: ✔ 6.3.3
    Action Scheduler Version: ✔ 3.3.0
    WC Admin Version: ✔ 3.0.3
    Log Directory Writable: ✔
    WP Version: 5.8.3
    WP Multisite: –
    WP Memory Limit: 768 MB
    WP Debug Mode: –
    WP Cron: ✔
    Language: en_GB
    External object cache: ✔
    
    ### Server Environment ###
    
    Server Info: Apache
    PHP Version: 7.4.27
    PHP Post Max Size: 256 MB
    PHP Time Limit: 120
    PHP Max Input Vars: 3000
    cURL Version: 7.66.0
    OpenSSL/1.1.1l-fips
    
    SUHOSIN Installed: –
    MySQL Version: 5.7.32-35-log
    Max Upload Size: 256 MB
    Default Timezone is UTC: ✔
    fsockopen/cURL: ✔
    SoapClient: ✔
    DOMDocument: ✔
    GZip: ✔
    Multibyte String: ✔
    Remote Post: ✔
    Remote Get: ✔
    
    ### Database ###
    
    WC Database Version: 6.0.0
    WC Database Prefix: wpqk_
    Total Database Size: 167.49MB
    Database Data Size: 87.50MB
    Database Index Size: 79.99MB
    wpqk_woocommerce_sessions: Data: 1.52MB + Index: 0.02MB + Engine InnoDB
    wpqk_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wpqk_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpqk_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    wpqk_woocommerce_order_items: Data: 2.52MB + Index: 0.48MB + Engine InnoDB
    wpqk_woocommerce_order_itemmeta: Data: 16.55MB + Index: 18.03MB + Engine InnoDB
    wpqk_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    wpqk_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wpqk_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpqk_woocommerce_shipping_zone_locations: Data: 0.06MB + Index: 0.03MB + Engine InnoDB
    wpqk_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpqk_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpqk_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wpqk_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpqk_actionscheduler_actions: Data: 0.47MB + Index: 0.63MB + Engine InnoDB
    wpqk_actionscheduler_claims: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpqk_actionscheduler_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpqk_actionscheduler_logs: Data: 0.39MB + Index: 0.27MB + Engine InnoDB
    wpqk_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wpqk_comments: Data: 2.52MB + Index: 1.56MB + Engine InnoDB
    wpqk_extravariationdb: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpqk_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpqk_mailster_action_bounces: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wpqk_mailster_action_clicks: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wpqk_mailster_action_errors: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wpqk_mailster_action_opens: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wpqk_mailster_action_sent: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wpqk_mailster_action_unsubs: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wpqk_mailster_forms: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpqk_mailster_forms_lists: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wpqk_mailster_forms_tags: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wpqk_mailster_form_fields: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpqk_mailster_links: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpqk_mailster_lists: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wpqk_mailster_lists_subscribers: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wpqk_mailster_queue: Data: 0.02MB + Index: 0.14MB + Engine InnoDB
    wpqk_mailster_subscribers: Data: 0.02MB + Index: 0.08MB + Engine InnoDB
    wpqk_mailster_subscriber_fields: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wpqk_mailster_subscriber_meta: Data: 0.05MB + Index: 0.06MB + Engine InnoDB
    wpqk_mailster_tags: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpqk_mailster_tags_subscribers: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wpqk_options: Data: 1.52MB + Index: 0.19MB + Engine InnoDB
    wpqk_postmeta: Data: 38.58MB + Index: 38.13MB + Engine InnoDB
    wpqk_posts: Data: 6.52MB + Index: 3.84MB + Engine InnoDB
    wpqk_social_users: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wpqk_termmeta: Data: 0.06MB + Index: 0.03MB + Engine InnoDB
    wpqk_terms: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wpqk_term_relationships: Data: 1.52MB + Index: 1.52MB + Engine InnoDB
    wpqk_term_taxonomy: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wpqk_tm_taskmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wpqk_tm_tasks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpqk_usermeta: Data: 4.52MB + Index: 4.03MB + Engine InnoDB
    wpqk_users: Data: 0.16MB + Index: 0.16MB + Engine InnoDB
    wpqk_wcas_match_rows: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wpqk_wcas_match_sets: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wpqk_wcpdf_invoice_number: Data: 0.13MB + Index: 0.00MB + Engine InnoDB
    wpqk_wc_admin_notes: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpqk_wc_admin_note_actions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpqk_wc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpqk_wc_customer_lookup: Data: 0.20MB + Index: 0.17MB + Engine InnoDB
    wpqk_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wpqk_wc_order_coupon_lookup: Data: 0.08MB + Index: 0.09MB + Engine InnoDB
    wpqk_wc_order_product_lookup: Data: 2.52MB + Index: 3.66MB + Engine InnoDB
    wpqk_wc_order_stats: Data: 0.34MB + Index: 0.33MB + Engine InnoDB
    wpqk_wc_order_tax_lookup: Data: 0.22MB + Index: 0.20MB + Engine InnoDB
    wpqk_wc_product_meta_lookup: Data: 1.52MB + Index: 2.58MB + Engine InnoDB
    wpqk_wc_rate_limits: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpqk_wc_reserved_stock: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpqk_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpqk_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpqk_yith_wcwl: Data: 0.28MB + Index: 0.11MB + Engine InnoDB
    wpqk_yith_wcwl_lists: Data: 0.06MB + Index: 0.05MB + Engine InnoDB
    wpqk_yoast_indexable: Data: 3.52MB + Index: 1.88MB + Engine InnoDB
    wpqk_yoast_indexable_hierarchy: Data: 0.20MB + Index: 0.33MB + Engine InnoDB
    wpqk_yoast_migrations: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpqk_yoast_primary_term: Data: 0.08MB + Index: 0.09MB + Engine InnoDB
    wpqk_yoast_seo_links: Data: 0.08MB + Index: 0.03MB + Engine InnoDB
    wpqk_yoast_seo_meta: Data: 0.33MB + Index: 0.00MB + Engine InnoDB
    
    ### Post Type Counts ###
    
    attachment: 2220
    blocks: 12
    custom_css: 1
    featured_item: 8
    mewz_attribute_stock: 10
    nav_menu_item: 94
    newsletter: 2
    oembed_cache: 3
    page: 19
    post: 1
    postman_sent_mail: 4
    product: 978
    product_variation: 9883
    shop_order: 2960
    shop_order_refund: 14
    ux_template: 3
    woo_discount_cart: 5
    wpcf7_contact_form: 2
    
    ### Security ###
    
    Secure connection (HTTPS): ✔
    Hide errors from visitors: ✔
    
    ### Active Plugins (22) ###
    
    Classic Widgets: by WordPress Contributors – 0.2
    Contact Form 7: by Takayuki Miyoshi – 5.5.4
    Cookie Notice & Compliance for GDPR / CCPA: by Hu-manity.co – 2.2.1
    Google Analytics for WordPress by MonsterInsights: by MonsterInsights – 8.3.0
    Kadence WooCommerce Email Designer: by Kadence WP – 1.4.10
    Mailster AmazonSES Integration: by EverPress – 2.10
    Mailster - Email Newsletter Plugin for WordPress: by EverPress – 3.1
    Nextend Social Login: by Nextendweb – 3.1.3
    Replace the Variable Price range by the chosen variation price in WooCommerce: by Laura Díaz – 2.1
    WooCommerce Weight Based Shipping +: by weightbasedshipping.com – 5.2.6
    Woo Discount Rules: by Flycart Technologies LLP – 1.7.17
    WooCommerce Admin: by WooCommerce – 3.0.3
    WooCommerce Attribute Stock: by Mewz – 1.7.1
    WooCommerce Stripe Gateway: by WooCommerce – 6.0.0
    WooCommerce PDF Invoices & Packing Slips: by WP Overnight – 2.11.4
    WooCommerce PDF Invoices & Packing Slips Premium Templates: by Ewout Fernhout – 2.6.3
    WooCommerce Product Add-ons: by WooCommerce – 3.0.13
    WooCommerce: by Automattic – 6.0.0 (update to version 6.1.1 is available)
    WooSidebars: by WooCommerce – 1.4.5
    Yoast SEO: by Team Yoast – 17.9
    WPS Hide Login: by WPServeur
    NicolasKulka
    wpformation – 1.9.3
    
    YITH WooCommerce Wishlist: by YITH – 3.5.0
    
    ### Inactive Plugins (2) ###
    
    SiteGround Optimizer: by SiteGround – 6.0.5
    SVG Support: by Benbodhi – 2.3.21
    
    ### Dropin Plugins (1) ###
    
    object-cache.php: Memcached
    
    ### Settings ###
    
    API Enabled: ✔
    Force SSL: –
    Currency: GBP (£)
    Currency Position: left
    Thousand Separator: ,
    Decimal Separator: .
    Number of Decimals: 2
    Taxonomies: Product Types: external (external)
    grouped (grouped)
    simple (simple)
    variable (variable)
    
    Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog)
    exclude-from-search (exclude-from-search)
    featured (featured)
    outofstock (outofstock)
    rated-1 (rated-1)
    rated-2 (rated-2)
    rated-3 (rated-3)
    rated-4 (rated-4)
    rated-5 (rated-5)
    
    Connected to WooCommerce.com: –
    
    ### WC Pages ###
    
    Shop base: #7 - /shop/
    Basket: #8 - /cart/
    Checkout: #9 - /checkout/
    My account: #10 - /my-account/
    Terms and conditions: #355 - /terms-conditions/
    
    ### Theme ###
    
    Name: Flatsome
    Version: 3.15.3
    Author URL: http://www.uxthemes.com/
    Child Theme: ❌ – If you are modifying WooCommerce on a parent theme that you did not build
    personally we recommend using a child theme. See: How to create a child theme
    
    WooCommerce Support: ✔
    
    ### Templates ###
    
    Overrides: flatsome/woocommerce/archive-product.php
    flatsome/woocommerce/cart/cart-empty.php
    flatsome/woocommerce/cart/cart-shipping.php
    flatsome/woocommerce/cart/cart.php
    flatsome/woocommerce/checkout/form-checkout.php
    flatsome/woocommerce/checkout/form-coupon.php
    flatsome/woocommerce/checkout/terms.php
    flatsome/woocommerce/checkout/thankyou.php
    flatsome/woocommerce/content-product-cat.php
    flatsome/woocommerce/content-product.php
    flatsome/woocommerce/content-single-product.php
    flatsome/woocommerce/content-widget-product.php
    flatsome/woocommerce/global/breadcrumb.php
    flatsome/woocommerce/global/quantity-input.php
    flatsome/woocommerce/global/wrapper-end.php
    flatsome/woocommerce/global/wrapper-start.php
    flatsome/woocommerce/loop/loop-end.php
    flatsome/woocommerce/loop/loop-start.php
    flatsome/woocommerce/loop/pagination.php
    flatsome/woocommerce/loop/result-count.php
    flatsome/woocommerce/loop/sale-flash.php
    flatsome/woocommerce/myaccount/form-login.php
    flatsome/woocommerce/myaccount/navigation.php
    flatsome/woocommerce/notices/error.php
    flatsome/woocommerce/notices/notice.php
    flatsome/woocommerce/notices/success.php
    flatsome/woocommerce/product-searchform.php
    flatsome/woocommerce/single-product/photoswipe.php
    flatsome/woocommerce/single-product/price.php
    flatsome/woocommerce/single-product/product-image.php
    flatsome/woocommerce/single-product/product-thumbnails.php
    flatsome/woocommerce/single-product/rating.php
    flatsome/woocommerce/single-product/related.php
    flatsome/woocommerce/single-product/review.php
    flatsome/woocommerce/single-product/sale-flash.php
    flatsome/woocommerce/single-product/share.php
    flatsome/woocommerce/single-product/short-description.php
    flatsome/woocommerce/single-product/tabs/tabs.php
    flatsome/woocommerce/single-product/title.php
    flatsome/woocommerce/single-product/up-sells.php
    flatsome/woocommerce/single-product-reviews.php
    flatsome/woocommerce/single-product.php
    flatsome/woocommerce/content-product_cat.php
    
    ### Action Scheduler ###
    
    Complete: 1,653
    Oldest: 2021-12-21 23:54:17 +0000
    Newest: 2022-01-21 16:11:21 +0000
    
    Failed: 2
    Oldest: –
    Newest: –
    
    ### Status report information ###
    
    Generated at: 2022-01-21 22:53:32 +00:00
    
    Thread Starter justas89

    (@justas89)

    no fatal errors found

    Hello there,

    Thanks for sending the System Status Report.

    Regarding the errors, you can check this alternative solution.

    It is highly recommended to use a plugin like Code Snippets to add custom PHP code into your site without directly accessing the functions.php file. Here is an article that explains how to use the Code Snippets plugin:
    https://www.wpbeginner.com/plugins/how-to-easily-add-custom-code-in-wordpress-without-breaking-your-site/

    Let us know if there are any questions.

    • This reply was modified 4 years, 4 months ago by Igor H.
    • This reply was modified 4 years, 4 months ago by Igor H.
    Thread Starter justas89

    (@justas89)

    function add_cors_http_header(){
        header("Access-Control-Allow-Origin: *");
    }
    add_action('init','add_cors_http_header');

    Hi do you mean add this to my functions.php?

    @justas89

    To modify the core functions of your theme, you need to modify the functions.php, however, it’ll get wiped once you update that theme.

    To guide against this, you can use the code snippets to add the code above.

    Thread Starter justas89

    (@justas89)

    yes, I understand that, but after testing and adding to functions.php it does not work. still the same issue.

    Hi @justas89

    You mentioned that this problem started after Siteground updated your CDN.

    Can you please have them disable any server side caching if present?

    Thread Starter justas89

    (@justas89)

    Right, contacted today siteground, they cant see any issues from they side.
    I disconnected all plugins, Cloudflare. no error.
    after reactivation woo-commerce plugin (only this one) i got same errors

    Access to fetch at 'https://www.craftshapesdirect.co.uk/wp-json/wc-admin/onboarding/tasks?_locale=user' from origin 'https://craftshapesdirect.co.uk' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: The 'Access-Control-Allow-Origin' header contains multiple values 'https://craftshapesdirect.co.uk, *', but only one is allowed. Have the server send the header with a valid value, or, if an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.

    Thread Starter justas89

    (@justas89)

    Error on Dashboard Side https://ibb.co/LZdTCNr

    Hi @justas89!

    just to clarify it a bit more, the XMLHttpRequest is used to request data from a server.

    Whenever you need to use that object or even Fetch API, for security reasons they follow the same-origin policy, which means, you can only request resources from the same origin the application was loaded from.

    Do you know what exactly has been updated on your CDN? Maybe, as Margaret mentioned, clearing up your cache can solve it.

    Thread Starter justas89

    (@justas89)

    thank you for your time guys, found a problem in wp-config, siteground forced http to hhtps, this coused error

    Hi @justas89!

    Glad to hear you found the culprit and the issue got solved!

    Thank you for sharing the solution with everybody.

    I’ll mark this thread as resolved now. If you have any further questions, I recommend creating a new one.

    Cheers!

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

The topic ‘Woocommerce plugin and CORS errors’ is closed to new replies.