Problem in adding new site on WP multisite
It's for two or three months that this problem exists in WordPress multisite and I'm still waiting for a solution or an update.
When adding new site, I get this error:
Warning: preg_match() expects parameter 2 to be string, object given in wp-includes/formatting.php on line 3435
Warning: preg_match() expects parameter 2 to be string, object given in wp-includes/formatting.php on line 3424
Warning: preg_match() expects parameter 2 to be string, object given in wp-includes/formatting.php on line 3435
Warning: strip_tags() expects parameter 1 to be string, object given in wp-includes/formatting.php on line 3407
Warning: strip_tags() expects parameter 1 to be string, object given in wp-includes/formatting.php on line 3407
Catchable fatal error: Object of class WP_Error could not be converted to string in wp-includes/kses.php on line 1038
Have anybody found a safe solution for this without making any threat to the database?
I've already found some suggestions on this post. They say we should change the value of:
define('DB_COLLATE', '');
to:
define('DB_COLLATE', 'utf8mb4_general_ci');
Is it safe for our website?
We have lots of posts on our website and we don't want to make any problem for our database and website.