Programming error detected. This needs to be fixed by a programmer: Output can not be buffered before instantiating table_dataformat_export_format

Re: Programming error detected. This needs to be fixed by a programmer: Output can not be buffered before instantiating table_dataformat_export_format

by Darko Miletić -
Number of replies: 4

Whenever flexible_table is being used for exporting data the page MUST NOT print standard header or footer (or anything else for that matter). The only thing that should be executed is table setup and out.

So either a custom theme is used that messes this or the code itself is incorrect. If any of you uses some custom theme try with some stock theme just for the sake of testing.

In reply to Darko Miletić

Re: Programming error detected. This needs to be fixed by a programmer: Output can not be buffered before instantiating table_dataformat_export_format

by Quang Tuyen -

Anyone find a solution for this issue yet ? changing to default clean theme doesn't help.  moodle 3.5.1 

In reply to Quang Tuyen

Re: Programming error detected. This needs to be fixed by a programmer: Output can not be buffered before instantiating table_dataformat_export_format

by Dominique Palumbo -
Picture of Particularly helpful Moodlers Picture of Plugin developers

Hi,

did the problem appear with all the export ? I mean if you do it on another course did you have the same error ?

Because, in fact, it seems to have special character in the course title (has it already remarked).



In reply to Dominique Palumbo

Re: Programming error detected. This needs to be fixed by a programmer: Output can not be buffered before instantiating table_dataformat_export_format

by Julia fil -

Hi Dominique!

This problem appear with all the export in another courses.

In reply to Julia fil

Re: Programming error detected. This needs to be fixed by a programmer: Output can not be buffered before instantiating table_dataformat_export_format

by Julia fil -

Sorry, i found desicion of this problem.

Add in lib/dataformatlib.php ob_clean(); and comment exception and in /lib/tablelib.php ob_clean(); and comment exception

Average of ratings: Useful (2)