Critical error since last update
-
Hi, we have updated to the latest version 2.1.6 and a critical error has raised since that moment, here the error details :
2023-02-06T21:55:58+00:00 CRITICAL Uncaught ArgumentCountError: 5 arguments are required, 4 given in /nas/content/live/<omitted>/wp-content/plugins/woocommerce-wholesale-prices/includes/class-wwp-settings.php:341 Stack trace: #0 /nas/content/live/<omitted>/wp-content/plugins/woocommerce-wholesale-prices/includes/class-wwp-settings.php(341): sprintf('<div class="wwp...', 'https://www.xxx...', 'https://www.xxx...', 'https://wholesa...') #1 /nas/content/live/<omitted>/wp-content/plugins/woocommerce-wholesale-prices/includes/class-wwp-settings.php(209): WWP_Settings->_get_general_section_settings() #2 /nas/content/live/<omitted>/wp-content/plugins/woocommerce/includes/class-wc-install.php(801): WWP_Settings->get_settings('')
Could you give a check on this?
Thanks
-
Hi @lincetto,
It would be great if you could send me all the information from the WooCommerce -> System Status page. There’s a little button there that will let you copy and paste it to me: https://snipboard.io/eOc7jD.jpg
Hi @fauzanade, here the status report.
` ### WordPress Environment ### WordPress address (URL): https://www.<omitted>.it Site address (URL): https://www.<omitted>.it WC Version: 7.3.0 REST API Version: ? 7.3.0 WC Blocks Version: ? 9.1.5 Action Scheduler Version: ? 3.5.2 Log Directory Writable: ? WP Version: 6.1.1 WP Multisite: – WP Memory Limit: 512 MB WP Debug Mode: – WP Cron: ? Language: it_IT External object cache: ? ### Server Environment ### Server Info: nginx PHP Version: 8.0.27 PHP Post Max Size: 100 MB PHP Time Limit: 43300 PHP Max Input Vars: 10000 cURL Version: 7.81.0 OpenSSL/3.0.2 SUHOSIN Installed: – MySQL Version: 5.7.40-43-log Max Upload Size: 50 MB Default Timezone is UTC: ? fsockopen/cURL: ? SoapClient: ? DOMDocument: ? GZip: ? Multibyte String: ? Remote Post: ? Remote Get: ? ### Database ### WC Database Version: 7.2.2 WC Database Prefix: wp_ Dimensione totale database: 187.50MB Dimensione dati database: 121.48MB Dimensione indice database: 66.02MB wp_woocommerce_sessions: Dati: 1.02MB + indice: 0.02MB + motore InnoDB wp_woocommerce_api_keys: Dati: 0.02MB + indice: 0.03MB + motore InnoDB wp_woocommerce_attribute_taxonomies: Dati: 0.02MB + indice: 0.02MB + motore InnoDB wp_woocommerce_downloadable_product_permissions: Dati: 0.02MB + indice: 0.06MB + motore InnoDB wp_woocommerce_order_items: Dati: 0.47MB + indice: 0.17MB + motore InnoDB wp_woocommerce_order_itemmeta: Dati: 4.52MB + indice: 4.94MB + motore InnoDB wp_woocommerce_tax_rates: Dati: 0.02MB + indice: 0.06MB + motore InnoDB wp_woocommerce_tax_rate_locations: Dati: 0.02MB + indice: 0.03MB + motore InnoDB wp_woocommerce_shipping_zones: Dati: 0.02MB + indice: 0.00MB + motore InnoDB wp_woocommerce_shipping_zone_locations: Dati: 0.02MB + indice: 0.03MB + motore InnoDB wp_woocommerce_shipping_zone_methods: Dati: 0.02MB + indice: 0.00MB + motore InnoDB wp_woocommerce_payment_tokens: Dati: 0.02MB + indice: 0.02MB + motore InnoDB wp_woocommerce_payment_tokenmeta: Dati: 0.02MB + indice: 0.03MB + motore InnoDB wp_woocommerce_log: Dati: 0.02MB + indice: 0.02MB + motore InnoDB wp_actionscheduler_actions: Dati: 4.02MB + indice: 9.11MB + motore InnoDB wp_actionscheduler_claims: Dati: 0.02MB + indice: 0.02MB + motore InnoDB wp_actionscheduler_groups: Dati: 0.02MB + indice: 0.02MB + motore InnoDB wp_actionscheduler_logs: Dati: 3.02MB + indice: 3.03MB + motore InnoDB wp_atum_order_itemmeta: Dati: 0.02MB + indice: 0.03MB + motore InnoDB wp_atum_order_items: Dati: 0.02MB + indice: 0.02MB + motore InnoDB wp_atum_product_data: Dati: 0.08MB + indice: 0.05MB + motore InnoDB wp_cli_cookie_scan: Dati: 0.02MB + indice: 0.00MB + motore InnoDB wp_cli_cookie_scan_categories: Dati: 0.02MB + indice: 0.02MB + motore InnoDB wp_cli_cookie_scan_cookies: Dati: 0.02MB + indice: 0.03MB + motore InnoDB wp_cli_cookie_scan_url: Dati: 0.02MB + indice: 0.00MB + motore InnoDB wp_cli_scripts: Dati: 0.02MB + indice: 0.00MB + motore InnoDB wp_commentmeta: Dati: 0.08MB + indice: 0.08MB + motore InnoDB wp_comments: Dati: 2.52MB + indice: 1.77MB + motore InnoDB wp_links: Dati: 0.02MB + indice: 0.02MB + motore InnoDB wp_mailchimp_carts: Dati: 0.25MB + indice: 0.00MB + motore InnoDB wp_mailchimp_jobs: Dati: 0.02MB + indice: 0.00MB + motore InnoDB wp_options: Dati: 1.14MB + indice: 0.13MB + motore InnoDB wp_postmeta: Dati: 17.55MB + indice: 14.70MB + motore InnoDB wp_posts: Dati: 5.48MB + indice: 0.91MB + motore InnoDB wp_redirection_404: Dati: 1.02MB + indice: 0.27MB + motore InnoDB wp_redirection_groups: Dati: 0.02MB + indice: 0.03MB + motore InnoDB wp_redirection_items: Dati: 1.52MB + indice: 1.08MB + motore InnoDB wp_redirection_logs: Dati: 0.05MB + indice: 0.05MB + motore InnoDB wp_termmeta: Dati: 0.08MB + indice: 0.03MB + motore InnoDB wp_terms: Dati: 0.02MB + indice: 0.03MB + motore InnoDB wp_term_relationships: Dati: 0.14MB + indice: 0.11MB + motore InnoDB wp_term_taxonomy: Dati: 0.02MB + indice: 0.03MB + motore InnoDB wp_usermeta: Dati: 24.06MB + indice: 23.06MB + motore InnoDB wp_users: Dati: 2.52MB + indice: 1.53MB + motore InnoDB wp_user_registration_sessions: Dati: 0.02MB + indice: 0.02MB + motore InnoDB wp_wc_admin_notes: Dati: 0.06MB + indice: 0.00MB + motore InnoDB wp_wc_admin_note_actions: Dati: 0.05MB + indice: 0.02MB + motore InnoDB wp_wc_category_lookup: Dati: 0.02MB + indice: 0.00MB + motore InnoDB wp_wc_customer_lookup: Dati: 0.09MB + indice: 0.06MB + motore InnoDB wp_wc_download_log: Dati: 0.02MB + indice: 0.03MB + motore InnoDB wp_wc_fs_licensed_products: Dati: 0.02MB + indice: 0.02MB + motore InnoDB wp_wc_fs_product_licenses_keys: Dati: 0.11MB + indice: 0.00MB + motore InnoDB wp_wc_fs_product_licenses_keys_generator_rules: Dati: 0.05MB + indice: 0.02MB + motore InnoDB wp_wc_order_coupon_lookup: Dati: 0.02MB + indice: 0.03MB + motore InnoDB wp_wc_order_product_lookup: Dati: 0.41MB + indice: 0.41MB + motore InnoDB wp_wc_order_stats: Dati: 0.25MB + indice: 0.25MB + motore InnoDB wp_wc_order_tax_lookup: Dati: 0.14MB + indice: 0.14MB + motore InnoDB wp_wc_product_attributes_lookup: Dati: 0.02MB + indice: 0.02MB + motore InnoDB wp_wc_product_download_directories: Dati: 0.02MB + indice: 0.02MB + motore InnoDB wp_wc_product_meta_lookup: Dati: 0.11MB + indice: 0.13MB + motore InnoDB wp_wc_rate_limits: Dati: 0.02MB + indice: 0.02MB + motore InnoDB wp_wc_reserved_stock: Dati: 0.02MB + indice: 0.00MB + motore InnoDB wp_wc_tax_rate_classes: Dati: 0.02MB + indice: 0.02MB + motore InnoDB wp_wc_webhooks: Dati: 0.02MB + indice: 0.02MB + motore InnoDB wp_wfblockediplog: Dati: 0.11MB + indice: 0.00MB + motore InnoDB wp_wfblocks7: Dati: 0.02MB + indice: 0.05MB + motore InnoDB wp_wfconfig: Dati: 4.03MB + indice: 0.00MB + motore InnoDB wp_wfcrawlers: Dati: 0.02MB + indice: 0.00MB + motore InnoDB wp_wffilechanges: Dati: 0.02MB + indice: 0.00MB + motore InnoDB wp_wffilemods: Dati: 11.52MB + indice: 0.00MB + motore InnoDB wp_wfhits: Dati: 1.02MB + indice: 0.19MB + motore InnoDB wp_wfhoover: Dati: 0.02MB + indice: 0.02MB + motore InnoDB wp_wfissues: Dati: 0.02MB + indice: 0.06MB + motore InnoDB wp_wfknownfilelist: Dati: 5.52MB + indice: 0.00MB + motore InnoDB wp_wflivetraffichuman: Dati: 0.02MB + indice: 0.02MB + motore InnoDB wp_wflocs: Dati: 0.02MB + indice: 0.00MB + motore InnoDB wp_wflogins: Dati: 0.45MB + indice: 0.16MB + motore InnoDB wp_wfls_2fa_secrets: Dati: 0.02MB + indice: 0.02MB + motore InnoDB wp_wfls_settings: Dati: 0.02MB + indice: 0.00MB + motore InnoDB wp_wfnotifications: Dati: 0.02MB + indice: 0.00MB + motore InnoDB wp_wfpendingissues: Dati: 0.02MB + indice: 0.06MB + motore InnoDB wp_wfreversecache: Dati: 0.02MB + indice: 0.00MB + motore InnoDB wp_wfsnipcache: Dati: 0.02MB + indice: 0.05MB + motore InnoDB wp_wfstatus: Dati: 0.13MB + indice: 0.11MB + motore InnoDB wp_wftrafficrates: Dati: 0.02MB + indice: 0.00MB + motore InnoDB wp_wfwafconfig: Dati: 3.02MB + indice: 0.00MB + motore InnoDB wp_wpforms_entries: Dati: 0.02MB + indice: 0.02MB + motore InnoDB wp_wpforms_entry_fields: Dati: 0.02MB + indice: 0.05MB + motore InnoDB wp_wpforms_entry_meta: Dati: 0.02MB + indice: 0.02MB + motore InnoDB wp_wpforms_tasks_meta: Dati: 0.16MB + indice: 0.00MB + motore InnoDB wp_wpmailsmtp_attachment_files: Dati: 0.05MB + indice: 0.02MB + motore InnoDB wp_wpmailsmtp_debug_events: Dati: 0.06MB + indice: 0.00MB + motore InnoDB wp_wpmailsmtp_emails_log: Dati: 14.02MB + indice: 0.11MB + motore InnoDB wp_wpmailsmtp_email_attachments: Dati: 0.05MB + indice: 0.06MB + motore InnoDB wp_wpmailsmtp_tasks_meta: Dati: 0.02MB + indice: 0.00MB + motore InnoDB wp_wss_log: Dati: 0.06MB + indice: 0.00MB + motore InnoDB wp_wt_iew_action_history: Dati: 1.52MB + indice: 0.00MB + motore InnoDB wp_wt_iew_mapping_template: Dati: 0.02MB + indice: 0.00MB + motore InnoDB wp_yoast_indexable: Dati: 6.48MB + indice: 1.83MB + motore InnoDB wp_yoast_indexable_hierarchy: Dati: 1.06MB + indice: 0.11MB + motore InnoDB wp_yoast_migrations: Dati: 0.02MB + indice: 0.02MB + motore InnoDB wp_yoast_primary_term: Dati: 0.02MB + indice: 0.03MB + motore InnoDB wp_yoast_prominent_words: Dati: 0.02MB + indice: 0.05MB + motore InnoDB wp_yoast_seo_links: Dati: 0.25MB + indice: 0.14MB + motore InnoDB ### Post Type Counts ### afreg_fields: 2 attachment: 2662 blocks: 21 cookielawinfo: 6 custom_css: 1 def_reg_fields: 10 mc4wp-form: 1 nav_menu_item: 55 oembed_cache: 1 page: 16 post: 15 product: 601 product-feed: 1 revision: 4 shop_order: 1548 shop_order_refund: 46 user_registration: 1 ux_template: 2 wc_custom_statuses: 8 wp_global_styles: 1 wpcf7_contact_form: 2 wpforms: 3 ### Security ### Secure connection (HTTPS): ? Hide errors from visitors: ? ### Active Plugins (44) ### FS License Manager: by Firas Saidi – 4.2 AfterShip Tracking - All-In-One WooCommerce Order Tracking (Free plan available): by AfterShip – 1.15.8 Auto Upload Images: by Ali Irani – 3.3.2 Contact Form 7: by Takayuki Miyoshi – 5.7.3 Duplica pagina: by mndpsingh287 – 4.5.1 EAN for WooCommerce: by WPFactory – 4.4.4 Gestpay for WooCommerce: by Axerve (Gruppo Banca Sella) – 20221130 Google Tag Manager for WooCommerce PRO: by Handcraft Byte – 1.5.2 Hide Price and Add to Cart Button: by Addify – 1.2.6 Loco Translate: by Tim Whitlock – 2.6.3 Mailchimp for WooCommerce: by Mailchimp – 2.7.6 MC4WP: Mailchimp for WordPress: by ibericode – 4.9.1 MB ImageChimp RSS Feed Enhancer: by Mikkel Breum – 1.0 Members: by MemberPress – 3.2.2 OptinMonster: by OptinMonster Popup Builder Team – 2.12.1 Product Import Export for WooCommerce: by WebToffee – 2.2.7 Redirection: by John Godley – 5.3.9 Regenerate product lookup table for WooCommerce: by Suman Bhattarai – 1.0.2 Search Exclude: by Roman Pronskiy – 1.3.0 Ultimate FAQ - WordPress FAQ and Accordion Plugin: by – 2.2.4 Campi di registrazione utente personalizzati per WooCommerce: by Addify – 1.7.6 Import Export WordPress Users and WooCommerce Customers: by WebToffee – 2.3.7 WC Hide Shipping Methods: by Rynaldo Stoltz – 1.5 WooCommerce Weight Based Shipping: by weightbasedshipping.com – 5.4.0 Checkout Field Editor for WooCommerce: by ThemeHigh – 1.8.1 Advanced Order Export For WooCommerce: by AlgolPlus – 3.3.3 Stock Sync for WooCommerce Pro: by Lauri Karisola / WP Trio – 2.3.4 Print Invoice & Delivery Notes for WooCommerce: by Tyche Softwares – 4.7.2 WooCommerce PayPal Payments: by WooCommerce – 2.0.2 WooCommerce Product Stock Alert: by WC Marketplace – 1.7.5 WooCommerce Order Status & Actions Manager: by Actuality Extensions – 2.4.11 WooCommerce Wholesale Prices Premium: by Rymera Web Co – 1.27.9 WooCommerce Wholesale Prices: by Rymera Web Co – 2.1.6 WooCommerce: by Automattic – 7.3.0 Wordfence Security: by Wordfence – 7.8.2 Importatore WordPress: by wordpressdotorg – 0.8 Yoast SEO Premium: by Team Yoast – 20.1 Yoast SEO: by Team Yoast – 20.1 WP Crontrol: by John Blackbourn e collaboratori – 1.15.1 WP Mail SMTP Pro: by WPForms – 3.7.0 WP Rollback: by GiveWP.com – 1.7.3 Yoast SEO: WooCommerce: by Team Yoast – 14.7 YellowPencil: by WaspThemes – 7.5.8 YITH Pre-Order for WooCommerce Premium: by YITH – 2.10.0 ### Inactive Plugins (4) ### FG PrestaShop to WooCommerce Premium: by Frédéric GILLES – 4.25.0 Stock Sync for WooCommerce: by Lauri Karisola / WP Trio – 2.3.2 WP Mail SMTP: by WPForms – 3.7.0 YITH Cost of Goods for WooCommerce: by YITH – 1.13.0 ### Dropin Plugins (2) ### advanced-cache.php: advanced-cache.php object-cache.php: Memcached Redux ### Must Use Plugins (5) ### Force Strong Passwords - WPE Edition: by Jason Cosper – 1.8.0 WP Engine Cache Plugin: by WP Engine – 1.1.2 WP Engine Seamless Login Plugin: by WP Engine – 1.6.0 WP Engine Security Auditor: by wpengine – 1.0.10 WP Engine System: by WP Engine – 5.0.1 ### Settings ### API Enabled: – Force SSL: – Currency: EUR (€) Currency Position: left_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: – Order datastore: WC_Order_Data_Store_CPT ### WC Pages ### Shop base: #236803 - /negozio/ Carrello: #10 - /cart/ Pagamento: #11 - /checkout/ Il mio account: #12 - /my-account/ Termini e condizioni: #11682 - /termini-e-condizioni/ ### Theme ### Name: Flatsome Child Version: 3.0 Author URL: Child Theme: ? Parent Theme Name: Flatsome Parent Theme Version: 3.16.5 Parent Theme Author URL: https://uxthemes.com 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/rating.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 ### WooCommerce PayPal Payments ### Onboarded: ? Shop country code: IT WooCommerce currency supported: ? Advanced Card Processing available in country: ? Pay Later messaging available in country: ? Webhook status: ? Vault enabled: ? Logging enabled: ? Reference Transactions: – Used PayPal Checkout plugin: ? Tracking enabled: ? ### Admin ### Enabled Features: activity-panels analytics coupons customer-effort-score-tracks experimental-products-task experimental-import-products-task experimental-fashion-sample-products shipping-smart-defaults shipping-setting-tour homescreen marketing multichannel-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: minified-js new-product-management-experience settings Daily Cron: ? Next scheduled: 2023-02-09 12:21:05 +01:00 Options: ? Notes: 97 Onboarding: completed ### Action Scheduler ### Canceled: 2 Oldest: 2023-01-19 12:12:18 +0000 Newest: 2023-02-01 15:49:25 +0000 Complete: 7.060 Oldest: 2023-01-09 09:12:10 +0000 Newest: 2023-02-09 09:00:18 +0000 Failed: 3.350 Oldest: 2022-11-13 10:10:33 +0000 Newest: 2023-02-09 09:04:21 +0000 Pending: 7 Oldest: 2023-02-09 09:04:21 +0000 Newest: 2023-02-14 12:43:22 +0000 ### Status report information ### Generated at: 2023-02-09 10:04:25 +01:00 `
Hi @lincetto are you using an Italian translation on your site?
Seems the translation file might be overriding some HTML which is in the translation string. Technically, we should not have HTML in translation strings, and this is on our list to fix, but if it does appear in the translation file it will override and cause issues.
Can you check if this might be the case here?
Hi @jkohlbach ,
no, we have not translated the plugin, I think the issue is in the Italian translation shipped with the plugin itself.
If you check this source line :
you’ll see that there is a percentage character, but in the english original string the same character was correctly encoded :
Hi @lincetto Andrea,
We did a release today but unfortunately this change didn’t quite make it. I have tweaked the Italian translation file and this will be fixed permanently on the next release.
Download here: https://drive.google.com/file/d/1aalGB-7qhbkXnftnAG4KJNvN7nkmCrsW/view?usp=sharing
Could you get these two files and override them under wp-content/plugins/woocommerce-wholesale-prices/languages/ folder?
Let me know if this works. My apologies for the inconvenience!
Also, we’ll be working on updating our translations soon. My Italian is a little rusty, last time I used it was in high school, but I do know some of the phrases in here were rushed/skipped over or are slightly outdated now as we’ve updated the strings in the plugin. I updated a few of these as best I could. If you wanted to submit any changes please let me know.
- The topic ‘Critical error since last update’ is closed to new replies.