Viewing 14 replies - 1 through 14 (of 14 total)
  • Plugin Author ferdev

    (@ferdev)

    Hi!

    It’s hard to tell why that error is produced without having more context. Could you share which WordPress, WooCommerce and WooCommerce Shipping & Tax versions are you using?

    I’d recommend disabling all plugins except WooCommerce and WooCommerce Shipping & Tax, and upgrading these two to their latest versions. If that works, I’d start enabling the rest of plugins one by one, until the one that’s causing the error is found.

    Hope that helps!

    Hello,

    This is Navas on behalf of Pranav. I will explain how we are replicating the issue. we are using the latest version of WordPress(5.7.1) and WooCommerce(5.2.2) and WooCommerce Shipping & Tax(1.25.12).

    Error replication:
    The Error occurs when we create an order via the backend. add a product and then recalculate the amount(no need to click Create button).https://prnt.sc/1271jyc. Then go to any order page and replace the order number in the URL, you can see the error. https://prnt.sc/1271r2v

    I have disabled all plugins except woocommerce and woocommerce shipping & tax and Jetpack by WordPress.com(9.6.1) plugins. I can see the issue existing even after. Also, I have tried switching the theme to the default woocommerce theme, still the same issue exists there.

    The Jetpack by WordPress.com plugin is used for connecting the woocommerce shipping & tax plugin to the site.

    Could you please check why it’s happening?

    Thank you.

    Plugin Support Saravanan S, a11n

    (@simplysaru)

    Hey there @navas007

    Thanks, while the screenshot explains the issue, the fatal error logs aren’t really detailed to troubleshoot.

    Could you navigate to WooCommerce > Status > Logs > Select – Latest Fatal Error Log under drop-down (right side) > Click – View button and paste the logs here for our review.

    While you are there, could you also get the System Status report for us and share it here.

    Please do review your logs and feel free to hide any private/confidential details from the log.

    Thanks.

    Hi,

    Thank you for your reply. Here am attaching the error Log, please review that and please find the solution ASAP.

    2021-04-28T11:24:30+00:00 CRITICAL Uncaught Error: Call to a member function getTimestamp() on null in /public_html/wp-content/plugins/woocommerce-services/classes/class-wc-connect-order-presenter.php:20
    Stack trace:
    #0 /public_html/wp-content/plugins/woocommerce-services/classes/class-wc-connect-shipping-label.php(519): WC_Connect_Order_Presenter->get_order_for_api()
    #1 /public_html/wp-admin/includes/template.php(1389): WC_Connect_Shipping_Label->meta_box()
    #2 /public_html/wp-admin/edit-form-advanced.php(681): do_meta_boxes()
    #3 /public_html/wp-admin/post.php(206): require('/home/151096.cl...')
    #4 {main}
      thrown in /public_html/wp-content/plugins/woocommerce-services/classes/class-wc-connect-order-presenter.php on line 20

    Thank you,

    Plugin Author ferdev

    (@ferdev)

    Hi @navas007!!

    Thanks for the stacktrace. I just checked the code and the error was produced because the order doesn’t have a proper creation date:

    'created_at' => $order->get_date_created()->getTimestamp(),

    You should check if something is failing during the order creation.

    Hello,

    I have checked the order page. I can see the order creation date is there https://prnt.sc/128wxn0. can you please check more about the issue?

    Thank you,

    Plugin Support Saravanan S, a11n

    (@simplysaru)

    Hey @navas007,

    Do you have Jetpack plugin installed and connected to a WordPress.com account? Could you check on that and reconnect it if it’s disconnected?

    Also, Could you test for conflicts by following the guide here and check if you are able to reproduce the error with just WooCommerce and WooCommerce shipping and tax on your site with the 2021 or storefront theme?

    We just to want to check if there is a conflict from another plugin or theme.

    Hello,

    Yes, I have confirmed the Jetpack plugin is connected successfully to the website.

    We have already done the troubleshooting method. like, disabled all the plugins except “woocommerce , woocommerce shipping & tax and Jetpack by WordPress.com(9.6.1) “plugins and also switched the theme to the default woocommerce theme(storefront theme).I can see the issue existing even after.

    can you please try to recreate the error from your end? we need to solve the issue ASAP.

    Thank you.

    Hello,

    This is a follow-up reply. is there any update on my request? we need to solve the issue ASAP.

    Thank you.

    Plugin Support Shohan Hossain Nabil – a11n

    (@sohanhossain)

    Hello @navas007,

    What is the version of the PHP you are using on your site? There is a similar issue created here that is related to PHP v8. If you are using PHP v8 then I suggest downgrading the PHP version and check again.

    Thanks!

    Hello,

    I have checked the PHP version of the site and it’s 7.4.7 https://prnt.sc/12icvd6. the issue happens when the woocommerce shipping & tax plugin has enabled on the site. when i disable the plugin then the order creates page works well and there is no error showing at the time.

    could you please check the issue?

    Thank you.

    Plugin Support Saravanan S, a11n

    (@simplysaru)

    Hey there @navas007 !

    This seems like an odd issue. Could you please create a ticket? You may need to create an account before you can access that page.

    Please include a link to this forum thread, so that we can keep track of what’s already been done.

    We will be able to help you further there.`

    Hello,

    I have raised a support ticket on WooCommerce. I have included this forum thread link also there. Please check and solve the issue ASAP.

    Thank you.

    Plugin Support Shohan Hossain Nabil – a11n

    (@sohanhossain)

    Hello @navas007,

    Thank you for submitting a support ticket. One of our Happiness Engineers will get back to you soon and continue helping further.

    Also, I’m going to mark this as resolved. Thanks!

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘Fatal Error and Order Page Empty’ is closed to new replies.