Simon Wisselink
Simon Wisselink
Closed because of inactivity.
Smarty_Internal_Template::render(): Cannot use output buffering in output buffering display handlers
Without a reproduction scenario it's hard to say. Have you searched for the error online? Maybe this helps: https://stackoverflow.com/questions/33936067/cannot-use-output-buffering-in-output-buffering-display-handlers#34164495 This might suggest that you are calling Smarty from an ob_start...
Smarty_Internal_Template::render(): Cannot use output buffering in output buffering display handlers
@Chrissyx I've tried to reproduce this, but I can't. Can you show a (preferably minimal) example that triggers this error?
Smarty_Internal_Template::render(): Cannot use output buffering in output buffering display handlers
That sounds about right. At line 234, Smarty retrieves the template output from its internal buffer and writes it to output. If you have your own gzipping output buffer active...
Also see #633 and the related PR
This was discussed [here](https://github.com/smarty-php/smarty/discussions/919) Does this solve your problem?
Okay. Every (well, almost every, I guess) composer.json file has this section called "autoload". For Smarty it currently reads: ``` "autoload": { "psr-4" : { "Smarty\\" : "src/" }, "files":...
I asked ChatGPT to write it, seems like this might work: ``` spl_autoload_register(function ($class) { // Namespace prefix $prefix = 'Smarty\\'; // Base directory for the namespace prefix $baseDir =...
You can find clues on how to do this in #1006
TL;DR. Create a custom Extension. Register it before the BCPluginsAdapter Extension.