Search&Filter plugin with Roots

I’m using Search&Filter plugin with a complete fresh install of Roots 7.0.3 and WP 4.1 with no other plugins installed. The plugin works fine with WP’s own themes, including TwentyFifteen and TwentyFourteen. But, with Roots it fails. Clicking Search&Filter’s Search button reloads the same page and returns this error:

Warning: Cannot modify header information - headers already sent by (output started at ./wp-content/themes/roots/templates/head.php:2) in /Users/me/Sites/mysite/wp-includes/pluggable.php on line 1178

I understand, plugin compatibility may be out of scope for this forum, but perhaps someone may know the reason without giving it too much thought?

That plugin doesn’t play nice with the theme wrapper.

@benword Placing <?php ob_start(); ?> just before <?php get_template_part('templates/head'); ?> inside base.php will make the plugin function without error, but is this a good idea?

Thanks much for the quick response.

1 Like

Nice! That should be fine

Thanks for getting back with a fix

/cc @swalkinshaw @Foxaii