PHP Fatal error
-
This shows up in the log when I try to export reviews.
[28-Mar-2023 05:52:40 UTC] PHP Fatal error: Uncaught TypeError: urldecode(): Argument #1 ($string) must be of type string, array given
-
Thanks for trying our plugin and reporting this issue!
We looked at the plugin code but did not find any ‘urldecode’ function in the tool for exporting reviews.
Could you please enable debugging in WordPress (see How to Enable Debugging in WordPress) and provide a more detailed error log?
Sorry posting in the wrong thread.
-
This reply was modified 3 years, 2 months ago by
wpcheetah.
No because it contains sensitive information that I don’t want to post in public here.
I sent you an email with more information but never heard back.
Hi,
You can remove or remove some of the information related to your server name and WordPress folder in error log but keep the path to the plugin folder and file name. It’s not sensitive information and can be public.
Okay, here you go. This is the latest error I got after upgrading to WP 6.2 and latest version of CusRev. PHP is 8.0.
[30-Mar-2023 01:13:06 UTC] PHP Fatal error: Uncaught WpOrg\Requests\Exception\InvalidArgument: WpOrg\Requests\Cookie::__construct(): Argument #2 ($value) must be of type string, array given in /wp-includes/Requests/src/Exception/InvalidArgument.php:29 Stack trace: #0 /wp-includes/Requests/src/Cookie.php(87): WpOrg\Requests\Exception\InvalidArgument::create() #1 /wp-includes/class-wp-http.php(470): WpOrg\Requests\Cookie->__construct() #2 /wp-includes/class-wp-http.php(352): WP_Http::normalize_cookies() #3 /wp-includes/class-wp-http.php(616): WP_Http->request() #4 /wp-includes/http.php(179): WP_Http->post() #5 /wp-content/plugins/woocommerce/includes/libraries/wp-async-request.php(85): wp_remote_post() #6 /wp-content/plugins/woocommerce/includes/libraries/wp-background-process.php(76): WP_Async_Request->dispatch() #7 /wp-content/plugins/customer-reviews-woocommerce/includes/import-export/class-cr-reviews-exporter.php(132): WP_Background_Process->dispatch() #8 /wp-includes/class-wp-hook.php(308): CR_Reviews_Exporter->start_export() #9 /wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters() #10 /wp-includes/plugin.php(517): WP_Hook->do_action() #11 /wp-admin/admin-ajax.php(188): do_action() #12 {main} thrown in /wp-includes/Requests/src/Exception/InvalidArgument.php on line 29
Hi,
Thank you for your additional information.
The export feature of our plugin relies on a core feature of WooCommerce so I think this issue also affects the export feature of WooCommerce. Meanwhile, you can try to downgrade the PHP version to 7.4 and export reviews again.
Let me know how it goes.
We haven’t heard from you for more than two weeks. For this reason, I’ll assume that either you are not interested in this question/problem anymore or it has been resolved. If you still require any help, please start a new forum topic.
-
This reply was modified 3 years, 2 months ago by
The topic ‘PHP Fatal error’ is closed to new replies.