We received the following error on our site, could you kindly assist:
Error Details
=============
An error of type E_ERROR was caused in line 72 of the file /usr/www/users/swartsucwy/wp-content/plugins/sitepress-multilingual-cms/classes/action-filter-loader/class-wpml-action-type.php. Error message: Uncaught TypeError: array_intersect(): Argument #1 ($array) must be of type array, bool given in /usr/www/users/swartsucwy/wp-content/plugins/sitepress-multilingual-cms/classes/action-filter-loader/class-wpml-action-type.php:72
Stack trace:
#0 /usr/www/users/swartsucwy/wp-content/plugins/sitepress-multilingual-cms/classes/action-filter-loader/class-wpml-action-type.php(72): array_intersect(false, Array)
#1 /usr/www/users/swartsucwy/wp-content/plugins/sitepress-multilingual-cms/classes/action-filter-loader/class-wpml-action-type.php(63): WPMLActionType->has_implementation(Array)
#2 /usr/www/users/swartsucwy/wp-content/plugins/sitepress-multilingual-cms/classes/action-filter-loader/class-wpml-action-filter-loader.php(37): WPMLActionType->is('backend')
#3 /usr/www/users/swartsucwy/wp-content/plugins/sitepress-multilingual-cms/sitepress.php(225): WPML_Action_Filter_Loader->load(Array)
#4 /usr/www/users/swartsucwy/wp-settings.php(428): include_once('/usr/www/users/...')
#5 /usr/www/users/swartsucwy/wp-config.php(96): require_once('/usr/www/users/...')
#6 /usr/www/users/swartsucwy/wp-load.php(50): require_once('/usr/www/users/...')
#7 /usr/www/users/swartsucwy/wp-admin/admin.php(34): require_once('/usr/www/users/...')
#8 /usr/www/users/swartsucwy/wp-admin/options.php(19): require_once('/usr/www/users/...')
#9 {main}
thrown
Thank you for providing the debug information, consider followings:
IMPORTANT: Take full backup of your website and database beforehand. It is highly advised to try the following on a staging/dev site first, so your live website isn't compromised.
A) I see that the "WP Memory Limit" is set to 40M. WPML requires a memory limit of at least 128MB while 256MB is recommended. See https://wpml.org/home/minimum-requirements/ for detailed information. You can set WP Memory Limit in your wp-config.php file by adding following code:
B) Update all WPML plugins to latest versions. You can try this by going to Plugins -> Add New -> Commercial -> Check for updates or manually downloading from https://wpml.org/account/downloads/ and uploading via Plugins -> Add New -> Upload.
Steps to update plugins manually from Plugins page:
1) Deactivate existing WPML plugins
2) Delete WPML plugins
3) Download latest versions from https://wpml.org/account/downloads/
4) Upload using Plugins -> Add New -> Upload
5) Activate
Steps to update plugins manually via FTP:
1) Deactivate existing WPML plugins.
2) Connect to your site via FTP and browse to the /wp-content/plugins/ folder.
3) Delete WPML plugins folders.
4) Download the latest versions from https://wpml.org/account/downloads/.
5) Unzip the downloaded files in separate folders, usually when you unzip the file, it creates a folder with the name of the plugin, with zip file's content extracted into it.
6) Upload the extracted (unzipped) folder via FTP, to the /wp-content/plugins/ folder.
7) Go to WP Admin -> Plugins and Activate.
C) Once above mentioned are fixed, try the followings:
IMPORTANT: Take full backup of your website and database beforehand. It is highly advised to try the following on a staging/dev site first, so your live website isn't compromised.
- Deactivate all plugins except WPML and its addons and check for the issue.
- Activate each plugin one-by-one, while keeping check on the issue after a plugin is activated. This way you'll be able to pinpoint a plugin having a conflict (or problem), if any. You can also check for plugin compatibility with WPML at https://wpml.org/plugin/. If you find a plugin not compatible with WPML, I'll advise you to contact the plugin author.
- If the problem persists, repeat the above steps with a default theme of WordPress (i.e. 2023).
- Also check the browser's console for any JavaScript errors. If you find any, copy that in your next reply. See https://wordpress.org/support/article/using-your-browser-to-diagnose-javascript-errors/ for details on how to find these errors.
Please let me know if this helps resolve the issue. Or I'll try my best to further assist you on the matter.
Regards.
The topic ‘[Closed] Error message: Uncaught TypeError: array_intersect(): Argument #1 ($array)’ is closed to new replies.