• Resolved pasamsin

    (@pasamsin)


    There is an error in the line “$value = $order->get_meta( $key, true );”. The following coding will fix the issue, can you add it to the update?

                                        if ( $order && is_a( $order, 'WC_Order' ) ) {
    $value = $order->get_meta( $key, true );
    } else {
    // fallback - older method
    $value = get_post_meta( $order_id, $key, true );
    }

    Uncaught Error: Call to a member function get_meta() on false
    in /home/mahmutcom/domains/dev.mahmutcom.com/public_html/wp-content/plugins/woo-checkout-field-editor-pro/public/class-thwcfd-public-checkout.php on line 703

    Call stack:

    THWCFD_Public_Checkout::order_details_after_customer_details()
    wp-includes/class-wp-hook.php:324
    WP_Hook::apply_filters()
    wp-includes/class-wp-hook.php:348
    WP_Hook::do_action()
    wp-includes/plugin.php:517
    do_action()
    wp-content/plugins/smart-archive-wc/templates/order/order-details.php:105
    include('/home/mahmutcom/domai...er/order-details.php')
    wp-content/plugins/woocommerce/includes/wc-core-functions.php:346
    wc_get_template()
    wp-content/plugins/smart-archive-wc/includes/class-sma-my-account-page.php:218
    SMA_My_Account_Page::sma_wc_order_details_table()
    wp-includes/class-wp-hook.php:324
    WP_Hook::apply_filters()
    wp-includes/class-wp-hook.php:348
    WP_Hook::do_action()
    wp-includes/plugin.php:517
    do_action()
    wp-content/plugins/woocommerce/templates/myaccount/view-order.php:70
    include('/home/mahmutcom/domai...count/view-order.php')
    wp-content/plugins/woocommerce/includes/wc-core-functions.php:346
    wc_get_template()
    wp-content/plugins/smart-archive-wc/includes/class-sma-my-account-page.php:182
    SMA_My_Account_Page::sma_view_archived_order_content()
    wp-includes/class-wp-hook.php:324
    WP_Hook::apply_filters()
    wp-includes/class-wp-hook.php:348
    WP_Hook::do_action()
    wp-includes/plugin.php:517
    do_action()
    wp-content/plugins/woocommerce/includes/wc-template-functions.php:3435
    woocommerce_account_content()
    wp-includes/class-wp-hook.php:324
    WP_Hook::apply_filters()
    wp-includes/class-wp-hook.php:348
    WP_Hook::do_action()
    wp-includes/plugin.php:517
    do_action()
    wp-content/plugins/woocommerce/templates/myaccount/my-account.php:34
    include('/home/mahmutcom/domai...count/my-account.php')
    wp-content/plugins/woocommerce/includes/wc-core-functions.php:346
    wc_get_template()
    wp-content/plugins/woocommerce/includes/shortcodes/class-wc-shortcode-my-account.php:121
    WC_Shortcode_My_Account::my_account()
    wp-content/plugins/woocommerce/includes/shortcodes/class-wc-shortcode-my-account.php:57
    WC_Shortcode_My_Account::output()
    wp-content/plugins/woocommerce/includes/class-wc-shortcodes.php:75
    WC_Shortcodes::shortcode_wrapper()
    wp-content/plugins/woocommerce/includes/class-wc-shortcodes.php:118
    WC_Shortcodes::my_account()
    wp-includes/shortcodes.php:434
    do_shortcode_tag()
    preg_replace_callback()
    wp-includes/shortcodes.php:273
    do_shortcode()
    wp-includes/class-wp-hook.php:324
    WP_Hook::apply_filters()
    wp-includes/plugin.php:205
    apply_filters()
    wp-includes/post-template.php:256
    the_content()
    wp-content/themes/shoptimizer/inc/shoptimizer-template-functions.php:676
    shoptimizer_page_content()
    wp-includes/class-wp-hook.php:324
    WP_Hook::apply_filters()
    wp-includes/class-wp-hook.php:348
    WP_Hook::do_action()
    wp-includes/plugin.php:517
    do_action()
    wp-content/themes/shoptimizer/content-page.php:18
    require('/home/mahmutcom/domai...zer/content-page.php')
    wp-includes/template.php:812
    load_template()
    wp-includes/template.php:745
    locate_template()
    wp-includes/general-template.php:206
    get_template_part()
    wp-content/themes/shoptimizer/page.php:26
    include('/home/mahmutcom/domai...shoptimizer/page.php')
    wp-includes/template-loader.php:106
    require_once('/home/mahmutcom/domai.../template-loader.php')
    wp-blog-header.php:19
    require('/home/mahmutcom/domai...l/wp-blog-header.php')
    index.php:17
    • This topic was modified 6 months ago by pasamsin.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Elena

    (@elenathemehigh)

    We are checking with our technical team. We will get back to you once we get an update from them.

    Plugin Support Elena

    (@elenathemehigh)

    Unfortunately, we weren’t able to recreate the issue on our end.

    To check further, could you please raise a support ticket through our website? This will allow our technical team to review the details and assist you more effectively.

    Thank you!

    Plugin Support Elena

    (@elenathemehigh)

    Since we haven’t heard back from you, we believe that your issue is resolved. We’ll go ahead and mark this thread as resolved.

    Thank you!

Viewing 3 replies - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.