Skip Navigation

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

Sun Mon Tue Wed Thu Fri Sat
9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 - -
- - - - - - -

Supporter timezone: Asia/Yerevan (GMT+04:00)

This topic contains 2 replies, has 1 voice.

Last updated by Christopher Amirian 2 months ago.

Assisted by: Christopher Amirian.

Author Posts
May 5, 2025 at 12:23 pm #16996185

newsF

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

Questions:

May 6, 2025 at 11:19 am #17001154

newsF

it is a critical issue, please check it asap

May 6, 2025 at 3:44 pm #17002713

Christopher Amirian
WPML Supporter since 07/2020

Languages: English (English )

Timezone: Asia/Yerevan (GMT+04:00)

Hi,

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.