Title: Header errors?
Last modified: August 21, 2016

---

# Header errors?

 *  [Stacy (non coder)](https://wordpress.org/support/users/functionmunchkin/)
 * (@functionmunchkin)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/header-errors-4/)
 * Just added this to a new install. I’m getting
    Warning: preg_match() [function.
   preg-match]: Compilation failed: unmatched parentheses at offset 22 in /home/
   site/public_html/wp-content/plugins/theme-to-browser-t2b-control/t2b.php on line
   29
 * Warning: Cannot modify header information – headers already sent by (output started
   at /home/site/public_html/wp-content/plugins/theme-to-browser-t2b-control/t2b.
   php:29) in /home/site/public_html/wp-includes/option.php on line 571
 * Warning: Cannot modify header information – headers already sent by (output started
   at /home/site/public_html/wp-content/plugins/theme-to-browser-t2b-control/t2b.
   php:29) in /home/site/public_html/wp-includes/option.php on line 572
 * What the lines look like:
    29 if (preg_match($browser_regex,$useragent,$matched)){
 * 571 setcookie( ‘wp-settings-‘ . $user->ID, $settings, time() + YEAR_IN_SECONDS,
   SITECOOKIEPATH );
    572 setcookie( ‘wp-settings-time-‘ . $user->ID, time(), time()
   + YEAR_IN_SECONDS, SITECOOKIEPATH );
 * These are exactly the same as my older install and give no issues.
    I’ve tried
   removing the second ‘)’ and then ‘}’ on line 29 but then the entire site is inaccessible.
 * [http://wordpress.org/plugins/theme-to-browser-t2b-control/](http://wordpress.org/plugins/theme-to-browser-t2b-control/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Thread Starter [Stacy (non coder)](https://wordpress.org/support/users/functionmunchkin/)
 * (@functionmunchkin)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/header-errors-4/#post-4118116)
 * and Cannot modify header information – headers already sent by (output started
   a/wp-includes/pluggable.php on line 875
 * I have not edited the core files.
 *  Plugin Author [Federico Jacobi](https://wordpress.org/support/users/federico_jacobi/)
 * (@federico_jacobi)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/header-errors-4/#post-4118291)
 * It could be that the file you downloaded is corrupted … highly unlikely, but 
   possible.
 * I’m looking into it anyway!
 * Thanks for the heads up!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Header errors?’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/theme-to-browser-t2b-control.svg)
 * [Theme to Browser (T2B) Control](https://wordpress.org/plugins/theme-to-browser-t2b-control/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/theme-to-browser-t2b-control/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/theme-to-browser-t2b-control/)
 * [Active Topics](https://wordpress.org/support/plugin/theme-to-browser-t2b-control/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/theme-to-browser-t2b-control/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/theme-to-browser-t2b-control/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Federico Jacobi](https://wordpress.org/support/users/federico_jacobi/)
 * Last activity: [12 years, 8 months ago](https://wordpress.org/support/topic/header-errors-4/#post-4118291)
 * Status: not resolved