• Resolved sultan912

    (@sultan912)


    After updating the plugin to version 2.10.4, I started getting the following error whenever I try to view invoices:

    Fatal error: Call to a member function is_type() on string
    #0 /home/yourdew2/public_html/wp-includes/class-wp-hook.php(305): woocommerce_product_dimensions(‘N/A’)
    #1 /home/yourdew2/public_html/wp-includes/plugin.php(189): WP_Hook->apply_filters(‘N/A’, Array)
    #2 /home/yourdew2/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/compatibility/class-wc-product-compatibility.php(125): apply_filters(‘woocommerce_pro…’, ‘N/A’, Object(WC_Product_Variation))
    #3 /home/yourdew2/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/documents/abstract-wcpdf-order-document-methods.php(614): WPO\WC\PDF_Invoices\Compatibility\Product::get_dimensions(Object(WC_Product_Variation))
    #4 /home/yourdew2/public_html/wp-content/themes/cup/woocommerce/pdf/invoice 1.0/invoice.php(133): WPO\WC\PDF_Invoices\Documents\Order_Document_Methods->get_order_items()
    #5 /home/yourdew2/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/documents/abstract-wcpdf-order-document.php(855): include(‘/home/yourdew2…’)
    #6 /home/yourdew2/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/documents/abstract-wcpdf-order-document.php(759): WPO\WC\PDF_Invoices\Documents\Order_Document->render_template(‘/home/yourdew2…’, Array)
    #7 /home/yourdew2/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/documents/abstract-wcpdf-order-document.php(741): WPO\WC\PDF_Invoices\Documents\Order_Document->get_html()
    #8 /home/yourdew2/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/documents/abstract-wcpdf-order-document.php(777): WPO\WC\PDF_Invoices\Documents\Order_Document->get_pdf()
    #9 /home/yourdew2/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/class-wcpdf-main.php(373): WPO\WC\PDF_Invoices\Documents\Order_Document->output_pdf(‘inline’)
    #10 /home/yourdew2/public_html/wp-includes/class-wp-hook.php(303): WPO\WC\PDF_Invoices\Main->generate_pdf_ajax(”)
    #11 /home/yourdew2/public_html/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters(”, Array)
    #12 /home/yourdew2/public_html/wp-includes/plugin.php(470): WP_Hook->do_action(Array)
    #13 /home/yourdew2/public_html/wp-admin/admin-ajax.php(187): do_action(‘wp_ajax_generat…’)
    #14 {main}

    The error gets thrown whenever I try to use “$this->get_order_items();”

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor alexmigf

    (@alexmigf)

    Hello @sultan912

    We are sorry about that! Could you send us system report from WooCommerce > Status > Get system report?

    Thread Starter sultan912

    (@sultan912)

    ?
    ### WordPress Environment ###

    WordPress address (URL): https://yourdesign.site
    Site address (URL): https://yourdesign.site
    WC Version: 5.9.0
    REST API Version: ? 5.9.0
    WC Blocks Version: ? 6.1.0
    Action Scheduler Version: ? 3.3.0
    WC Admin Version: ? 2.8.0
    Log Directory Writable: ?
    WP Version: 5.8.2
    WP Multisite: –
    WP Memory Limit: 500 MB
    WP Debug Mode: –
    WP Cron: ?
    Language: en_US
    External object cache: –

    ### Server Environment ###

    Server Info: Apache
    PHP Version: 7.4.26
    PHP Post Max Size: 100 MB
    PHP Time Limit: 30000
    PHP Max Input Vars: 100000
    cURL Version: 7.79.1
    OpenSSL/1.1.1l

    SUHOSIN Installed: –
    MySQL Version: 5.6.41-84.1
    Max Upload Size: 64 MB
    Default Timezone is UTC: ?
    fsockopen/cURL: ?
    SoapClient: ?
    DOMDocument: ?
    GZip: ?
    Multibyte String: ?
    Remote Post: ?
    Remote Get: ?

    ### Database ###

    WC Database Version: 5.9.0
    WC Database Prefix: wp_
    Total Database Size: 72.52MB
    Database Data Size: 63.48MB
    Database Index Size: 9.04MB
    wp_woocommerce_sessions: Data: 1.52MB + Index: 0.00MB + Engine MyISAM
    wp_woocommerce_api_keys: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_woocommerce_attribute_taxonomies: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_woocommerce_downloadable_product_permissions: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_woocommerce_order_items: Data: 0.17MB + Index: 0.07MB + Engine MyISAM
    wp_woocommerce_order_itemmeta: Data: 16.91MB + Index: 0.67MB + Engine MyISAM
    wp_woocommerce_tax_rates: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    wp_woocommerce_tax_rate_locations: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_woocommerce_shipping_zones: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_woocommerce_shipping_zone_locations: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_woocommerce_shipping_zone_methods: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_woocommerce_payment_tokens: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_woocommerce_payment_tokenmeta: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_woocommerce_log: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_actionscheduler_actions: Data: 0.12MB + Index: 0.06MB + Engine MyISAM
    wp_actionscheduler_claims: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_actionscheduler_groups: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    wp_actionscheduler_logs: Data: 0.10MB + Index: 0.06MB + Engine MyISAM
    wp_aioseo_notifications: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    wp_aioseo_posts: Data: 0.28MB + Index: 0.01MB + Engine MyISAM
    wp_check_email_log: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_commentmeta: Data: 0.02MB + Index: 0.02MB + Engine MyISAM
    wp_comments: Data: 0.35MB + Index: 0.12MB + Engine MyISAM
    wp_fpd_designs: Data: 0.01MB + Index: 0.00MB + Engine MyISAM
    wp_fpd_products: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_fpd_views: Data: 0.01MB + Index: 0.00MB + Engine MyISAM
    wp_fsmpt_email_logs: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_icl_content_status: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_icl_core_status: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_icl_flags: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_icl_languages: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    wp_icl_languages_translations: Data: 0.10MB + Index: 0.11MB + Engine MyISAM
    wp_icl_locale_map: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_icl_message_status: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_icl_mo_files_domains: Data: 0.02MB + Index: 0.01MB + Engine MyISAM
    wp_icl_node: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_icl_reminders: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_icl_strings: Data: 1.90MB + Index: 1.78MB + Engine MyISAM
    wp_icl_string_batches: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_icl_string_packages: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_icl_string_pages: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_icl_string_positions: Data: 0.17MB + Index: 0.06MB + Engine MyISAM
    wp_icl_string_status: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_icl_string_translations: Data: 0.02MB + Index: 0.01MB + Engine MyISAM
    wp_icl_string_urls: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_icl_translate: Data: 0.10MB + Index: 0.03MB + Engine MyISAM
    wp_icl_translate_job: Data: 0.01MB + Index: 0.01MB + Engine MyISAM
    wp_icl_translations: Data: 0.12MB + Index: 0.23MB + Engine MyISAM
    wp_icl_translation_batches: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_icl_translation_downloads: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_icl_translation_status: Data: 1.01MB + Index: 0.03MB + Engine MyISAM
    wp_links: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_mo_openid_linked_user: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_options: Data: 13.24MB + Index: 0.14MB + Engine MyISAM
    wp_popup_banners: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_postmeta: Data: 6.02MB + Index: 2.54MB + Engine MyISAM
    wp_posts: Data: 0.87MB + Index: 0.29MB + Engine MyISAM
    wp_social_users: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    wp_termmeta: Data: 0.03MB + Index: 0.03MB + Engine MyISAM
    wp_terms: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    wp_term_relationships: Data: 0.04MB + Index: 0.08MB + Engine MyISAM
    wp_term_taxonomy: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    wp_usermeta: Data: 9.69MB + Index: 0.56MB + Engine MyISAM
    wp_users: Data: 0.05MB + Index: 0.05MB + Engine MyISAM
    wp_wcpdf_invoice_number: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wc_admin_notes: Data: 0.02MB + Index: 0.00MB + Engine MyISAM
    wp_wc_admin_note_actions: Data: 0.01MB + Index: 0.00MB + Engine MyISAM
    wp_wc_category_lookup: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_wc_customer_lookup: Data: 0.03MB + Index: 0.03MB + Engine MyISAM
    wp_wc_download_log: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_wc_order_coupon_lookup: Data: 0.01MB + Index: 0.02MB + Engine MyISAM
    wp_wc_order_product_lookup: Data: 0.08MB + Index: 0.07MB + Engine MyISAM
    wp_wc_order_stats: Data: 0.05MB + Index: 0.04MB + Engine MyISAM
    wp_wc_order_tax_lookup: Data: 0.03MB + Index: 0.03MB + Engine MyISAM
    wp_wc_product_meta_lookup: Data: 0.04MB + Index: 0.06MB + Engine MyISAM
    wp_wc_reserved_stock: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_wc_tax_rate_classes: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    wp_wc_webhooks: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_wdr_order_discounts: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wdr_order_item_discounts: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wdr_rules: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wfblockediplog: Data: 0.01MB + Index: 0.01MB + Engine MyISAM
    wp_wfblocks7: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_wfconfig: Data: 2.55MB + Index: 0.02MB + Engine MyISAM
    wp_wfcrawlers: Data: 0.01MB + Index: 0.00MB + Engine MyISAM
    wp_wffilechanges: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_wffilemods: Data: 3.10MB + Index: 0.60MB + Engine MyISAM
    wp_wfhits: Data: 0.72MB + Index: 0.13MB + Engine MyISAM
    wp_wfhoover: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_wfissues: Data: 0.02MB + Index: 0.01MB + Engine MyISAM
    wp_wfknownfilelist: Data: 1.73MB + Index: 0.18MB + Engine MyISAM
    wp_wflivetraffichuman: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_wflocs: Data: 0.01MB + Index: 0.00MB + Engine MyISAM
    wp_wflogins: Data: 0.14MB + Index: 0.03MB + Engine MyISAM
    wp_wfls_2fa_secrets: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wfls_settings: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wfnotifications: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_wfpendingissues: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    wp_wfreversecache: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_wfsnipcache: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_wfstatus: Data: 0.14MB + Index: 0.06MB + Engine MyISAM
    wp_wftrafficrates: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_wpfm_backup: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_wpmailsmtp_debug_events: Data: 0.06MB + Index: 0.00MB + Engine InnoDB
    wp_wpmailsmtp_tasks_meta: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_wpmelon_advbedit_temp: Data: 0.01MB + Index: 0.01MB + Engine MyISAM
    wp_yith_wcwl: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_yith_wcwl_lists: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    wp_yoast_indexable: Data: 1.52MB + Index: 0.41MB + Engine InnoDB
    wp_yoast_indexable_hierarchy: Data: 0.09MB + Index: 0.16MB + Engine InnoDB
    wp_yoast_migrations: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_yoast_primary_term: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_yoast_seo_links: Data: 0.02MB + Index: 0.03MB + Engine InnoDB

    ### Post Type Counts ###

    acf-field: 22
    acf-field-group: 8
    attachment: 1324
    client: 8
    custom_css: 1
    feature: 8
    modalpopupbox: 1
    nav_menu_item: 58
    page: 27
    post: 1
    product: 123
    product_variation: 294
    revision: 116
    shop_coupon: 110
    shop_order: 618
    shop_order_refund: 12
    slider: 9
    team: 8
    testimonial: 14
    v3d_app: 3
    wpcf7_contact_form: 4

    ### Security ###

    Secure connection (HTTPS): ?
    Hide errors from visitors: ?

    ### Active Plugins (32) ###

    Redirect 404 to Homepage: by pipdig – 1.0
    Advanced Custom Fields PRO: by Delicious Brains – 5.11.4
    Amazon payment services: by Amazon Payment Services – 2.2.5
    Contact Form 7: by Takayuki Miyoshi – 5.5.3
    Fancy Product Designer PRO Export: by fancyproductdesigner.com – 1.2.7
    Fancy Product Designer: by fancyproductdesigner.com – 4.7.3
    Social Login, Social Sharing by miniOrange: by miniOrange – 7.5.5
    PayTabs – WooCommerce Payment Gateway: by PayTabs – 4.7.3
    Redux: by Extendify – 4.3.5
    WPML Multilingual CMS: by OnTheGoSystems – 4.4.12
    String Locator: by Clorith – 2.4.2
    Tax File Uploader: by Sultan – 1.0.0
    User Role Editor: by Vladimir Garagulya – 4.60.2
    Verge3D: by Soft8Soft LLC – 3.8.0
    WC City Select: by 8manos – 1.0.6
    WooCommerce Advanced Bulk Edit: by George Iron – 5.0.1
    Cup Shipping: by Njegos Vukadin – 1.0.0
    WooCommerce Email Test: by RaiserWeb – 1.2.2
    WooCommerce Multilingual: by OnTheGoSystems – 4.12.1
    WooCommerce PDF Invoices & Packing Slips: by Ewout Fernhout – 2.11.0
    WooCommerce PDF Invoices & Packing Slips + mPDF: by Ewout Fernhout – 2.2.0
    Custom WooCommerce Reports: by Sultan – 1.0.0
    WooCommerce: by Automattic – 5.9.0
    Wordfence Security: by Wordfence – 7.5.7
    WP Mail SMTP: by WPForms – 3.2.1
    WPML Media: by OnTheGoSystems – 2.6.5
    WPML String Translation: by OnTheGoSystems – 3.1.10
    WPML Translation Management: by OnTheGoSystems – 2.10.8
    WPS Hide Login: by WPServeur
    NicolasKulka
    wpformation – 1.9.1

    YITH WooCommerce Quick View: by YITH – 1.10.0
    YITH WooCommerce Wishlist: by YITH – 3.3.0
    Cup Email & Phone Verification: by Njegos Vukadin – 1.0.0

    ### Inactive Plugins (0) ###

    ### Must Use Plugins (2) ###

    Endurance Page Cache: by Mike Hansen – 2.1.2
    SSO: by Garth Mortensen
    Mike Hansen – 0.3

    ### Settings ###

    API Enabled: –
    Force SSL: –
    Currency: SAR (SR)
    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: –

    ### WC Pages ###

    Shop base: #6 – /shop/
    Cart: #7 – /cart/
    Checkout: #3280 – /checkout-2/
    My account: #9 – /my-account/
    Terms and conditions: #81 – /trems/

    ### Theme ###

    Name: cup
    Version: 1.0
    Author URL: https://wptech.net
    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: cup/woocommerce/archive-product.php
    cup/woocommerce/cart/cart.php
    cup/woocommerce/checkout/cart-errors.php
    cup/woocommerce/checkout/form-billing.php
    cup/woocommerce/checkout/form-checkout.php
    cup/woocommerce/checkout/form-coupon.php
    cup/woocommerce/checkout/form-login.php
    cup/woocommerce/checkout/form-pay.php
    cup/woocommerce/checkout/form-shipping.php
    cup/woocommerce/checkout/order-receipt.php
    cup/woocommerce/checkout/payment-method.php
    cup/woocommerce/checkout/payment.php
    cup/woocommerce/checkout/review-order.php
    cup/woocommerce/checkout/terms.php
    cup/woocommerce/content-product.php
    cup/woocommerce/content-single-product.php
    cup/woocommerce/emails/customer-completed-order.php version 3.5.0 is out of date. The core version is 3.7.0
    cup/woocommerce/emails/customer-processing-order.php version 3.5.0 is out of date. The core version is 3.7.0
    cup/woocommerce/emails/email-addresses.php version 3.2.1 is out of date. The core version is 5.6.0
    cup/woocommerce/emails/email-order-details.php version 3.3.1 is out of date. The core version is 3.7.0
    cup/woocommerce/global/form-login.php
    cup/woocommerce/global/quantity-input.php
    cup/woocommerce/loop/orderby.php
    cup/woocommerce/loop/pagination.php
    cup/woocommerce/loop/result-count.php
    cup/woocommerce/myaccount/dashboard.php version 2.6.0 is out of date. The core version is 4.4.0
    cup/woocommerce/myaccount/downloads.php
    cup/woocommerce/myaccount/form-add-payment-method.php version 3.4.0 is out of date. The core version is 4.3.0
    cup/woocommerce/myaccount/form-edit-address.php version 3.4.0 is out of date. The core version is 3.6.0
    cup/woocommerce/myaccount/form-login.php version 3.5.0 is out of date. The core version is 4.1.0
    cup/woocommerce/myaccount/form-lost-password.php
    cup/woocommerce/myaccount/form-reset-password.php version 3.5.0 is out of date. The core version is 3.5.5
    cup/woocommerce/myaccount/lost-password-confirmation.php version 3.5.0 is out of date. The core version is 3.9.0
    cup/woocommerce/myaccount/my-account.php
    cup/woocommerce/myaccount/my-address.php
    cup/woocommerce/myaccount/my-downloads.php
    cup/woocommerce/myaccount/my-orders.php
    cup/woocommerce/myaccount/navigation.php
    cup/woocommerce/myaccount/orders.php
    cup/woocommerce/myaccount/payment-methods.php
    cup/woocommerce/myaccount/view-order.php
    cup/woocommerce/order/order-details-customer.php version 3.4.4 is out of date. The core version is 5.6.0
    cup/woocommerce/order/order-details-item.php version 3.7.0 is out of date. The core version is 5.2.0
    cup/woocommerce/order/order-details.php version 3.7.0 is out of date. The core version is 4.6.0
    cup/woocommerce/single-product/add-to-cart/external.php
    cup/woocommerce/single-product/add-to-cart/grouped.php version 4.0.0 is out of date. The core version is 4.8.0
    cup/woocommerce/single-product/add-to-cart/simple.php
    cup/woocommerce/single-product/add-to-cart/variable.php
    cup/woocommerce/single-product/add-to-cart/variation-add-to-cart-button.php
    cup/woocommerce/single-product/add-to-cart/variation.php
    cup/woocommerce/single-product/meta.php
    cup/woocommerce/single-product/price.php
    cup/woocommerce/single-product/related.php version 3.0.0 is out of date. The core version is 3.9.0
    cup/woocommerce/single-product/short-description.php
    cup/woocommerce/single-product/title.php
    cup/woocommerce/single-product/up-sells.php
    cup/woocommerce/single-product.php
    cup/woocommerce/content-product_cat.php version 2.6.1 is out of date. The core version is 4.7.0

    Outdated Templates: ?

    Learn how to update

    ### Action Scheduler ###

    Complete: 384
    Oldest: 2021-11-06 15:16:23 +0300
    Newest: 2021-12-07 09:32:51 +0300

    Pending: 6
    Oldest: 2021-12-07 19:56:52 +0300
    Newest: 2021-12-09 11:03:26 +0300

    ### Status report information ###

    Generated at: 2021-12-07 09:33:25 +03:00`

    Plugin Contributor Ewout

    (@pomegranate)

    Thanks for sharing that. I noticed that your stack trace mentions a function woocommerce_product_dimensions that appears to be linked to the legacy (2.X) filter with the same name (source). There is no function with this name inside WooCommerce 5.9 itself, so this means it must be either in a plugin or in your own custom code. The easiest way to find the culprit is to deactivate your own theme and plugins one by one to see which one makes the error go away. If it turns out to be a plugin, could you share the name of that plugin here? Thanks!

    Thread Starter sultan912

    (@sultan912)

    Ahh right, this is a custom hook that I created inside the theme recently, and I did not realize that it had the same name as that legacy filter.

    Thanks a lot for your help! I commented out the custom code, and invoices seem to be working again.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Fatal Error after 2.10.4 update’ is closed to new replies.