Support » Plugin: Visual Composer Website Builder, Landing Page Builder, Custom Theme Builder, Maintenance Mode & Coming Soon Pages » Warning: preg_match_all(): Compilation failed: invalid range in character class

  • Resolved cquadrat

    (@cquadrat)


    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 shortcodes

    in 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?

    From WordPress I got an Email with the Information:

    WordPress-Version 5.4.2
    Theme: Dalton Child (Version 1.2.2)
    Plugin: WPBakery Page Builder (Version 5.3)
    PHP-Version 7.3.20

    Error-Details
    ==============
    A type error E_PARSE in Line 162 der Datei /home/.sites/149/site8938587/web/wp-content/plugins/js_composer/include/autoload/hook-vc-grid.php

    Error Message: syntax error, unexpected ‘post’ (T_STRING), expecting variable (T_VARIABLE) or ‘{‘ or ‘$’

    Thanks,

    cquadrat

Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Warning: preg_match_all(): Compilation failed: invalid range in character class’ is closed to new replies.