Adriano Faria Posted May 9, 2023 Posted May 9, 2023 When I set the board on IN_DEV mode, I got the following error in any form (new plugin, a new app, profile fields, etc.), ACP and frontend. C:\wamp64\www\47x\system\Helpers\Form\FormAbstract.php:312: object(Whoops\Exception\ErrorException)[225] protected 'message' => string 'htmlspecialchars(): Passing null to parameter #1 ($string) of type string is deprecated' (length=87) private string 'string' (Exception) => string '' (length=0) protected 'code' => int 8192 protected string 'file' => string 'C:\Windows\Temp\theBB1A.tmp' (length=27) protected int 'line' => int 111 private array 'trace' (Exception) => array (size=13) 0 => array (size=4) 'function' => string 'handleError' (length=11) 'class' => string 'Whoops\Run' (length=10) 'type' => string '->' (length=2) 'args' => array (size=4) ... 1 => array (size=4) 'file' => string 'C:\Windows\Temp\theBB1A.tmp' (length=27) 'line' => int 111 'function' => string 'htmlspecialchars' (length=16) 'args' => array (size=4) ... 2 => array (size=4) 'file' => string 'C:\wamp64\www\47x\system\Theme\Dev\Template.php' (length=47) 'line' => int 171 'function' => string 'IPS\Theme\theme_core_global_forms_text' (length=38) 'args' => array (size=14) ... 3 => array (size=6) 'file' => string 'C:\wamp64\www\47x\system\Helpers\Form\Text.php' (length=46) 'line' => int 156 'function' => string '__call' (length=6) 'class' => string 'IPS\Theme\Dev\_Template' (length=23) 'type' => string '->' (length=2) 'args' => array (size=2) ... 4 => array (size=6) 'file' => string 'C:\wamp64\www\47x\system\Helpers\Form\FormAbstract.php' (length=54) 'line' => int 270 'function' => string 'html' (length=4) 'class' => string 'IPS\Helpers\Form\_Text' (length=22) 'type' => string '->' (length=2) 'args' => array (size=0) ... 5 => array (size=6) 'file' => string 'C:\wamp64\www\47x\system\Helpers\Form\FormAbstract.php' (length=54) 'line' => int 236 'function' => string 'rowHtml' (length=7) 'class' => string 'IPS\Helpers\Form\_FormAbstract' (length=30) 'type' => string '->' (length=2) 'args' => array (size=0) ... 6 => array (size=6) 'file' => string 'C:\Windows\Temp\theBB0A.tmp' (length=27) 'line' => int 286 'function' => string '__toString' (length=10) 'class' => string 'IPS\Helpers\Form\_FormAbstract' (length=30) 'type' => string '->' (length=2) 'args' => array (size=0) ... 7 => array (size=4) 'file' => string 'C:\wamp64\www\47x\system\Theme\Dev\Template.php' (length=47) 'line' => int 171 'function' => string 'IPS\Theme\theme_forums_front_submit_createTopicForm' (length=51) 'args' => array (size=14) ... 8 => array (size=6) 'file' => string 'C:\wamp64\www\47x\system\Helpers\Form\Form.php' (length=46) 'line' => int 519 'function' => string '__call' (length=6) 'class' => string 'IPS\Theme\Dev\_Template' (length=23) 'type' => string '->' (length=2) 'args' => array (size=2) ... 9 => array (size=6) 'file' => string 'C:\wamp64\www\47x\applications\forums\modules\front\forums\forums.php' (length=69) 'line' => int 653 'function' => string 'customTemplate' (length=14) 'class' => string 'IPS\Helpers\_Form' (length=17) 'type' => string '->' (length=2) 'args' => array (size=4) ... 10 => array (size=6) 'file' => string 'C:\wamp64\www\47x\system\Dispatcher\Controller.php' (length=50) 'line' => int 107 'function' => string 'add' (length=3) 'class' => string 'IPS\forums\modules\front\forums\_forums' (length=39) 'type' => string '->' (length=2) 'args' => array (size=0) ... 11 => array (size=6) 'file' => string 'C:\wamp64\www\47x\system\Dispatcher\Dispatcher.php' (length=50) 'line' => int 153 'function' => string 'execute' (length=7) 'class' => string 'IPS\Dispatcher\_Controller' (length=26) 'type' => string '->' (length=2) 'args' => array (size=0) ... 12 => array (size=6) 'file' => string 'C:\wamp64\www\47x\index.php' (length=27) 'line' => int 13 'function' => string 'run' (length=3) 'class' => string 'IPS\_Dispatcher' (length=15) 'type' => string '->' (length=2) 'args' => array (size=0) ... private ?Throwable 'previous' (Exception) => null protected int 'severity' => int 8192 public 'xdebug_message' => string '<tr><th align='left' bgcolor='#f57900' colspan="5"><span style='background-color: #cc0000; color: #fce94f; font-size: x-large;'>( ! )</span> Whoops\Exception\ErrorException: htmlspecialchars(): Passing null to parameter #1 ($string) of type string is deprecated in C:\Windows\Temp\theBB1A.tmp on line <i>111</i></th></tr> <tr><th align='left' bgcolor='#e9b96e' colspan='5'>Call Stack</th></tr> <tr><th align='center' bgcolor='#eeeeec'>#</th><th align='left' bgcolor='#eeeeec'>Time</th><th align='left' bgcolor='#'... (length=29703) Fresh install of 4.7.10. Dev files updated. The error happens with PHP 8.1.18. If I switch to 8.027, got no error. Thanks.
Marc Posted May 10, 2023 Posted May 10, 2023 Thank you for bringing this issue to our attention! I can confirm this should be further reviewed and I have logged an internal bug report for our development team to investigate and address as necessary, in a future maintenance release. Adriano Faria 1
Recommended Posts