Support » Plugin: Ultimate Posts Widget » Plugin breaks due to output buffering

  • The file ultimate-posts-widget.php on line 84 initiates ob_start(), and uses output buffering to generate the widget output. This breaks on sites where output buffering is used in the theme.

    It’s recommended to generally avoid output buffering wherever possible, and I think in this case it’s possible to rewrite the function widget() to generate the output without needing to use output buffering. This might increase performance, but it’ll certainly solve some problems where I’m having to move away from using this plugin due to it breaking the themes.

    In fairness I’m also contacting the theme developers to discuss this with them too, but this plugin is the only element I’ve had problems with regarding output buffering so I’m hoping a change can be made here.

    I’m happy to assist if you contact me directly.

  • The topic ‘Plugin breaks due to output buffering’ is closed to new replies.