Background of the issue:
I am trying to open my site, but I encountered an issue.got this error
Fatal error: Uncaught TypeError: array_intersect_key(): Argument #1 ($array) must be of type array, bool given in /var/www/html/wp-content/plugins/sitepress-multilingual-cms/classes/language-switcher/class-wpml-ls-templates.php:73
Symptoms:
Fatal error: Uncaught TypeError: array_intersect_key(): Argument #1 ($array) must be of type array, bool given in /var/www/html/wp-content/plugins/sitepress-multilingual-cms/classes/language-switcher/class-wpml-ls-templates.php:73
Welcome to WPML support. If you do not have access to the dashboard of the website please go to the files of your website either via FTP connection or your hosting panel and rename this folder:
wp-content/plugins/sitepress-multilingual-cms
That will force the WPML Multilingual CMS to deactivate and you will have access to WordPress Dashboard.
After that, please test to see if the problem happens on a minimal installation and if not pinpoint what other plugin causes the issue.
- IMPORTANT STEP! Create a backup of your website. Or better approach will be to test this on a copy/staging version of the website to avoid any disruption of a live website.
- Switch to the default theme such as "TwentyTwenty" by going to "WordPress Dashboard > Appearance > themes".
- Go to "WordPress Dashboard > Plugins" and deactivate all plugins except WPML and its add-ons.
- Check if you can still recreate the issue.
- If not, re-activate your plugins one by one and check the issue each time to find out the plugin that causes the problem.
Thanks.
The topic ‘[Closed] Fatal error: Uncaught TypeError: array_intersect_key(): Argument #1 ($array) must be of type array, …’ is closed to new replies.