Title: error after installing the plugin
Last modified: September 24, 2024

---

# error after installing the plugin

 *  Resolved [monika21](https://wordpress.org/support/users/monika21/)
 * (@monika21)
 * [1 year, 8 months ago](https://wordpress.org/support/topic/error-after-installing-the-plugin/)
 * After installing the plugin, I can’t open any posts in the editor. WordPress 
   crashes and I get the following error message:
 * > An error of type E_ERROR was found in line 197 of the file xxxxx/wp-content/
   > plugins/ai-text-to-speech/aitts.php
   > Error message: Uncaught TypeError: in_array(): Argument #2 ($haystack) must
   > be of type array, string given in xxxxx/wp-content/plugins/ai-text-to-speech/
   > aitts.php:197
   > Stack trace:0 xxxxx/wp-content/plugins/ai-text-to-speech/aitts.
   > php(197): in_array()1 xxxxx/wp-includes/class-wp-hook.php(324): ai_tts_enqueue_posts_styles()
   > 2 xxxxx/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()3 xxxxx/
   > wp-includes/plugin.php(517): WP_Hook->do_action()4 xxxxx/wp-admin/admin-header.
   > php(118): do_action()5 xxxxx/wp-admin/edit-form-advanced.php(425): require_once(‘…’)
   > 6 xxxxx/wp-admin/post.php(206): require(‘…’) 7 {main}
   > thrown

Viewing 1 replies (of 1 total)

 *  Plugin Author [Elliot Sowersby / RelyWP](https://wordpress.org/support/users/elliotvs/)
 * (@elliotvs)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/error-after-installing-the-plugin/#post-18081297)
 * Hi,
 * This error should now be fixed in the latest update.

Viewing 1 replies (of 1 total)

The topic ‘error after installing the plugin’ is closed to new replies.

 * ![](https://ps.w.org/ai-text-to-speech/assets/icon-128x128.png?rev=3061585)
 * [AI Text to Speech - TTS Plugin For WordPress](https://wordpress.org/plugins/ai-text-to-speech/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ai-text-to-speech/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ai-text-to-speech/)
 * [Active Topics](https://wordpress.org/support/plugin/ai-text-to-speech/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ai-text-to-speech/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ai-text-to-speech/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Elliot Sowersby / RelyWP](https://wordpress.org/support/users/elliotvs/)
 * Last activity: [1 year, 7 months ago](https://wordpress.org/support/topic/error-after-installing-the-plugin/#post-18081297)
 * Status: resolved