Solved Deprecated exception when viewing debug page with PHP 8.1

This topic has been solved
T

TickTackk

Guest
Code:

Code:
An exception occurred: [ErrorException] [E_DEPRECATED] trim(): Passing null to parameter #1 ($string) of type string is deprecated in src/XF/Debugger.php on line 229

XF::handlePhpError()
trim() in src/XF/Debugger.php at line 229
XF\Debugger::getDatabaseDebugInfo() in src/XF/Debugger.php at line 124
XF\Debugger->getDebugPageHtml() in src/XF/App.php at line 2125
XF\App->finalOutputFilter() in src/XF/App.php at line 2355
XF\App->run() in src/XF.php at line 517
XF::runApp() in index.php at line 20

Continue reading...