• joelmellin

    (@joelmellin)


    I get this fatal error when I open the designer:

    2025-01-20T09:51:05+00:00Crtitical Uncaught Error: Call to a member function get_sku() on bool in /home/mellins/domains/mellins.nu/public_html/wp-content/themes/woodmart/inc/integrations/woocommerce/functions.php:207 Ytterligare kontext{ “error”: { “type”: 1, “file”: “/home/mellins/domains/mellins.nu/public_html/wp-content/themes/woodmart/inc/integrations/woocommerce/functions.php”, “line”: 207 }, “remote-logging”: true, “backtrace”: [ “”, “#0 /home/mellins/domains/mellins.nu/public_html/wp-includes/class-wp-hook.php(326): woodmart_output_sku_in_thank_you_page()”, “#1 /home/mellins/domains/mellins.nu/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()”, “#2 /home/mellins/domains/mellins.nu/public_html/wp-includes/plugin.php(517): WP_Hook->do_action()”, “#3 /home/mellins/domains/mellins.nu/public_html/wp-content/plugins/kadence-woocommerce-email-designer/templates/woo/emails/email-order-items.php(66): do_action()”, “#4 /home/mellins/domains/mellins.nu/public_html/wp-content/plugins/woocommerce/includes/wc-core-functions.php(345): include(‘/home/mellins/d…’)”, “#5 /home/mellins/domains/mellins.nu/public_html/wp-content/plugins/woocommerce/includes/wc-template-functions.php(3504): wc_get_template()”, “#6 /home/mellins/domains/mellins.nu/public_html/wp-content/plugins/kadence-woocommerce-email-designer/templates/woo/emails/email-order-details.php(221): wc_get_email_order_items()”, “#7 /home/mellins/domains/mellins.nu/public_html/wp-content/plugins/woocommerce/includes/wc-core-functions.php(345): include(‘/home/mellins/d…’)”, “#8 /home/mellins/domains/mellins.nu/public_html/wp-content/plugins/woocommerce/includes/class-wc-emails.php(425): wc_get_template()”, “#9 /home/mellins/domains/mellins.nu/public_html/wp-includes/class-wp-hook.php(324): WC_Emails->order_details()”, “#10 /home/mellins/domains/mellins.nu/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()”, “#11 /home/mellins/domains/mellins.nu/public_html/wp-includes/plugin.php(517): WP_Hook->do_action()”, “#12 /home/mellins/domains/mellins.nu/public_html/wp-content/plugins/kadence-woocommerce-email-designer/templates/woo/emails/customer-completed-order.php(45): do_action()”, “#13 /home/mellins/domains/mellins.nu/public_html/wp-content/plugins/woocommerce/includes/wc-core-functions.php(345): include(‘/home/mellins/d…’)”, “#14 /home/mellins/domains/mellins.nu/public_html/wp-content/plugins/woocommerce/includes/wc-core-functions.php(364): wc_get_template()”, “#15 /home/mellins/domains/mellins.nu/public_html/wp-content/plugins/woocommerce/includes/emails/class-wc-email-customer-completed-order.php(109): wc_get_template_html()”, “#16 /home/mellins/domains/mellins.nu/public_html/wp-content/plugins/woocommerce/includes/emails/class-wc-email.php(588): WC_Email_Customer_Completed_Order->get_content_html()”, “#17 /home/mellins/domains/mellins.nu/public_html/wp-content/plugins/kadence-woocommerce-email-designer/includes/class-kadence-woomail-preview.php(740): WC_Email->get_content()”, “#18 /home/mellins/domains/mellins.nu/public_html/wp-content/plugins/kadence-woocommerce-email-designer/includes/class-kadence-woomail-preview.php(780): Kadence_Woomail_Preview::get_preview_email()”, “#19 /home/mellins/domains/mellins.nu/public_html/wp-content/plugins/kadence-woocommerce-email-designer/preview.php(40): Kadence_Woomail_Preview::print_preview_email()”, “#20 /home/mellins/domains/mellins.nu/public_html/wp-content/plugins/kadence-woocommerce-email-designer/includes/class-kadence-woomail-preview.php(200): include(‘/home/mellins/d…’)”, “#21 /home/mellins/domains/mellins.nu/public_html/wp-includes/class-wp-hook.php(324): Kadence_Woomail_Preview->set_up_preview()”, “#22 /home/mellins/domains/mellins.nu/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()”, “#23 /home/mellins/domains/mellins.nu/public_html/wp-includes/plugin.php(565): WP_Hook->do_action()”, “#24 /home/mellins/domains/mellins.nu/public_html/wp-includes/class-wp.php(418): do_action_ref_array()”, “#25 /home/mellins/domains/mellins.nu/public_html/wp-includes/class-wp.php(813): WP->parse_request()”, “#26 /home/mellins/domains/mellins.nu/public_html/wp-includes/functions.php(1336): WP->main()”, “#27 /home/mellins/domains/mellins.nu/public_html/wp-blog-header.php(16): wp()”, “#28 /home/mellins/domains/mellins.nu/public_html/index.php(17): require(‘/home/mellins/d…’)”, “#29 {main}”, “thrown” ] }

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support karlalevelup

    (@karlalevelup)

    Hi there!

    Glad you reached out to us.

    The error is coming from your theme file: /wp-content/themes/woodmart/inc/integrations/woocommerce/functions.php

    The error message indicates that the WooCommerce function (get_sku()) is being called on a variable that is false (not an object). The get_sku() function is used on WooCommerce product objects. The error suggests that the code is trying to access the SKU of a product that either doesn’t exist or hasn’t been retrieved properly, resulting in a false value instead of a valid product object.

    If the Order selected in the preview is a Mockup Order, try selecting an actual order on your site. Here’s a screenshot of the option: https://share.zight.com/4guLlYj5

    Let me know how it goes.

    Thread Starter joelmellin

    (@joelmellin)

    I tried, and yes, it only happens when the mockup order is selected, not when a real order is selected. Is it something to worry about then or not?

    Plugin Support karlalevelup

    (@karlalevelup)

    Hi, Joel!

    Apologies for the delay in getting back to you.

    Since the Mock Order is used mainly on previewing the email types, there is nothing to worry about. You can select a real order for the preview.

    I’ll add an internal task so we can check and adjust our code to avoid having those errors. Could you confirm your website’s PHP version? I have PHP 8.2 on mine and there is no error showing. You should see that by going to Dashboard > Tools > Site Health > Info > Server.

    Thread Starter joelmellin

    (@joelmellin)

    We have PHP-version 8.1.31.

    Plugin Support karlalevelup

    (@karlalevelup)

    Hi, @joelmellin !

    Apologies for the delay.

    I have PHP 8.1.20 on my website but I didn’t encounter the same error even with the Mock Order set as the preview order. Watch this: https://share.zight.com/E0uNvwp7

    Could you try deactivating all other plugins on your website temporarily (except WooCommerce and Kadence WooCommerce Email Designer) and see if the error will still happen?

    If it didn’t, then other plugins might be causing it. Re-activate the other plugins one by one to pinpoint which is it.

    Here’s our guide: Temporarily deactivating plugins

    Let me know how it goes.

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.