This thread is resolved. Here is a description of the problem and solution.
Problem:
You are experiencing a lot of deprecation errors from the WPML plugin, which is causing a flood of events in your debug log file. Specifically, the error is related to the
preg_match()
function being passed a null value in the
mobile-detect.php
file.
Solution:
We recommend a workaround to address this issue. Please ensure to backup your database and website before making any changes. You need to edit the file at
wp-content/plugins/sitepress-multilingual-cms/lib/mobile-detect.php
. Around line 271, replace the existing code:
public function setUserAgent($userAgent = null){
with:
public function setUserAgent($userAgent = 'NOT NULL'){
If this solution does not resolve your issue or seems irrelevant due to updates or differences in your setup, 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. If the problem persists, please open a new support ticket.
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.