Title: translations.php preg_replace() warning
Last modified: August 21, 2016

---

# translations.php preg_replace() warning

 *  [mattc74](https://wordpress.org/support/users/mattc74/)
 * (@mattc74)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/translationsphp-preg_replace-warning/)
 * 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)

 *  [vtxyzzy](https://wordpress.org/support/users/vtxyzzy/)
 * (@vtxyzzy)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/translationsphp-preg_replace-warning/#post-4569902)
 * 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.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [vtxyzzy](https://wordpress.org/support/users/vtxyzzy/)
 * Last activity: [12 years, 3 months ago](https://wordpress.org/support/topic/translationsphp-preg_replace-warning/#post-4569902)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
