• Resolved trevorwood

    (@trevorwood)


    Hi
    The latest version of this plugin is displaying the following message on my development server (where I have warnings turned on)

    Warning: preg_match(): Compilation failed: invalid range in character class at offset 6 in xxxxxxxxxxxx\wp-content\plugins\testimonials-widget\includes\libraries\aihrus-framework\includes\class-aihrus-settings.php on line 806

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter trevorwood

    (@trevorwood)

    This appears to be a PHP version problem with a difference between PHP versions 7.3.1 (where it is broken) and 7.1.27 (where it is working)

    I can definitely confirm this is the problem. I’ve activated PHP v7.1.26 on my test server and the problem has gone away

    I just updated to PHP 7.3 and am seeing the same warning filling up my error log.

    I appear to have found a fix for this issue. Hope it will be included in the next release.

    Line 806:
    if ( preg_match( '#^(([\w- ]+)(,\s?)?)+$#', $input ) ) {

    Change to:
    if ( preg_match( '#^(([\w\- ]+)(,\s?)?)+$#', $input ) ) {

    Basically, add a slash \ after \w.

    Thread Starter trevorwood

    (@trevorwood)

    Well done brit77. I’ll try this out when I get a bit of time next week and see if it solves the problem my end

    270net

    (@270net)

    I’d just like to verify this error and the fix. Just tweaked the plugin file on my site to remove the error. Hoping this is addressed in the next update!

    WebDeb

    (@sillymoney)

    Worked for my sites also.

    Thread Starter trevorwood

    (@trevorwood)

    Now appears to be working in v3.5.1

    Plugin Author saurabhd

    (@saurabhd)

    Thank you for all the suggestions. It was fixed in V3.5.1

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘preg_match(): Compilation failed’ is closed to new replies.