• 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.

    https://www.ads-software.com/plugins/theme-to-browser-t2b-control/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Stacy (non coder)

    (@functionmunchkin)

    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

    (@federico_jacobi)

    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.