Console Errors on /admin.php?page=wc-admin at least in 7.8.0
-
Hello WooCommerce Team,
we just notice the following console errors / 404s in the page /admin.php?page=wc-admin from all of our WC installations. We don’t know if it is in lower versions, but at least it is to be found in all of our 7.8.0 installations:
sprintf error: TypeError: [sprintf] expecting number but found string i18n.min.js:2:433
XHRGET https://DOMAIN.TLD/wp-json/jetpack/v4/connection?_locale=user
[HTTP/2 404 Not Found 2708ms]
XHRGET https://DOMAIN.TLD/wp-json/jetpack/v4/connection/data?_locale=user
[HTTP/2 404 Not Found 2175ms]Greetings,
-doffine
-
Hello @beautyofcode
would you be able to assist with this?
We see this error in all of our 20 WC installations and we are running the latest WooCommerce, WordPress Version 6.2.2 and PHP 8.1 on several different servers.
Greetings,
-doffineHi @doffine
Thanks for reaching out!
I understand that you are receiving the console errors above in all of your WooCommerce installations.
I’d like to understand your site properly. Please share with us the necessary information below for us to investigate the issue further:
- System Status Report which you can find via
WooCommerce > Status > Get system report > Copy for support
. - Fatal error logs (if any) under WooCommerce > Status > Logs.
You could copy and paste your reply here or paste it via https://gist.github.com/ and send the link here.
Once we have more information, we’ll be able to assist you further.
here you go:
WordPress Environment WordPress address (URL): https://www.domain.tld
Site address (URL): https://www.domain.tld
WC Version: 7.8.0
REST API Version: ? 7.8.0
WC Blocks Version: ? 10.2.3
Action Scheduler Version: ? 3.5.4
Log Directory Writable: ?
WP Version: 6.2.2
WP Multisite: –
WP Memory Limit: 512 MB
WP Debug Mode: –
WP Cron: ?
Language: de_DE
External object cache: – Server Environment Server Info: Apache
PHP Version: 8.1.16
PHP Post Max Size: 200 MB
PHP Time Limit: 180
PHP Max Input Vars: 3000
cURL Version: 7.68.0
OpenSSL/1.1.1f SUHOSIN Installed: –
MySQL Version: 10.5.19-MariaDB-1:10.5.19+maria~ubu2004-log
Max Upload Size: 200 MB
Default Timezone is UTC: ?
fsockopen/cURL: ?
SoapClient: ?
DOMDocument: ?
GZip: ?
Multibyte String: ?
Remote Post: ?
Remote Get: ? Database WC Database Version: 7.8.0
WC Database Prefix: wp_
Datenbank-Gesamtgr??e: 44.81MB
Datenbank-Datengr??e: 44.06MB
Datenbank-Indexgr??e: 0.75MB
wp_woocommerce_sessions: Daten: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_woocommerce_api_keys: Daten: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_woocommerce_attribute_taxonomies: Daten: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_woocommerce_downloadable_product_permissions: Daten: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_woocommerce_order_items: Daten: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_woocommerce_order_itemmeta: Daten: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_woocommerce_tax_rates: Daten: 0.01MB + Index: 0.01MB + Engine MyISAM
wp_woocommerce_tax_rate_locations: Daten: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_woocommerce_shipping_zones: Daten: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_woocommerce_shipping_zone_locations: Daten: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_woocommerce_shipping_zone_methods: Daten: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_woocommerce_payment_tokens: Daten: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_woocommerce_payment_tokenmeta: Daten: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_woocommerce_log: Daten: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_actionscheduler_actions: Daten: 0.10MB + Index: 0.04MB + Engine MyISAM
wp_actionscheduler_claims: Daten: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_actionscheduler_groups: Daten: 0.00MB + Index: 0.01MB + Engine MyISAM
wp_actionscheduler_logs: Daten: 0.06MB + Index: 0.05MB + Engine MyISAM
wp_borlabs_cookie_consent_log: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB
wp_borlabs_cookie_content_blocker: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB
wp_borlabs_cookie_cookies: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_borlabs_cookie_groups: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB
wp_borlabs_cookie_script_blocker: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB
wp_borlabs_cookie_statistics: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_commentmeta: Daten: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_comments: Daten: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_duplicator_pro_entities: Daten: 0.04MB + Index: 0.00MB + Engine MyISAM
wp_duplicator_pro_packages: Daten: 21.53MB + Index: 0.08MB + Engine MyISAM
wp_fusion_forms: Daten: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_fusion_form_entries: Daten: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_fusion_form_fields: Daten: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_fusion_form_submissions: Daten: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_iwp_backup_status: Daten: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_iwp_processed_iterator: Daten: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_links: Daten: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_ms_snippets: Daten: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_nextend2_image_storage: Daten: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_nextend2_section_storage: Daten: 0.04MB + Index: 0.01MB + Engine MyISAM
wp_nextend2_smartslider3_generators: Daten: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_nextend2_smartslider3_sliders: Daten: 0.02MB + Index: 0.00MB + Engine MyISAM
wp_nextend2_smartslider3_sliders_xref: Daten: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_nextend2_smartslider3_slides: Daten: 0.03MB + Index: 0.01MB + Engine MyISAM
wp_options: Daten: 6.99MB + Index: 0.10MB + Engine MyISAM
wp_postmeta: Daten: 0.37MB + Index: 0.07MB + Engine MyISAM
wp_posts: Daten: 14.53MB + Index: 0.06MB + Engine MyISAM
wp_snippets: Daten: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_termmeta: Daten: 0.01MB + Index: 0.01MB + Engine MyISAM
wp_terms: Daten: 0.00MB + Index: 0.01MB + Engine MyISAM
wp_term_relationships: Daten: 0.00MB + Index: 0.01MB + Engine MyISAM
wp_term_taxonomy: Daten: 0.00MB + Index: 0.01MB + Engine MyISAM
wp_usermeta: Daten: 0.01MB + Index: 0.01MB + Engine MyISAM
wp_users: Daten: 0.00MB + Index: 0.01MB + Engine MyISAM
wp_wc_admin_notes: Daten: 0.07MB + Index: 0.00MB + Engine MyISAM
wp_wc_admin_note_actions: Daten: 0.04MB + Index: 0.01MB + Engine MyISAM
wp_wc_category_lookup: Daten: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_wc_customer_lookup: Daten: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_wc_download_log: Daten: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_wc_order_coupon_lookup: Daten: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_wc_order_product_lookup: Daten: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_wc_order_stats: Daten: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_wc_order_tax_lookup: Daten: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_wc_product_attributes_lookup: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB
wp_wc_product_download_directories: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB
wp_wc_product_meta_lookup: Daten: 0.00MB + Index: 0.01MB + Engine MyISAM
wp_wc_rate_limits: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB
wp_wc_reserved_stock: Daten: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_wc_tax_rate_classes: Daten: 0.00MB + Index: 0.01MB + Engine MyISAM
wp_wc_webhooks: Daten: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_woocommerce_gzd_dhl_im_products: Daten: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_woocommerce_gzd_dhl_im_product_services: Daten: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_woocommerce_gzd_dhl_labelmeta: Daten: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_woocommerce_gzd_dhl_labels: Daten: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_woocommerce_gzd_packaging: Daten: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_woocommerce_gzd_packagingmeta: Daten: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_woocommerce_gzd_shipmentmeta: Daten: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_woocommerce_gzd_shipments: Daten: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_woocommerce_gzd_shipment_itemmeta: Daten: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_woocommerce_gzd_shipment_items: Daten: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_woocommerce_gzd_shipment_labelmeta: Daten: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_woocommerce_gzd_shipment_labels: Daten: 0.00MB + Index: 0.00MB + Engine MyISAM
wp_woocommerce_gzd_shipping_provider: Daten: 0.00MB + Index: 0.01MB + Engine MyISAM
wp_woocommerce_gzd_shipping_providermeta: Daten: 0.01MB + Index: 0.01MB + Engine MyISAM
wp_wpfm_backup: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB Post Type Counts attachment: 74
custom-css-js: 8
flamingo_contact: 5
fusion_tb_section: 2
nav_menu_item: 29
note: 2
page: 16
post: 3
product: 6
revision: 383
slide: 3
wpcf7_contact_form: 2 Security Secure connection (HTTPS): ?
Hide errors from visitors: ? Active Plugins (26) InfiniteWP - Client: von Revmakx – 1.12.3
Advanced Access Manager: von Vasyl Martyniuk [email protected] – 6.9.12
Borlabs Cookie - Cookie Opt-in: von Borlabs GmbH – 2.2.64
Borlabs Font Blocker: von Borlabs GmbH – 1.0.5
Clean Image Filenames: von Upperdog – 1.4
Code Snippets: von Code Snippets Pro – 3.4.0
Honeypot for Contact Form 7: von Nocean – 2.1.1
Contact Form 7: von Takayuki Miyoshi – 5.7.7
Simple Custom CSS and JS: von SilkyPress.com – 3.44
Disable Author Archives: von freemp – 1.3.1
Disable Comments: von WPDeveloper – 2.4.4
Disable Search: von Scott Reilly – 2.0
Duplicator Pro: von Duplicator – 4.5.12
eRecht24 Rechtstexte für WordPress: von eRecht24
Weslink GmbH – 3.3.8 Flamingo: von Takayuki Miyoshi – 2.4
Avada Builder: von ThemeFusion – 3.11.0
Avada Core: von ThemeFusion – 5.11.0
Imsanity: von Exactly WWW – 2.8.2
Maintenance: von WebFactory Ltd – 4.07
Smart Slider 3 Pro: von Nextend – 3.5.1.17
One Stop Shop für WooCommerce: von vendidero – 1.3.8
Really Simple SSL: von Really Simple Plugins – 7.0.5
Regenerate Thumbnails: von Alex Mills (Viper007Bond) – 3.1.5
Germanized für WooCommerce: von vendidero – 3.13.2
WooCommerce: von Automattic – 7.8.0
WP Dashboard Notes: von Jeroen Sormani – 1.0.10 Inactive Plugins (0) Must Use Plugins (2) InfiniteWP - Client Loader: von Revmakx – 1.0.1 Settings API Enabled: –
Force SSL: –
Currency: EUR (€)
Currency Position: right_space
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: –
Enforce Approved Product Download Directories: –
HPOS feature screen enabled: –
HPOS feature enabled: –
Order datastore: WC_Order_Data_Store_CPT
HPOS data sync enabled: – WC Pages Shop-Basis: #16557 - /shop/
Warenkorb: #16564 - /warenkorb/
Kasse: #16586 - /kasse/
Mein Konto: #16576 - /mein-konto/
Allgemeine Gesch?ftsbedingungen: #3153 - /agb/ Theme Name: Avada
Version: 7.11.0
Author URL: https://themeforest.net/user/ThemeFusion
Child Theme: ? – Wenn du WooCommerce mit einem Theme
das du nicht selbst entwickelt hast
an eigene Bedürfnisse anpasst
dann empfehlen wir die Verwendung eines Child-Themes. Siehe Wie du ein Child-Theme erstellst (engl.) WooCommerce Support: ? Templates Overrides: Avada/woocommerce/cart/cart.php
Avada/woocommerce/checkout/form-pay.php
Avada/woocommerce/checkout/review-order.php
Avada/woocommerce/checkout/thankyou.php
Avada/woocommerce/loop/loop-start.php
Avada/woocommerce/single-product/add-to-cart/variable.php
Avada/woocommerce/single-product/short-description.php
Avada/woocommerce/single-product/tabs/additional-information.php
Avada/woocommerce/single-product/tabs/description.php Admin Enabled Features: activity-panels
analytics
product-block-editor
coupons
customer-effort-score-tracks
import-products-task
experimental-fashion-sample-products
shipping-smart-defaults
shipping-setting-tour
homescreen
marketing
mobile-app-banner
navigation
onboarding
onboarding-tasks
remote-inbox-notifications
remote-free-extensions
payment-gateway-suggestions
shipping-label-banner
subscriptions
store-alerts
transient-notices
woo-mobile-welcome
wc-pay-promotion
wc-pay-welcome-page Disabled Features: core-profiler
minified-js
new-product-management-experience
product-variation-management
settings
async-product-editor-category-field Daily Cron: ? Next scheduled: 2023-06-23 08:42:03 +02:00
Options: ?
Notes: 158
Onboarding: completed Action Scheduler Abgeschlossen: 206
Oldest: 2023-05-23 10:15:35 +0200
Newest: 2023-06-22 04:44:36 +0200 Fehlgeschlagen: 10
Oldest: 2023-02-20 18:06:40 +0100
Newest: 2023-06-13 15:21:12 +0200 Ausstehend: 6
Oldest: 2023-06-23 03:23:46 +0200
Newest: 2023-06-23 03:23:46 +0200 Status report information Generated at: 2023-06-22 15:31:19 +02:00
`Hi there @doffine
As I understand, (almost or) all of the WooCommerce sites you are managing have the same set-up regarding plugins. Correct?
Just to clarify, the two following items, please:
- Does the issue persist with only the WooCommerce plugin active, or otherwise?
- As a guide, we recommend PHP version 7.4 and up to version 8.0 (for PHP 8.1, please note that there is an issue documented on?GitHub). Can you test with PHP version 8.0 also, please?
Let us know how that goes.
Hello @anastas10s,
- We just deactivated all other plugins and even the Avada theme and the issue persisted.
- We also switched back to PHP 7.4 and PHP 8.0 and in both cases the issue persisted, too.
In the same moment we don’t see the parallel to your GitHub issue link. We just have those 404 and the sprintf error just on the /admin.php?page=wc-admin page. We additionally updated WooCommerce to the current 7.9.0 and this, too, didn’t solve this issue.
What can we do next to pinpoint and solve the problem?
Thanks a lot and many greetings,
-doffineHi @doffine
We appreciate your patience and understand the issues you’re experiencing with the console errors and 404s on your WooCommerce installations.
The first error you see, sprintf error: TypeError: [sprintf] expecting number but found string i18n.min.js:2:433, seems to be a JavaScript error, possibly due to a conflict with a plugin or your theme. The sprintf function expects a number, but it’s receiving a string. This could be due to a mismatch in the data types being passed to the sprintf function.
Although you already did, but to troubleshoot this, I suggest you try disabling all plugins (except WooCommerce) again and switch to the default Storefront theme. If the error disappears, then it’s likely a conflict with your theme or one of the plugins. You can then enable them one by one to identify the culprit. You can find a more detailed explanation of conducting a conflict test here.
The second and third errors,
XHRGET https://DOMAIN.TLD/wp-json/jetpack/v4/connection?_locale=user [HTTP/2 404 Not Found 2708ms]
andXHRGET https://DOMAIN.TLD/wp-json/jetpack/v4/connection/data?_locale=user [HTTP/2 404 Not Found 2175ms]
, are HTTP 404 errors indicating that the requested resources could not be found on your server. You seem to be trying to access Jetpack’s REST API endpoints, but they’re unavailable.Make sure that the Jetpack plugin is installed and connected to your WordPress.com account. If it is and you’re still seeing these errors, it could be due to a server configuration issue blocking access to these API endpoints. You might need to check with your hosting provider to ensure that the WordPress REST API is not being blocked.
For further information on the Jetpack connection issue, you can follow our detailed guide here:
- https://jetpack.com/support/getting-started-with-jetpack/fixing-jetpack-connection-issues/
- https://jetpack.com/support/getting-started-with-jetpack/what-do-these-error-messages-mean/
Please let us know if these steps help in resolving your issues, or if you need further assistance. Thanks!
Hello @shameemreza,
sorry for us not coming back to you for so long. Meanwhile the 2nd and 3rd XHRGET 404 errors disappeared without us having done anything.
But the initial sprintf console error still persists, although we have updated to WordPress 6.3.1 and WooCommerce 8.1.1.
sprintf error: TypeError: [sprintf] expecting number but found string i18n.min.js:2:4963 o https://DOMAIN.TLD/wp-includes/js/dist/i18n.min.js?ver=7701b0c3857f914212ef:2 o https://DOMAIN.TLD/wp-includes/js/dist/i18n.min.js?ver=7701b0c3857f914212ef:2 Ud https://DOMAIN.TLD/wp-content/plugins/woocommerce/assets/client/admin/components/index.js?ver=8.1.1:2 wt https://DOMAIN.TLD/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.2.0:10 js https://DOMAIN.TLD/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.2.0:10 wl https://DOMAIN.TLD/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.2.0:10 bl https://DOMAIN.TLD/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.2.0:10 yl https://DOMAIN.TLD/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.2.0:10 fl https://DOMAIN.TLD/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.2.0:10 Nn https://DOMAIN.TLD/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.2.0:10 ul https://DOMAIN.TLD/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.2.0:10
As you suggested we again deactivated all plugins except WooCommerce and we switched to Storefront theme, but still the console issue persisted.
As we see this sprintf error in over 20 very heterogenous WooCommerce installations – all in those is updated to the very latest versions – on different servers in different data centers we really ask ourselves what still can cause this.
What do you suggest to pinpoint this sprintf error?
Greetings and thanks for all your good work,
-doffineHi @doffine !
Thank you for the update. The issue you are experiencing appears to be with the translation files. I can see that the provided SSR uses German – is that true for all the other sites as well?
Also, can you please let us know where in the site you get this error?
Thank you!
Hello @rdeari,
thank you for coming back to us.
Here are our answers:- Yes, indeed, all other sites that have this issue are running German, too. Because of your assumption we changed the language of one of the WP installations from German to English and voilà: The console error was gone. In the moment we changed the language back to German, the console error was back.
- The console error seems only to happen on the home page of WooCommerce: /wp-admin/admin.php?page=wc-admin
Greetings,
-doffineHi again @doffine!
I can replicate this too. Will file a bug report with the devs and share that here with you. But from what I can see the issue appears to be here:
val: t.apply(null, o)
That should probably be
val: t.apply(null, 0)
For now, feel free to keep the sites in German as this does not appear to be causing any issues apart from throwing this error.
Thank you!
@doffine here is the bug report: https://github.com/woocommerce/woocommerce/issues/40435
Please monitor that and continue the conversation there if needed. I will go ahead and mark this thread as resolved for now ??
Have a great rest of the day!
- System Status Report which you can find via
- The topic ‘Console Errors on /admin.php?page=wc-admin at least in 7.8.0’ is closed to new replies.