Hi
Since our hosting company upgraded to PHP8.0 ATUM product levels has stopped working giving us a critical error in the plugin. So I thought I would update the plugin as this usually sorts it all out.
I updated the plugin and the whole website fell over. Big critical error. So we had to rename the plugin folder in order to get the site working again but now the whole 4000+ products have no stock control.
Can anyone please help?
Wordpress 6.1.1
Woocommerce Version 7.3.0
Error Details
An error of type E_ERROR was caused in line 1814 of the file /www/mailorderbeads_746/public/wp-content/plugins/atum-stock-manager-for-woocommerce/classes/Components/AtumListTables/AtumListTable.php. Error message: Uncaught TypeError: in_array(): Argument #2 ($haystack) must be of type array, null given in /www/mailorderbeads_746/public/wp-content/plugins/atum-stock-manager-for-woocommerce/classes/Components/AtumListTables/AtumListTable.php:1814
Stack trace:
#0 /www/mailorderbeads_746/public/wp-content/plugins/atum-stock-manager-for-woocommerce/classes/Components/AtumListTables/AtumListTable.php(1814): in_array(166899, NULL)
#1 [internal function]: Atum\Components\AtumListTables\AtumListTable->column_calc_stock_indicator(Object(WP_Post), 'calc_stock_indi...', 'data-colname="S...', 'title')
#2 /www/mailorderbeads_746/public/wp-content/plugins/atum-stock-manager-for-woocommerce/classes/Components/AtumListTables/AtumListTable.php(808): call_user_func(Array, Object(WP_Post), 'calc_stock_indi...', 'data-colname="S...', 'title')
#3 /www/mailorderbeads_746/public/wp-content/plugins/atum-stock-manager-for-woocommerce/classes/Components/AtumListTables/AtumListTable.php(609): Atum\Components\AtumListTables\AtumListTable->single_row_columns(Object(WP_Post))
#4 /www/mailorderbeads_746/public/wp-content/plugins/atum-product-levels/classes/ManufacturingCentral/Lists/ListTrait.php(81): Atum\Components\AtumListTables\AtumListTable->single_row(Object(WP_Post))
#5 /www/mailorderbeads_746/public/wp-admin/includes/class-wp-list-table.php(1459): AtumLevels\ManufacturingCentral\Lists\ListTable->single_row(Object(WP_Post))
#6 /www/mailorderbeads_746/public/wp-admin/includes/class-wp-list-table.php(1444): WP_List_Table->display_rows()
#7 /www/mailorderbeads_746/public/wp-content/plugins/atum-stock-manager-for-woocommerce/classes/Components/AtumListTables/AtumListTable.php(3386): WP_List_Table->display_rows_or_placeholder()
#8 /www/mailorderbeads_746/public/wp-content/plugins/atum-product-levels/views/manufacturing-central.php(69): Atum\Components\AtumListTables\AtumListTable->display()
#9 /www/mailorderbeads_746/public/wp-content/plugins/atum-stock-manager-for-woocommerce/classes/Inc/Helpers.php(1150): include('/www/mailorderb...')
#10 /www/mailorderbeads_746/public/wp-content/plugins/atum-product-levels/classes/ManufacturingCentral/ManufacturingCentral.php(123): Atum\Inc\Helpers::load_view('/www/mailorderb...', Array)
#11 /www/mailorderbeads_746/public/wp-includes/class-wp-hook.php(308): AtumLevels\ManufacturingCentral\ManufacturingCentral->display('')
#12 /www/mailorderbeads_746/public/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters('', Array)
#13 /www/mailorderbeads_746/public/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#14 /www/mailorderbeads_746/public/wp-admin/admin.php(259): do_action('atum-inventory...')
#15 {main}
thrown
Any help would be really appreciated.
Thank you in advance.
Robin