Warning: preg_replace(): Compilation failed: escape sequence is invalid in character class at offset 4 in /home/charcocc/domains/charcoal.in.th/public_html/wp-content/plugins/so-css/so-css.php on line 686
This is line 686
$css = preg_replace( array_keys( $regex ), $regex, $css );
1.I don’t know why it happen I didn’t do anything with plugin files.
2.I try delete all css code, remove and re-install plugin already but error message still show.
3.My css design in frontend still working properly, Even though it show error message in backend.
Please help what should I do, am I do something wrong?
Hi Nattakorn
Thanks for posting your question.
We have logged the issue on GitHub https://github.com/siteorigin/so-css/issues/97 and will attend as soon as we’re able to.
To remove the warning, you could perhaps check that WP_DEBUG is set to false. In this post https://www.wpbeginner.com/wp-tutorials/how-to-set-up-wordpress-error-logs-in-wp-config/ locate the section where WP_DEBUG is set to true. Ideally, you want WP_DEBUG set to false so that warnings and errors don’t print on your site. It’s a bit of a technical task though.
Sorry, we don’t have more to offer at the moment.