Title: Fatal Error Trashing Posts
Last modified: October 6, 2022

---

# Fatal Error Trashing Posts

 *  Resolved [Matt Pramschufer](https://wordpress.org/support/users/mattpramschufer/)
 * (@mattpramschufer)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/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 with
 *     ```
       if(is_int($postId)){
            $hash = PostContentUtils::createHash($postId);
            update_post_meta($postId, 'beyondwords_hash', $hash);
       }
       ```
   
 * Just an FYI
    -  This topic was modified 3 years, 8 months ago by [Matt Pramschufer](https://wordpress.org/support/users/mattpramschufer/).

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [BeyondWords (formerly SpeechKit)](https://wordpress.org/support/users/speechkit/)
 * (@speechkit)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/fatal-error-trashing-posts/#post-16117744)
 * Hi Matt,
 * Thank you, we are looking into this.
 * Would it be possible to temporarily disable WooCommerce using [https://wordpress.org/plugins/health-check/](https://wordpress.org/plugins/health-check/)
   and let us know if the problem still occurs?
 * It may also be helpful if you could email your site info (using “Copy site info
   to clipboard” at Tools > Site Health) and project ID to [support@beyondwords.io](https://wordpress.org/support/topic/fatal-error-trashing-posts/support@beyondwords.io?output_format=md)
 * Thanks,
    Rachel
 *  Plugin Author [BeyondWords (formerly SpeechKit)](https://wordpress.org/support/users/speechkit/)
 * (@speechkit)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/fatal-error-trashing-posts/#post-16121179)
 * Hi Matt,
 * Our developer has just shipped an update, could you please install that and let
   us know if you still experience any issues? If you could email through your site
   info along with your project ID that would be great.
 * Thanks,
    Rachel

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Fatal Error Trashing Posts’ is closed to new replies.

 * ![](https://ps.w.org/speechkit/assets/icon-256x256.png?rev=2633494)
 * [BeyondWords - Text-to-Speech](https://wordpress.org/plugins/speechkit/)
 * [Support Threads](https://wordpress.org/support/plugin/speechkit/)
 * [Active Topics](https://wordpress.org/support/plugin/speechkit/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/speechkit/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/speechkit/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [BeyondWords (formerly SpeechKit)](https://wordpress.org/support/users/speechkit/)
 * Last activity: [3 years, 7 months ago](https://wordpress.org/support/topic/fatal-error-trashing-posts/#post-16121179)
 * Status: resolved