December 6, 16:37
Your error should be triggered by the fact that the code of the import function in the WooCommerce plugin uses the trim() function to handle null values.
Since PHP 8.1, the trim() function no longer allows passing null values to its parameter, which causes this "Passing null to parameter" error.
It is recommended that you lower your PHP version