Can’t import reviews from CSV files- Customer Reviews for WooCommerce

If you are using the Customer Reviews for WooCommerce plugin and have encountered a problem importing reviews from CSV files, you’ve come to the right place.

I recently experienced a similar issue and sought assistance from the plugin’s support team.

Upon further investigation, I discovered the root cause of the CSV review import failure was a PHP fatal error. Allow me to share the details of the error:

2023-06-28T05:45:17+00:00 CRITICAL Uncaught WpOrg\Requests\Exception\InvalidArgument: WpOrg\Requests\Cookie::__construct(): Argument #2 ($value) must be of type string, array given in /Applications/MAMP/htdocs/rasayanam/wp-includes/Requests/src/Exception/InvalidArgument.php:29
Stack trace:
#0 /Applications/MAMP/htdocs/rasayanam/wp-includes/Requests/src/Cookie.php(88): WpOrg\Requests\Exception\InvalidArgument::create(2, '$value', 'string', 'array')
#1 /Applications/MAMP/htdocs/rasayanam/wp-includes/class-wp-http.php(470): WpOrg\Requests\Cookie->__construct('po_assigned_rol...', Array, Array, Array)
#2 /Applications/MAMP/htdocs/rasayanam/wp-includes/class-wp-http.php(352): WP_Http::normalize_cookies(Array)
#3 /Applications/MAMP/htdocs/rasayanam/wp-includes/class-wp-http.php(617): WP_Http->request('http://localhos...', Array)
#4 /Applications/MAMP/htdocs/rasayanam/wp-includes/http.php(179): WP_Http->post('http://localhos...', Array)
#5 /Applications/MAMP/htdocs/rasayanam/wp-content/plugins/customer-reviews-woocommerce/includes/import-export/crwp- in /Applications/MAMP/htdocs/rasayanam/wp-includes/Requests/src/Exception/InvalidArgument.php on line 29

To begin troubleshooting, it is advisable to enable WordPress debug mode or activate PHP error logs. This will help provide more information about the error and aid in resolving the issue.

define( 'WP_DEBUG', true );

In my specific case, the problem was related to a cookie. To rectify the situation, I removed the cookie called “po_assigned_roles” from my browser and resubmitted the CSV import.

s

I believe this solution might work for you as well. Give it a try and see if it resolves your problem.

Wishing you continued success in your endeavors.