• Resolved Han Leentvaar

    (@hleenwp)


    Hi,

    using the latest WC and the Divi theme (latest versions as of today) I have a problem with editing Divi pages in the backend when WC is enabled. I got a critical error.
    The error says:
    2022-06-22T11:54:48+00:00 CRITICAL Uncaught Error: Call to a member function has_weight() on null in /home/vhosts/MyDomain.nl/httpdocs/wp-content/plugins/woocommerce/includes/wc-template-functions.php:3444
    Stack trace:
    #0 /home/vhosts/MyDomain/httpdocs/wp-includes/class-wp-hook.php(307): wc_display_product_attributes(NULL)
    #1 /home/vhosts/MyDomain/httpdocs/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters(”, Array)
    #2 /home/vhosts/MyDomain/httpdocs/wp-includes/plugin.php(476): WP_Hook->do_action(Array)
    #3 /home/vhosts/MyDomain/httpdocs/wp-content/plugins/woocommerce/templates/single-product/tabs/additional-information.php(30): do_action(‘woocommerce_pro…’, NULL)
    #4 /home/vhosts/MyDomain/httpdocs/wp-content/plugins/woocommerce/includes/wc-core-functions.php(345): include(‘/home/vhosts/sp…’)
    #5 /home/vhosts/MyDomain/httpdocs/wp-content/plugins/woocommerce/includes/wc-template-functions.php(1828): wc_get_template(‘single-product/…’)
    #6 /home/vhosts/MyDomain/httpdocs/wp-content/plugins/woocommerce/templ in /home/vhosts/MyDomain/httpdocs/wp-content/plugins/woocommerce/includes/wc-template-functions.php op de lijn 3444

    When i edit wc-template-functions.php, and comment out the lines 3444 – 3460, the fatal error does not occur.
    Any advice?

    • This topic was modified 2 years, 5 months ago by Han Leentvaar. Reason: Typo
