Fatal Error Trashing Posts
-
Running Version 3.9.0
Had 3 WooCommerce orders in the trash, when I went to clicked empty trash, or if I tried to use bulk edit and permanently delete orders it throws a 500 error.
[06-Oct-2022 16:20:22] WARNING: [pool www] child 8355 said into stderr: “NOTICE: PHP message: PHP Fatal error: Uncaught TypeError: Argument 1 passed to Beyondwords\Wordpress\Component\Post\PostContentUtils::createHash() must be of the type int, string given, called in /var/www/xxx.com/wp-content/plugins/speechkit/src/Core/ApiClient.php on line 104 and defined in /var/www/xxx.com/wp-content/plugins/speechkit/src/Component/Post/PostContentUtils.php:223”
So what I did on
/var/www/xxx.com/wp-content/plugins/speechkit/src/Core/ApiClient.php
was to update that function withif(is_int($postId)){ $hash = PostContentUtils::createHash($postId); update_post_meta($postId, 'beyondwords_hash', $hash); }
Just an FYI
- The topic ‘Fatal Error Trashing Posts’ is closed to new replies.