• Resolved SwimTopia Lorin

    (@swimtopia-lorin)


    Getting this message: Warning: preg_match(): Compilation failed: invalid range in character class at offset 6 in /nas/content/live/swimtopianew/wp-content/plugins/testimonials-widget/includes/libraries/aihrus-framework/includes/class-aihrus-settings.php on line 806

    Got any suggestions on what to do to fix this?

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter SwimTopia Lorin

    (@swimtopia-lorin)

    I did some googling and found the offending regex code on line 727 of ../testimonials-widget/includes/libraries/aihrus-framework/class-aihrus-settings.php

    	public static function validate_terms( $input, $default ) {
    		if ( preg_match( '#^(([\w- ]+)(,\s?)?)+$#', $input ) )
    			return preg_replace( '#,\s*$#', '', $input );
    
    		return $default;
    	}

    add a backslash before the -:

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

    Hope that helps someone!

    patsky

    (@patsky)

    Yes it did – Me!! Thank you so much

    Plugin Author saurabhd

    (@saurabhd)

    This issue is fixed in V3.5.1.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Error message in widget’ is closed to new replies.