• Hi, installed Simple Ads manager plugin and once I clicked on activate plugin I received error:
    Warning: preg_replace() [function.preg-replace]: Compilation failed: missing ) at offset 446 in E:\HostingSpaces\mattc74\androidnewz.com\wwwroot\wp-content\mu-plugins\wp-db-abstraction\translations\sqlsrv\translations.php on line 1082
    and there are a lot more. I opened the translations.php and found on line 1082: $query = preg_replace(‘/\s+’.$table . ‘.’ . $field.’\s*’.$oper.’/i’, ‘ ‘.$table . ‘.’ . $field . ‘ ‘ . $val, $query);

    I commented this line out for now, but I want to know the source of the error?
    Thanks

Viewing 1 replies (of 1 total)
  • Just a guess, but I think that the value of one of the variables might contain an open paren. Try printing all the variables used in the preg_replace.

Viewing 1 replies (of 1 total)
  • The topic ‘translations.php preg_replace() warning’ is closed to new replies.