Simon Wisselink

Results 212 comments of Simon Wisselink

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

@Chrissyx I've tried to reproduce this, but I can't. Can you show a (preferably minimal) example that triggers this error?

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