• Resolved Steve Moorhouse

    (@albanycomputers)


    Having Issues with the WooCommerce Orders – when clicking on the Order to view the details I get an error…

    All plugins are up to date and WP is also up to date. However, some of the theme functions are not… not sure if that would have an effect.

    WordPress: Current version: 6.3.2
    WooCommerce: Version 8.2.1
    WooCommerce Payments Version 6.6.2

    There has been a critical error on this website. Please check your site admin email inbox for instructions.

    On the notification email it says

    An error of type E_ERROR was caused in line 1318 of the file /home/sites/10a/5/xxxxxx/public_html/wp-content/plugins/woocommerce-payments/includes/multi-currency/MultiCurrency.php. Error message: Uncaught Error: Call to a member function get_price_decimals() on null in /home/sites/10a/5/xxxxxx/public_html/wp-content/plugins/woocommerce-payments/includes/multi-currency/MultiCurrency.php:1318

    When I enable multicurrency the error goes away.

    I don’t want to allow multicurrency but will enable it as a short term fix.

    • This topic was modified 1 year, 4 months ago by Steve Moorhouse. Reason: Added information
Viewing 4 replies - 1 through 4 (of 4 total)
  • The same error here

    Hi @albanycomputers

    Thanks for reaching out!

    Having Issues with the WooCommerce Orders – when clicking on the Order to view the details I get an error…

    I understand that you received the error message above when viewing orders on your site.

    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.

    Thread Starter Steve Moorhouse

    (@albanycomputers)

    ` WordPress Environment</p> <p class=””>WordPress address (URL): https://redacted.com<br>Site address (URL): https://redacted.com<br>WC Version: 8.2.1<br>REST API Version: ? 8.2.1<br>WC Blocks Version: ? 11.1.2<br>Action Scheduler Version: ? 3.6.3<br>Log Directory Writable: ?<br>WP Version: 6.3.2<br>WP Multisite: –<br>WP Memory Limit: 1 GB<br>WP Debug Mode: –<br>WP Cron: –<br>Language: en_GB<br>External object cache: – Server Environment</p> <p class=””>Server Info: Apache<br>PHP Version: 7.4.33<br>PHP Post Max Size: 128 MB<br>PHP Time Limit: 300<br>PHP Max Input Vars: 2500<br>cURL Version: 8.1.2<br>OpenSSL/1.1.1t-fips</p> <p class=””>SUHOSIN Installed: –<br>MySQL Version: 5.5.5-10.4.26-MariaDB-log<br>Max Upload Size: 128 MB<br>Default Timezone is UTC: ?<br>fsockopen/cURL: ?<br>SoapClient: ?<br>DOMDocument: ?<br>GZip: ?<br>Multibyte String: ?<br>Remote Post: ?<br>Remote Get: ? Database</p> <p class=””>WC Database Version: 8.2.1<br>WC Database Prefix: wp_<br>Total Database Size: 1012.32MB<br>Database Data Size: 911.47MB<br>Database Index Size: 100.85MB<br>wp_woocommerce_sessions: Data: 4.02MB + Index: 0.06MB + Engine InnoDB<br>wp_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>wp_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wp_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.06MB + Engine InnoDB<br>wp_woocommerce_order_items: Data: 1.52MB + Index: 0.17MB + Engine InnoDB<br>wp_woocommerce_order_itemmeta: Data: 3.52MB + Index: 3.03MB + Engine InnoDB<br>wp_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB<br>wp_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>wp_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wp_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>wp_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wp_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wp_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>wp_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wp_actionscheduler_actions: Data: 2.52MB + Index: 1.52MB + Engine InnoDB<br>wp_actionscheduler_claims: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wp_actionscheduler_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wp_actionscheduler_logs: Data: 2.52MB + Index: 0.75MB + Engine InnoDB<br>wp_cky_banners: Data: 0.05MB + Index: 0.00MB + Engine InnoDB<br>wp_cky_cookies: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wp_cky_cookie_categories: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wp_cli_cookie_scan: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wp_cli_cookie_scan_categories: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wp_cli_cookie_scan_cookies: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>wp_cli_cookie_scan_url: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wp_cli_scripts: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wp_commentmeta: Data: 0.08MB + Index: 0.09MB + Engine InnoDB<br>wp_comments: Data: 4.52MB + Index: 1.83MB + Engine InnoDB<br>wp_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wp_mclean_refs: Data: 6.52MB + Index: 0.00MB + Engine InnoDB<br>wp_mclean_scan: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wp_mystickyelement_contact_lists: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wp_options: Data: 37.52MB + Index: 5.03MB + Engine InnoDB<br>wp_pmxe_templates: Data: 0.19MB + Index: 0.00MB + Engine InnoDB<br>wp_pmxi_templates: Data: 0.19MB + Index: 0.00MB + Engine InnoDB<br>wp_postmeta: Data: 773.98MB + Index: 52.14MB + Engine InnoDB<br>wp_posts: Data: 46.56MB + Index: 18.06MB + Engine InnoDB<br>wp_revslider_css: Data: 0.13MB + Index: 0.02MB + Engine InnoDB<br>wp_revslider_css_bkp: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wp_revslider_layer_animations: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wp_revslider_layer_animations_bkp: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wp_revslider_navigations: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wp_revslider_navigations_bkp: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wp_revslider_sliders: Data: 0.03MB + Index: 0.02MB + Engine InnoDB<br>wp_revslider_sliders_bkp: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wp_revslider_slides: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wp_revslider_slides_bkp: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wp_revslider_static_slides: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wp_revslider_static_slides_bkp: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wp_snippets: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>wp_sticky_cta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wp_sticky_cta_options: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wp_termmeta: Data: 1.52MB + Index: 0.27MB + Engine InnoDB<br>wp_terms: Data: 0.06MB + Index: 0.09MB + Engine InnoDB<br>wp_term_relationships: Data: 1.52MB + Index: 1.52MB + Engine InnoDB<br>wp_term_taxonomy: Data: 0.13MB + Index: 0.06MB + Engine InnoDB<br>wp_usermeta: Data: 5.52MB + Index: 4.03MB + Engine InnoDB<br>wp_users: Data: 1.52MB + Index: 0.38MB + Engine InnoDB<br>wp_wc_admin_notes: Data: 0.11MB + Index: 0.00MB + Engine InnoDB<br>wp_wc_admin_note_actions: Data: 0.08MB + Index: 0.02MB + Engine InnoDB<br>wp_wc_category_lookup: Data: 0.06MB + Index: 0.00MB + Engine InnoDB<br>wp_wc_customer_lookup: Data: 0.47MB + Index: 0.31MB + Engine InnoDB<br>wp_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>wp_wc_orders: Data: 0.02MB + Index: 0.11MB + Engine InnoDB<br>wp_wc_orders_meta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>wp_wc_order_addresses: Data: 0.02MB + Index: 0.06MB + Engine InnoDB<br>wp_wc_order_coupon_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>wp_wc_order_operational_data: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>wp_wc_order_product_lookup: Data: 0.36MB + Index: 0.31MB + Engine InnoDB<br>wp_wc_order_stats: Data: 0.30MB + Index: 0.22MB + Engine InnoDB<br>wp_wc_order_tax_lookup: Data: 0.14MB + Index: 0.13MB + Engine InnoDB<br>wp_wc_product_attributes_lookup: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wp_wc_product_download_directories: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wp_wc_product_meta_lookup: Data: 2.52MB + Index: 1.91MB + Engine InnoDB<br>wp_wc_rate_limits: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wp_wc_reserved_stock: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wp_wc_se_queue: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>wp_wc_se_settings: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wp_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wp_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wp_woodmart_wishlists: Data: 0.13MB + Index: 0.00MB + Engine InnoDB<br>wp_woodmart_wishlist_products: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wp_wpfm_backup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wp_wpforms_payments: Data: 0.02MB + Index: 0.14MB + Engine InnoDB<br>wp_wpforms_payment_meta: Data: 0.02MB + Index: 0.05MB + Engine InnoDB<br>wp_wpforms_tasks_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wp_wpr_rocket_cache: Data: 1.52MB + Index: 1.80MB + Engine InnoDB<br>wp_wpr_rucss_used_css: Data: 1.52MB + Index: 2.42MB + Engine InnoDB<br>wp_yoast_indexable: Data: 8.52MB + Index: 2.88MB + Engine InnoDB<br>wp_yoast_indexable_hierarchy: Data: 0.41MB + Index: 0.55MB + Engine InnoDB<br>wp_yoast_migrations: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wp_yoast_primary_term: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>wp_yoast_seo_links: Data: 0.05MB + Index: 0.03MB + Engine InnoDB Post Type Counts</p> <p class=””>attachment: 109891<br>cms_block: 3<br>custom_css: 1<br>elementor_library: 1<br>mc4wp-form: 1<br>nav_menu_item: 15<br>oembed_cache: 431<br>page: 18<br>post: 2<br>product: 7934<br>revision: 25<br>shop_coupon: 7<br>shop_order: 1284<br>shop_order_refund: 50<br>woodmart_slide: 14<br>wpforms: 1<br>wpmm_theme: 3 Security</p> <p class=””>Secure connection (HTTPS): ?<br>Hide errors from visitors: ? Active Plugins (27)</p> <p class=””>Advanced Database Cleaner PRO: by Younes JFR. – 3.2.3<br>Code Snippets: by Code Snippets Pro – 3.5.0<br>CookieYes | GDPR Cookie Consent: by CookieYes – 3.1.6<br>Custom Taxonomy Order: by Marcel Pol – 3.4.4<br>Download Plugin: by metagauss – 2.0.6<br>GN Product and Image Remover: by George Nicolaou – 1.0.0<br>WPBakery Page Builder: by Michael M – WPBakery.com – 6.10.0<br>MC4WP: Mailchimp for WordPress: by ibericode – 4.9.9<br>Media Cleaner (Pro): by Jordy Meow – 6.6.7<br>Max Mega Menu: by megamenu.com – 3.2.4<br>Ocean Extra: by OceanWP – 2.2.1<br>Omni Capital Retail Finance Payment Gateway for Woocommerce: by Omni Capital Retail Finance – 1.5<br>Perfect Brands WooCommerce: by QuadLayers – 3.2.8<br>Safe SVG: by 10up – 2.2.1<br>Smart WooCommerce Search by Searchanise: by Searchanise – 1.0.14<br>WooCommerce Weight Based Shipping: by weightbasedshipping.com – 5.6.2<br>WooCommerce Opayo Payment Suite: by Andrew Benbow – 5.10.3 (update to version 5.11.0 is available)<br>WooCommerce PayPal Payments: by WooCommerce – 2.4.0<br>WooCommerce Shipping & Tax: by WooCommerce – 2.4.0<br>Store Toolkit for WooCommerce: by Visser Labs – 2.3.10<br>WooCommerce: by Automattic – 8.2.1<br>Woodmart Core: by – 1.0.28<br>Yoast SEO: by Team Yoast – 21.5<br>WP Crontrol: by John Blackbourn & contributors – 1.16.0<br>WP File Manager: by mndpsingh287 – 7.2.1<br>WPForms Lite: by WPForms – 1.8.4.1<br>WPIDE – File Manager & Code Editor: by XplodedThemes – 3.4.7 Inactive Plugins (10)</p> <p class=””>Autoptimize: by Frank Goossens (futtta) – 3.1.9<br>myStickyElements: by Premio – 2.1.4<br>Query Monitor: by John Blackbourn – 3.12.1<br>Reverb Integration for WooCommerce: by CedCommerce – 2.0.1<br>Slider Revolution: by ThemePunch – 6.6.10<br>UpdraftPlus – Backup/Restore: by UpdraftPlus.Com<br>DavidAnderson – 1.23.10</p> <p class=””>WooCommerce Admin: by WooCommerce – 3.3.2<br>WooCommerce Blocks: by Automattic – 11.4.1<br>WP CTA: by WP CTA PRO – 1.5.6<br>WP Rocket: by WP Media – 3.14 Dropin Plugins (2)</p> <p class=””>advanced-cache.php: advanced-cache.php<br>fatal-error-handler.php: fatal-error-handler.php Must Use Plugins (1)</p> <p class=””>StackCache: by Stack CP – Settings</p> <p class=””>API Enabled: –<br>Force SSL: –<br>Currency: GBP (£)<br>Currency Position: left<br>Thousand Separator: ,<br>Decimal Separator: .<br>Number of Decimals: 2<br>Taxonomies: Product Types: external (external)<br>grouped (grouped)<br>simple (simple)<br>variable (variable)</p> <p class=””>Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog)<br>exclude-from-search (exclude-from-search)<br>featured (featured)<br>outofstock (outofstock)<br>rated-1 (rated-1)<br>rated-2 (rated-2)<br>rated-3 (rated-3)<br>rated-4 (rated-4)<br>rated-5 (rated-5)</p> <p class=””>Connected to WooCommerce.com: ?<br>Enforce Approved Product Download Directories: –<br>HPOS feature screen enabled: –<br>HPOS feature enabled: –<br>Order datastore: WC_Order_Data_Store_CPT<br>HPOS data sync enabled: – WC Pages</p> <p class=””>Shop base: #56321 – /shop/<br>Basket: #7 – /cart/<br>Checkout: #8 – /checkout/<br>My account: #9 – /my-account/<br>Terms and conditions: #15573 – /terms-and-conditions/ Theme</p> <p class=””>Name: Woodmart<br>Version: 7.1.3 (update to version 7.3.2 is available)<br>Author URL: https://themeforest.net/user/xtemos<br>Child Theme: ? – If you are modifying WooCommerce on a parent theme that you did not build<br>personally we recommend using a child theme. See: How to create a child theme</p> <p class=””>WooCommerce Support: ? Templates</p> <p class=””>Overrides: woodmart/woocommerce/archive-product.php<br>woodmart/woocommerce/cart/cart-item-data.php<br>woodmart/woocommerce/cart/cart.php version 7.4.0 is out of date. The core version is 7.9.0<br>woodmart/woocommerce/cart/cross-sells.php<br>woodmart/woocommerce/cart/mini-cart.php version 5.2.0 is out of date. The core version is 7.9.0<br>woodmart/woocommerce/checkout/form-checkout.php<br>woodmart/woocommerce/checkout/thankyou.php version 3.7.0 is out of date. The core version is 8.1.0<br>woodmart/woocommerce/content-product-cat.php<br>woodmart/woocommerce/content-product.php<br>woodmart/woocommerce/content-single-product.php<br>woodmart/woocommerce/content-widget-product.php<br>woodmart/woocommerce/global/breadcrumb.php<br>woodmart/woocommerce/global/form-login.php<br>woodmart/woocommerce/global/quantity-input.php version 7.4.0 is out of date. The core version is 7.8.0<br>woodmart/woocommerce/loop/add-to-cart.php<br>woodmart/woocommerce/loop/loop-end.php<br>woodmart/woocommerce/loop/loop-start.php<br>woodmart/woocommerce/loop/no-products-found.php version 2.0.0 is out of date. The core version is 7.8.0<br>woodmart/woocommerce/loop/orderby.php<br>woodmart/woocommerce/loop/pagination.php<br>woodmart/woocommerce/loop/sale-flash.php<br>woodmart/woocommerce/myaccount/form-login.php<br>woodmart/woocommerce/product-searchform.php<br>woodmart/woocommerce/single-product/add-to-cart/grouped.php<br>woodmart/woocommerce/single-product/add-to-cart/variable.php<br>woodmart/woocommerce/single-product/meta.php<br>woodmart/woocommerce/single-product/product-attributes.php<br>woodmart/woocommerce/single-product/product-image.php version 3.5.1 is out of date. The core version is 7.8.0<br>woodmart/woocommerce/single-product/product-thumbnails.php<br>woodmart/woocommerce/single-product/rating.php<br>woodmart/woocommerce/single-product/related.php<br>woodmart/woocommerce/single-product/sale-flash.php<br>woodmart/woocommerce/single-product/tabs/description.php<br>woodmart/woocommerce/single-product/tabs/tabs.php<br>woodmart/woocommerce/single-product/title.php<br>woodmart/woocommerce/single-product/up-sells.php<br>woodmart/woocommerce/single-product-reviews.php<br>woodmart/woocommerce/single-product.php</p> <p class=””>Outdated Templates: ?</p> <pre class=”wp-block-code”><code> Learn how to update</code></pre> <p class=””>Templates</p> <p class=””>thumbnail:<br>medium:<br>medium_large:<br>large:<br>1536×1536:<br>2048×2048:<br>woodmart_shop_catalog_x2:<br>woocommerce_thumbnail:<br>woocommerce_single:<br>woocommerce_gallery_thumbnail: WooCommerce PayPal Payments</p> <p class=””>Onboarded: ?<br>Shop country code: GB<br>WooCommerce currency supported: ?<br>Advanced Card Processing available in country: ?<br>Pay Later messaging available in country: ?<br>Webhook status: ?<br>PayPal Vault enabled: –<br>ACDC Vault enabled: –<br>Logging enabled: –<br>Reference Transactions: –<br>Used PayPal Checkout plugin: ?<br>Subscriptions Mode: Disabled Admin</p> <p class=””>Enabled Features: activity-panels<br>analytics<br>product-block-editor<br>coupons<br>core-profiler<br>customer-effort-score-tracks<br>import-products-task<br>experimental-fashion-sample-products<br>shipping-smart-defaults<br>shipping-setting-tour<br>homescreen<br>marketing<br>mobile-app-banner<br>navigation<br>onboarding<br>onboarding-tasks<br>product-variation-management<br>remote-inbox-notifications<br>remote-free-extensions<br>payment-gateway-suggestions<br>shipping-label-banner<br>subscriptions<br>store-alerts<br>transient-notices<br>woo-mobile-welcome<br>wc-pay-promotion<br>wc-pay-welcome-page</p> <p class=””>Disabled Features: customize-store<br>minified-js<br>new-product-management-experience<br>settings<br>async-product-editor-category-field</p> <p class=””>Daily Cron: ? Next scheduled: 2023-11-06 14:01:54 +00:00<br>Options: ?<br>Notes: 189<br>Onboarding: completed Action Scheduler</p> <p class=””>Complete: 4,980<br>Oldest: 2023-10-06 10:52:18 +0100<br>Newest: 2023-11-06 09:09:55 +0000</p> <p class=””>Failed: 754<br>Oldest: 2020-04-10 10:05:03 +0100<br>Newest: 2023-08-10 11:59:31 +0100</p> <p class=””>Pending: 4<br>Oldest: 2023-11-06 09:25:55 +0000<br>Newest: 2023-11-12 15:28:26 +0000 Opayo</p> <p class=””>Opayo Plugin Version: ? 5.10.3<br>Opayo Form Enabled?: ?<br>Opayo Direct Enabled?: ?<br>Opayo Direct using Protocol 4.00?: ?<br>Opayo Server Enabled?: ?<br>Opayo Pi Enabled?: ?<br>Simple XML Available?: ?<br>Opayo Reporting (Test): ?<br>Opayo Reporting (Live): ?<br>MCrypt: ? No<br>OpenSSL: ? Yes<br>OpenSSL Methods: ? Yes<br>PHP Max_Input_Vars: ? 2500 Status report information</p> <p class=””>Generated at: 2023-11-06 09:26:34 +00:00<br>`

    —————————
    No Fatal logs – I’ve enabled Multi Currency so the error does not appear.

    Many thanks

    Steve

    Mirko P.

    (@rainfallnixfig)

    Hi @albanycomputers,

    Thank you for sending over your system status report.

    As a first step, we suggest isolating the issue by deactivating all plugins except WooCommerce and switching to a default theme like Storefront.

    If you don’t see the same error, that means your theme or another plugin is conflicting with WooCommerce.

    Reactivate the theme first and check again. Then, go on and 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:

    https://woo.com/document/how-to-test-for-conflicts/

    Let us know how that goes.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘WooPayments Call to a member function get_price_decimals() on null’ is closed to new replies.