Support

Search results for ""

Sorry, no results found. Perhaps you would like to search the documentation?
All Topics
ted1

WooCommerce Order Export list error on Subscription Relationship field

We are getting the following critical error when trying to export orders with the Subscription Relationship column included (this comes from WooCommerce Subscriptions). When we exclude the column it works fine.

2023-11-07T15:14:47+00:00 CRITICAL Uncaught TypeError: WC_Subscriptions_Order::render_contains_subscription_column_content(): Argument #1 ($order_id) must be of type int, null given, called in /chroot/home/ac06e1b5/d2feb3c6d9.nxcli.net/html/wp-content/plugins/woocommerce-subscriptions/vendor/woocommerce/subscriptions-core/includes/class-wc-subscriptions-order.php on line 435 and defined in /chroot/home/ac06e1b5/d2feb3c6d9.nxcli.net/html/wp-content/plugins/woocommerce-subscriptions/vendor/woocommerce/subscriptions-core/includes/class-wc-subscriptions-order.php:2366
Stack trace:
#0 /chroot/home/ac06e1b5/d2feb3c6d9.nxcli.net/html/wp-content/plugins/woocommerce-subscriptions/vendor/woocommerce/subscriptions-core/includes/class-wc-subscriptions-order.php(435): WC_Subscriptions_Order::render_contains_subscription_column_content(NULL)
#1 /chroot/home/ac06e1b5/d2feb3c6d9.nxcli.net/html/wp-includes/class-wp-hook.php(312): WC_Subscriptions_Order::add_contains_subscription_column_content('subscription_re...')
#2 /chroot/home/ac06e1b5/d2feb3c6d9.nxcli.net/html/wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters(NULL, Array)
#3 /chroot/home/ac06e1b5/d2feb3c6d9.nxcli.net/html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#4 /chroot/home/ac06e1b5/d2feb3c6d9.nxcli.net/html/wp-admin/includes/class-wp-posts-list-table.php(1387): do_action('manage_shop_ord...', 'subscription_re...', 86564)
#5 /chroot/home/ac06e1b5/d2feb3c6d9.nxcli.net/html/wp-content/plugins/admin-columns-pro/admin-columns/classes/ListTable/Post.php(27): WP_Posts_List_Table->column_default(Object(WP_Post), 'subscription_re...')
#6 /chroot/home/ac06e1b5/d2feb3c6d9.nxcli.net/html/wp-content/plugins/admin-columns-pro/classes/Export/Strategy.php(178): AC\ListTable\Post->get_column_value('subscription_re...', 86564)
#7 /chroot/home/ac06e1b5/d2feb3c6d9.nxcli.net/html/wp-content/plugins/admin-columns-pro/classes/Export/Strategy.php(261): ACP\Export\Strategy->get_rows(Array, Array)
#8 /chroot/home/ac06e1b5/d2feb3c6d9.nxcli.net/html/wp-content/plugins/admin-columns-pro/classes/Export/Strategy/Post.php(78): ACP\Export\Strategy->export(Array)
#9 /chroot/home/ac06e1b5/d2feb3c6d9.nxcli.net/html/wp-includes/class-wp-hook.php(310): ACP\Export\Strategy\Post->catch_posts(Array, Object(WP_Query))
#10 /chroot/home/ac06e1b5/d2feb3c6d9.nxcli.net/html/wp-includes/plugin.php(256): WP_Hook->apply_filters(Array, Array)
#11 /chroot/home/ac06e1b5/d2feb3c6d9.nxcli.net/html/wp-includes/class-wp-query.php(3511): apply_filters_ref_array('the_posts', Array)
#12 /chroot/home/ac06e1b5/d2feb3c6d9.nxcli.net/html/wp-includes/class-wp-query.php(3800): WP_Query->get_posts()
#13 /chroot/home/ac06e1b5/d2feb3c6d9.nxcli.net/html/wp-includes/class-wp.php(662): WP_Query->query(Array)
#14 /chroot/home/ac06e1b5/d2feb3c6d9.nxcli.net/html/wp-includes/class-wp.php(782): WP->query_posts()
#15 /chroot/home/ac06e1b5/d2feb3c6d9.nxcli.net/html/wp-includes/functions.php(1335): WP->main(Array)
#16 /chroot/home/ac06e1b5/d2feb3c6d9.nxcli.net/html/wp-admin/includes/post.php(1283): wp(Array)
#17 /chroot/home/ac06e1b5/d2feb3c6d9.nxcli.net/html/wp-admin/includes/class-wp-posts-list-table.php(165): wp_edit_posts_query()
#18 /chroot/home/ac06e1b5/d2feb3c6d9.nxcli.net/html/wp-admin/edit.php(235): WP_Posts_List_Table->prepare_items()
#19 {main}
thrown in /chroot/home/ac06e1b5/d2feb3c6d9.nxcli.net/html/wp-content/plugins/woocommerce-subscriptions/vendor/woocommerce/subscriptions-core/includes/class-wc-subscriptions-order.php on line 2366

5 months, 3 weeks ago
Stefan van den Dungen Gronovius
Developer

Can you tell me the version of the following plugins:
Admin Columns Pro
WooCommerce
WooCommerce Subscriptions?

I’m not able to reproduce the issue with lots of subscriptions.
Can you also try to export just one page of items by selecting them with the checkbox and see if you’re also able to reproduce the issue in that case?

5 months, 3 weeks ago

You must be logged in to reply to this topic.