Fatal error
-
When i try to change time and zone in WordPress (settings page) after update this fatal error start shows.
Try to disable / change name of woocommerce directory and about plugin about brands but noting.
Fatal error: Uncaught ArgumentCountError: 3 arguments are required, 2 given in C:\xampp\htdocs\XYZ\wp-content\plugins\woocommerce\includes\class-wc-post-types.php:240 Stack trace: #0 C:\xampp\htdocs\XYZ\wp-content\plugins\woocommerce\includes\class-wc-post-types.php(240): sprintf(‘\xD0\x90\xD0\xB6\xD1\x83\xD1\x80\xD0\xB8\xD1\x80\xD0\xB0\xD1…’, ‘brands’) #1 C:\xampp\htdocs\XYZ\wp-includes\class-wp-hook.php(307): WC_Post_Types::register_taxonomies(”) #2 C:\xampp\htdocs\XYZ\wp-includes\class-wp-hook.php(331): WP_Hook->apply_filters(NULL, Array) #3 C:\xampp\htdocs\XYZ\wp-includes\plugin.php(474): WP_Hook->do_action(Array) #4 C:\xampp\htdocs\XYZ\wp-settings.php(587): do_action(‘init’) #5 C:\xampp\htdocs\XYZ\wp-config.php(96): require_once(‘C:\\xampp\\htdocs…’) #6 C:\xampp\htdocs\XYZ\wp-load.php(50): require_once(‘C:\\xampp\\htdocs…’) #7 C:\xampp\htdocs\XYZ\wp-admin\admin.php(34): require_once(‘C:\\xampp\\htdocs…’) #8 C:\xampp\htdocs\XYZ\wp-admin\index.php(10): require_once(‘C:\\xampp\\htdocs…’) #9 {main} thrown in C:\xampp\htdocs\XYZ\wp-content\plugins\woocommerce\includes\class-wc-post-types.php on line 240
Anyone who has same problem and how to fix that ?
-
Only to short the frame of error,
when i try to put another language on wordpress for example to put Macedonian Language error shows,
if i rename the woocommerce folder (from plugins) then activate English language and then rename normal woocommerce folder error gone
so there is some problem with language switcher (Settings-> General -> Site Language)
please help and advise how to fix this ?
To have a better perspective of this, could you please share a copy of your site’s System Status? You can find it via WooCommerce > Status. Select “Get system report” and then “Copy for support”. Once you’ve done that, paste it here in your response.
### WordPress Environment ### WordPress address (URL): http://127.0.0.1/mild Site address (URL): http://127.0.0.1/mild WC Version: 6.3.1 REST API Version: ✔ 6.3.1 WC Blocks Version: ✔ 6.9.0 Action Scheduler Version: ✔ 3.4.0 WC Admin Version: ✔ 3.2.1 Log Directory Writable: ✔ WP Version: 5.9.2 WP Multisite: – WP Memory Limit: 512 MB WP Debug Mode: – WP Cron: ✔ Language: en_US External object cache: – ### Server Environment ### Server Info: Apache/2.4.51 (Win64) OpenSSL/1.1.1l PHP/8.0.13 PHP Version: 8.0.13 PHP Post Max Size: 40 MB PHP Time Limit: 120 PHP Max Input Vars: 1000 cURL Version: 7.76.1 OpenSSL/1.1.1l SUHOSIN Installed: – MySQL Version: 5.5.5-10.4.22-MariaDB Max Upload Size: 40 MB Default Timezone is UTC: ✔ fsockopen/cURL: ✔ SoapClient: ❌ Your server does not have the SoapClient class enabled - some gateway plugins which use SOAP may not work as expected. DOMDocument: ✔ GZip: ✔ Multibyte String: ✔ Remote Post: ✔ Remote Get: ✔ ### Database ### WC Database Version: 6.3.1 WC Database Prefix: wp_ Total Database Size: 16.19MB Database Data Size: 13.60MB Database Index Size: 2.59MB wp_woocommerce_sessions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_woocommerce_order_items: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_woocommerce_order_itemmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_actionscheduler_actions: Data: 0.05MB + Index: 0.11MB + Engine InnoDB wp_actionscheduler_claims: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_actionscheduler_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_actionscheduler_logs: Data: 0.05MB + Index: 0.03MB + Engine InnoDB wp_aioseo_cache: Data: 0.08MB + Index: 0.03MB + Engine InnoDB wp_aioseo_notifications: Data: 0.03MB + Index: 0.06MB + Engine InnoDB wp_aioseo_posts: Data: 0.17MB + Index: 0.02MB + Engine InnoDB wp_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_comments: Data: 0.06MB + Index: 0.09MB + Engine InnoDB wp_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_options: Data: 4.02MB + Index: 0.08MB + Engine InnoDB wp_postmeta: Data: 1.50MB + Index: 0.73MB + Engine InnoDB wp_posts: Data: 1.48MB + Index: 0.09MB + Engine InnoDB wp_revslider_css: Data: 0.13MB + Index: 0.02MB + Engine InnoDB wp_revslider_css_bkp: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_revslider_layer_animations: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_revslider_layer_animations_bkp: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_revslider_navigations: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_revslider_navigations_bkp: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_revslider_sliders: Data: 0.50MB + Index: 0.02MB + Engine InnoDB wp_revslider_sliders_bkp: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_revslider_slides: Data: 4.39MB + Index: 0.02MB + Engine InnoDB wp_revslider_slides_bkp: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_revslider_static_slides: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_revslider_static_slides_bkp: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_termmeta: Data: 0.08MB + Index: 0.09MB + Engine InnoDB wp_terms: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_term_relationships: Data: 0.05MB + Index: 0.02MB + Engine InnoDB wp_term_taxonomy: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_usermeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_users: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_wc_admin_notes: Data: 0.05MB + Index: 0.00MB + Engine InnoDB wp_wc_admin_note_actions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wc_customer_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_wc_order_coupon_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_wc_order_product_lookup: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_wc_order_stats: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_wc_order_tax_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_wc_product_attributes_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_wc_product_meta_lookup: Data: 0.02MB + Index: 0.09MB + Engine InnoDB wp_wc_rate_limits: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wc_reserved_stock: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wpforms_tasks_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_yith_wcwl: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_yith_wcwl_lists: Data: 0.02MB + Index: 0.03MB + Engine InnoDB ### Post Type Counts ### attachment: 76 custom_css: 3 customize_changeset: 13 mas_static_content: 25 nav_menu_item: 203 page: 48 post: 12 product: 58 revision: 63 shop_coupon: 1 wp_global_styles: 1 wpforms: 6 ### Security ### Secure connection (HTTPS): ✔ Hide errors from visitors: ✔ ### Active Plugins (18) ### Template Library and Redux Framework: by Extendify – 4.3.12 Advanced Custom Fields: by Delicious Brains – 5.12.1 All in One SEO: by All in One SEO Team – 4.1.8 Disable Gutenberg: by Jeff Starr – 2.6 Electro Extensions: by MadrasThemes – 3.2.4 Flexible Shipping: by WP Desk – 4.11.3 WPBakery Page Builder: by Michael M - WPBakery.com – 6.8.0 Loco Translate: by Tim Whitlock – 2.6.1 MAS Static Content: by MadrasThemes – 1.0.4 MAS Brands for WooCommerce: by MadrasThemes – 1.0.4 One Click Demo Import: by OCDI – 3.1.1 Slider Revolution: by ThemePunch – 6.5.19 WooCommerce Checkout Field Editor: by WooCommerce – 1.7.2 WooCommerce: by Automattic – 6.3.1 WordPress Importer: by wordpressdotorg – 0.7 WPForms Lite: by WPForms – 1.7.3 YITH WooCommerce Compare: by YITH – 2.12.0 YITH WooCommerce Wishlist: by YITH – 3.7.0 ### Inactive Plugins (0) ### ### Settings ### API Enabled: – Force SSL: – Currency: MKD (ден) Currency Position: right_space Thousand Separator: . Decimal Separator: , Number of Decimals: 0 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: #3853 - /shop-2/ Cart: #3134 - /cart-2/ Checkout: #3135 - /checkout-2/ My account: #3854 - /my-account-2/ Terms and conditions: #2183 - /terms-and-conditions/ ### Theme ### Name: Electro Version: 3.2.4 Author URL: https://madrasthemes.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: electro/woocommerce/archive-product.php electro/woocommerce/global\quantity-input.php ### Action Scheduler ### Complete: 85 Oldest: 2022-03-25 20:35:16 +0000 Newest: 2022-03-27 14:13:50 +0000 Pending: 6 Oldest: 2022-03-27 14:28:50 +0000 Newest: 2022-04-02 07:53:59 +0000 ### Status report information ### Generated at: 2022-03-27 16:14:56 +02:00here we are
but now language is default (ENGLISH) if i like to put my mother language it will show error once again
I tried on my end and couldn’t reproduce this.
I’m guessing there’s some conflict.
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.
will try but i figure out that there is some problem with langugae ,
i put few languages, french, UK(English), Bulgarian and it work ,
but when i put Македонски јазик i receive again error :
Check screenshot from my dropbox
@oaoyadeyi it is Loco Translate plugin error (conflict)
will close this topic
Glad to hear it – thanks for letting us know!
If you have any further questions, I recommend creating a new thread.
The topic ‘Fatal error’ is closed to new replies.