This user has no favorite topics.
Favorite Forum Topics
Forum Topics Created
Status |
Topic
|
Supporter | Voices | Posts | Freshness |
---|---|---|---|---|---|
Fatal error when attempting to add a translation using the Classic / WordPress Editor
Started by: Kristoff
in: English Support
Problem: If you're experiencing a fatal error (like the following) when attempting to add a translation using the Classic / WordPress editor, and the error message indicates a type error with in_array() function where the second argument must be of type array but bool is given, this might be due to corrupt entries in your database. Fatal error: Uncaught TypeError: in_array(): Argument #2 ($haystack) must be of type array, bool given in (...)/wp-content/plugins/sitepress-multilingual-cms/classes/menu-elements/class-wpml-admin-scripts-setup.php:143 Solution: We recommend trying the following steps after ensuring you have a backup of your site: 1. Navigate to All Posts. This issue is related to known issues which can be found here: If this solution does not resolve your issue or seems irrelevant due to being outdated or not applicable to your case, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. Additionally, please feel free to open a new support ticket for further assistance at WPML Support Forum. |
|
0 | 13 | 5 months, 3 weeks ago |