Overview of the Issue
If the site is using PHP 8.1 and has WPML enabled, a notice will likely appear in the debug.log:
PHP Deprecated: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in /wp-content/plugins/sitepress-multilingual-cms/addons/wpml-page-builders/classes/Integrations/Elementor/Hooks/DynamicElements.php on line 9
Workaround
This issue is fixed in WPML 4.6.5. Updating solves it on your site, so you only need this workaround if you can’t update yet.
Update WPML to version 4.6.5
Still Seeing This Issue?
If updating doesn’t fix it, ask a support question and we’ll look into it with you.
Ask a support question