Warning: preg_match_all(): Compilation failed: invalid range in character class
-
If I save a change in WordPress on the Menue Site, I get the warning:
Warning: preg_match_all(): Compilation failed: invalid range in character class at offset 11 in /home/.sites/149/site8938587/web/wp-content/plugins/js_composer/include/autoload/hook-vc-grid.php on line 162
and
Warning: Cannot modify header information – headers already sent by (output started at /home/.sites/149/site8938587/web/wp-content/plugins/js_composer/include/autoload/hook-vc-grid.php:162) in /home/.sites/149/site8938587/web/wp-admin/admin-header.php on line 9
Line 162 hook-vc-grid.php is:
preg_match_all( “/$pattern/”, $post->post_content, $found ); // fetch only needed shortcodesin Line 169 i allready changed from:
$id_pattern = ‘/’ . $this->grid_id_unique_name . ‘\:([\w-_]+)/’;into:
$id_pattern = ‘/’ . $this->grid_id_unique_name . ‘\:([\w\-_]+)/’;But I still have the warning.
So please could somebody help with Line 162?Thanks,
cquadrat
My site runs with PHP 7.3
- The topic ‘Warning: preg_match_all(): Compilation failed: invalid range in character class’ is closed to new replies.