BUG V10: PHP 8.1 Strictness in Index Widgets causes Dashboard "Headers already sent" crash

Environment: Scriptcase V10 (PHP 8.1), Windows Local Environment.

Steps to Reproduce:

Import a working V9 project with a Dashboard to V10.

Add an Index Widget to the Dashboard (even a brand new, standard Index Widget).

Generate and run the Dashboard.

Result: The dashboard crashes entirely with the error: Cannot modify header information - headers already sent by (output started at ... HomePage\index.php:1523) in ... HomePage\index.php on line 2000

Diagnosis: The issue is not the user’s code. The V10 background generator for the Index Widget is triggering a silent PHP 8.1 strictness Warning (likely during formatting or null handling).

This warning hits the buffer, and when the dashboard calls $this->restartFlushBuffer();, it dumps the warning to the screen, which permanently breaks the HTTP headers. Scriptcase’s built-in “Script Error = Off” setting fails to suppress this specific warning.

Temporary Workaround Used: Adding error_reporting(0); in the Dashboard’s onApplicationInit successfully suppresses the generator’s warning and allows the Dashboard to load perfectly.

Please review the PHP 8.1 strictness compliance inside the V10 Index Widget generation template so this workaround is no longer needed.