Orders status responds critical error also downloadable files not viewable

Hey! I making test orders on my TaskHive WP page with digital downloadable products. When I purchase the products (as a buyer) and want to check my orders or redownload the file I purchased I get a critical error every time:

here is the error code that my log receives:

[19-Dec-2023 10:50:22 UTC] PHP Fatal error:  Uncaught Error: Call to a member function get_status() on null in /home/nwolfhu1/plugins.nwolf.digital/wp-content/plugins/hivepress-marketplace/templates/order/view/order-status.php:5
Stack trace:
#0 /home/nwolfhu1/plugins.nwolf.digital/wp-content/plugins/hivepress/includes/blocks/class-part.php(61): include()
#1 /home/nwolfhu1/plugins.nwolf.digital/wp-content/plugins/hivepress-marketplace/includes/components/class-marketplace.php(2396): HivePress\Blocks\Part->render()
#2 /home/nwolfhu1/plugins.nwolf.digital/wp-includes/class-wp-hook.php(324): HivePress\Components\Marketplace->render_order_status(Object(Automattic\WooCommerce\Admin\Overrides\Order))
#3 /home/nwolfhu1/plugins.nwolf.digital/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters('', Array)
#4 /home/nwolfhu1/plugins.nwolf.digital/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#5 /home/nwolfhu1/plugins.nwolf.digital/wp-content/plugins/woocommerce/templates/myaccount/orders.php(45): do_action('woocommerce_my_...', Object(Automattic\WooCommerce\Admin\Overrides\Order))
#6 /home/nwolfhu1/plugins.nwolf.digital/wp-content/plugins/woocommerce/includes/wc-core-functions.php(345): include('/home/nwolfhu1/...')
#7 /home/nwolfhu1/plugins.nwolf.digital/wp-content/plugins/woocommerce/includes/wc-template-functions.php(3270): wc_get_template('myaccount/order...', Array)
#8 /home/nwolfhu1/plugins.nwolf.digital/wp-includes/class-wp-hook.php(324): woocommerce_account_orders(1)
#9 /home/nwolfhu1/plugins.nwolf.digital/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters('', Array)
#10 /home/nwolfhu1/plugins.nwolf.digital/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#11 /home/nwolfhu1/plugins.nwolf.digital/wp-content/plugins/woocommerce/includes/wc-template-functions.php(3218): do_action('woocommerce_acc...', '')
#12 /home/nwolfhu1/plugins.nwolf.digital/wp-includes/class-wp-hook.php(324): woocommerce_account_content('')
#13 /home/nwolfhu1/plugins.nwolf.digital/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array)
#14 /home/nwolfhu1/plugins.nwolf.digital/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#15 [internal function]: do_action('woocommerce_acc...')
#16 /home/nwolfhu1/plugins.nwolf.digital/wp-content/plugins/hivepress/includes/blocks/class-callback.php(55): call_user_func_array('do_action', Array)
#17 /home/nwolfhu1/plugins.nwolf.digital/wp-content/plugins/hivepress/includes/blocks/class-container.php(106): HivePress\Blocks\Callback->render()
#18 /home/nwolfhu1/plugins.nwolf.digital/wp-content/plugins/hivepress/includes/blocks/class-container.php(106): HivePress\Blocks\Container->render()
#19 /home/nwolfhu1/plugins.nwolf.digital/wp-content/plugins/hivepress/includes/blocks/class-container.php(106): HivePress\Blocks\Container->render()
#20 /home/nwolfhu1/plugins.nwolf.digital/wp-content/plugins/hivepress/includes/blocks/class-container.php(106): HivePress\Blocks\Container->render()
#21 /home/nwolfhu1/plugins.nwolf.digital/wp-content/plugins/hivepress/includes/blocks/class-template.php(116): HivePress\Blocks\Container->render()
#22 /home/nwolfhu1/plugins.nwolf.digital/wp-content/plugins/hivepress/templates/woocommerce/myaccount/my-account.php(5): HivePress\Blocks\Template->render()
#23 /home/nwolfhu1/plugins.nwolf.digital/wp-content/plugins/woocommerce/includes/wc-core-functions.php(345): include('/home/nwolfhu1/...')
#24 /home/nwolfhu1/plugins.nwolf.digital/wp-content/plugins/woocommerce/includes/shortcodes/class-wc-shortcode-my-account.php(123): wc_get_template('myaccount/my-ac...', Array)
#25 /home/nwolfhu1/plugins.nwolf.digital/wp-content/plugins/woocommerce/includes/shortcodes/class-wc-shortcode-my-account.php(72): WC_Shortcode_My_Account::my_account('')
#26 /home/nwolfhu1/plugins.nwolf.digital/wp-content/plugins/woocommerce/includes/class-wc-shortcodes.php(72): WC_Shortcode_My_Account::output('')
#27 /home/nwolfhu1/plugins.nwolf.digital/wp-content/plugins/woocommerce/includes/class-wc-shortcodes.php(115): WC_Shortcodes::shortcode_wrapper(Array, '')
#28 /home/nwolfhu1/plugins.nwolf.digital/wp-includes/shortcodes.php(433): WC_Shortcodes::my_account('', '', 'woocommerce_my_...')
#29 [internal function]: do_shortcode_tag(Array)
#30 /home/nwolfhu1/plugins.nwolf.digital/wp-includes/shortcodes.php(273): preg_replace_callback('/\\[(\\[?)(woocom...', 'do_shortcode_ta...', '[woocommerce_my...')
#31 /home/nwolfhu1/plugins.nwolf.digital/wp-includes/class-wp-hook.php(324): do_shortcode('[woocommerce_my...')
#32 /home/nwolfhu1/plugins.nwolf.digital/wp-includes/plugin.php(205): WP_Hook->apply_filters('[woocommerce_my...', Array)
#33 /home/nwolfhu1/plugins.nwolf.digital/wp-includes/post-template.php(256): apply_filters('the_content', '<!-- wp:shortco...')
#34 /home/nwolfhu1/plugins.nwolf.digital/wp-content/themes/taskhive/page.php(7): the_content(NULL, true)
#35 /home/nwolfhu1/plugins.nwolf.digital/wp-includes/template-loader.php(106): include('/home/nwolfhu1/...')
#36 /home/nwolfhu1/plugins.nwolf.digital/wp-blog-header.php(19): require_once('/home/nwolfhu1/...')
#37 /home/nwolfhu1/plugins.nwolf.digital/index.php(17): require('/home/nwolfhu1/...')
#38 {main}
  thrown in /home/nwolfhu1/plugins.nwolf.digital/wp-content/plugins/hivepress-marketplace/templates/order/view/order-status.php on line 5

Steps that I took to overcome this issue:

  • Created WooCommerce Pages
  • Disabled Caching for logged in users
  • Updated permalinks

Also I am not using any 3rd party plugins or customizations.

Can you help me solve this issue?

Hi,

I recommend checking the PHP logs to understand what exactly is causing this issue.

There are three methods for checking PHP logs:

  • through the hosting provider;
  • through the file manager, finding the logs folder;
  • through a third-party plugin

To obtain a comprehensive guide, we highly recommend referring to this tutorial.

​I hope this is helpful to you.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.