Viewing 4 replies - 1 through 4 (of 4 total)
  • Hello,

    Do you see any outdated template(s) under Woocommerce > Status > Template Overrides?
    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.

    Thread Starter Han Leentvaar

    (@hleenwp)

    Hi, I disabled my two overrides and the Divi preoblem is still there.
    Hereby my statusreport. Note that I already tried disabling all other plugins except Woocommerce.

    ### WordPress Environment ###

    WordPress address (URL): https://spiritoso.nl
    Site address (URL): https://spiritoso.nl
    WC Version: 6.6.1
    REST API Version: ? 6.6.1
    WC Blocks Version: ? 7.6.2
    Action Scheduler Version: ? 3.4.0
    Log Directory Writable: ?
    WP Version: 6.0
    WP Multisite: –
    WP Memory Limit: 756 MB
    WP Debug Mode: –
    WP Cron: ?
    Language: nl_NL
    External object cache: –

    ### Server Environment ###

    Server Info: Apache
    PHP Version: 8.0.1
    PHP Post Max Size: 64 MB
    PHP Time Limit: 300
    PHP Max Input Vars: 3000
    cURL Version: 7.70.0
    OpenSSL/1.1.1g

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

    ### Database ###

    WC Database Version: 6.6.1
    WC Database Prefix: utd_
    Totale database grootte: 36.82MB
    Database gegevens grootte: 14.47MB
    Database index grootte: 22.35MB
    utd_woocommerce_sessions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    utd_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    utd_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    utd_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    utd_woocommerce_order_items: Data: 0.08MB + Index: 0.02MB + Engine InnoDB
    utd_woocommerce_order_itemmeta: Data: 0.34MB + Index: 0.34MB + Engine InnoDB
    utd_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    utd_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    utd_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    utd_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    utd_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    utd_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    utd_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    utd_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    bf_activitylog: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    bf_core_hashes: Data: 0.20MB + Index: 0.25MB + Engine InnoDB
    bf_files: Data: 2.52MB + Index: 8.28MB + Engine InnoDB
    bf_files_last: Data: 2.52MB + Index: 8.27MB + Engine InnoDB
    bf_folders: Data: 0.23MB + Index: 0.50MB + Engine InnoDB
    bf_folders_to_scan: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    utd_actionscheduler_actions: Data: 0.02MB + Index: 0.13MB + Engine InnoDB
    utd_actionscheduler_claims: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    utd_actionscheduler_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    utd_actionscheduler_logs: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    utd_cf_forms: Data: 0.11MB + Index: 0.02MB + Engine InnoDB
    utd_cf_form_entries: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    utd_cf_form_entry_meta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    utd_cf_form_entry_values: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    utd_cf_tracking: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    utd_cf_tracking_meta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    utd_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    utd_comments: Data: 0.19MB + Index: 0.22MB + Engine InnoDB
    utd_dp_available_categories: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    utd_gf_draft_submissions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    utd_gf_entry: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    utd_gf_entry_meta: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    utd_gf_entry_notes: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    utd_gf_form: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    utd_gf_form_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    utd_gf_form_revisions: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    utd_gf_form_view: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    utd_gf_rest_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    utd_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    utd_mollie_pending_payment: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    utd_options: Data: 3.30MB + Index: 0.13MB + Engine InnoDB
    utd_postmeta: Data: 1.52MB + Index: 1.95MB + Engine InnoDB
    utd_posts: Data: 0.33MB + Index: 0.13MB + Engine InnoDB
    utd_termmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    utd_terms: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    utd_term_relationships: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    utd_term_taxonomy: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    utd_toolset_associations: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    utd_toolset_associations_old: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    utd_toolset_connected_elements: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    utd_toolset_post_guid_id: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    utd_toolset_relationships: Data: 0.02MB + Index: 0.08MB + Engine InnoDB
    utd_toolset_type_sets: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    utd_usermeta: Data: 0.14MB + Index: 0.11MB + Engine InnoDB
    utd_users: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    utd_wcpdf_invoice_number: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    utd_wcpdf_packing_slip_number: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    utd_wc_admin_notes: Data: 0.05MB + Index: 0.00MB + Engine InnoDB
    utd_wc_admin_note_actions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    utd_wc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    utd_wc_customer_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    utd_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    utd_wc_order_coupon_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    utd_wc_order_product_lookup: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    utd_wc_order_stats: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    utd_wc_order_tax_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    utd_wc_product_attributes_lookup: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    utd_wc_product_download_directories: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    utd_wc_product_meta_lookup: Data: 0.02MB + Index: 0.09MB + Engine InnoDB
    utd_wc_rate_limits: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    utd_wc_reserved_stock: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    utd_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    utd_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    utd_wfls_2fa_secrets: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    utd_wfls_settings: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    utd_wpfront_ure_login_redirect: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    utd_wpfront_ure_options: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    utd_wpfront_ure_post_type: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    utd_wpfront_ure_taxonomy: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    utd_wpr_rucss_resources: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    utd_wpr_rucss_used_css: Data: 1.52MB + Index: 0.06MB + Engine InnoDB

    ### Post Type Counts ###

    amn_exact-metrics: 1
    attachment: 257
    componist: 14
    custom_css: 1
    et_header_layout: 1
    et_pb_layout: 4
    et_template: 1
    et_theme_builder: 1
    nav_menu_item: 15
    page: 12
    post: 26
    product: 74
    shop_order: 168
    werk: 74
    wp-types-group: 3
    ywcm_message: 1

    ### Security ###

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

    ### Active Plugins (21) ###

    Gravity Forms: door Gravity Forms – 2.6.3.4
    Admin Menu Editor: door Janis Elsts – 1.10.2
    BBQ Firewall: door Jeff Starr – 20220517
    Classic Editor and Classic Widgets: door WPGrim – 1.1.1
    Deactivate XML-RPC Service: door DeveloperWil – 1.0.4
    Disable Bloat for WordPress & WooCommerce: door Disable Bloat – 3.0.3
    Divi Layout Overrides: door Sean Barton – Tortoise IT – 1.2
    DP Portfolio Posts Pro: door DiviPlugins – 4.1.8
    GA Google Analytics: door Jeff Starr – 20220517
    Inside .Services Custom snippets: door Han Leentvaar – 1.5
    Limit Login Attempts Reloaded: door Limit Login Attempts Reloaded – 2.25.3
    MainWP Child: door MainWP – 4.2.3
    Mollie-betalingen voor WooCommerce: door Mollie – 7.2.0
    Toolset Types: door OnTheGoSystems – 3.4.16
    UpdraftPlus – Backup/Restore: door UpdraftPlus.Com
    DavidAnderson – 2.22.12.25

    WooCommerce HTML5 Video: door Webilop – 1.7.10
    WooCommerce PDF Invoices & Packing Slips: door WP Overnight – 2.16.0
    WooCommerce: door Automattic – 6.6.1
    WP Rocket: door WP Media – 3.11.3
    WP Sitemap Page: door Tony Archambeau – 1.9.1
    WPFront User Role Editor: door Syam Mohan – 3.2.1.11184

    ### Inactive Plugins (0) ###

    ### Dropin Plugins (1) ###

    advanced-cache.php: advanced-cache.php

    ### Must Use Plugins (1) ###

    ET Support Center :: Must-Use Plugins Autoloader: door Elegant Themes –

    ### Settings ###

    API Enabled: ?
    Force SSL: –
    Currency: EUR (€)
    Currency Position: left
    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: –

    ### WC Pages ###

    Winkelbasis: #116 – /mijn-account/
    Winkelwagen: #112 – /winkelmand/
    Afrekenen: #114 – /afrekenen/
    Mijn account: #116 – /mijn-account/
    Algemene voorwaarden: #210 – /algemene-voorwaarden/

    ### Theme ###

    Name: Spiritoso
    Version: 1
    Author URL: https://inside-services.nl
    Child Theme: ?
    Parent Theme Name: Divi
    Parent Theme Version: 4.17.4
    Parent Theme Author URL: https://www.elegantthemes.com
    WooCommerce Support: ?

    ### Templates ###

    Overrides: –

    ### Admin ###

    Enabled Features: activity-panels
    analytics
    coupons
    customer-effort-score-tracks
    experimental-products-task
    experimental-import-products-task
    experimental-fashion-sample-products
    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
    wc-pay-promotion
    wc-pay-welcome-page
    wc-pay-subscriptions-page

    Disabled Features: minified-js
    settings

    Daily Cron: ? Next scheduled: 2022-06-24 00:16:48 +02:00
    Options: ?
    Notes: 46
    Onboarding: completed

    ### Action Scheduler ###

    Afgerond: 42
    Oldest: 2022-06-20 18:40:31 +0200
    Newest: 2022-06-23 13:26:22 +0200

    In afwachting: 1
    Oldest: 2022-06-23 17:04:32 +0200
    Newest: 2022-06-23 17:04:32 +0200

    ### Status report information ###

    Generated at: 2022-06-23 13:40:13 +02:00
    `

    Hi @hleenwp

    Thanks for sharing the System Status Report.

    I disabled my two overrides and the Divi preoblem is still there.

    The system report shows minified-js is the only Disabled Feature while there is a whole lot of Enabled Features under the template overrides.

    I understand that you already tried disabling all other plugins except WooCommerce but that did not help. That is because there seems to an incompatibility issue with the theme itself.

    We recommend reporting the issue to the Divi team at https://www.elegantthemes.com/contact/ so they can look into the matter and do the needful.

    * Kindly note that this particular forum is for questions that are related to the WooCommerce core features. Solving compatibility issues with third-party plugins/themes is out of the scope of this forum.

    This thread has been inactive for a bit, so I’m going to mark it closed.

    Please feel free to open a new thread if you have any other questions related to core WooCommerce.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Conflict Woocommerce – Divi’ is closed to new replies.