You are not logged in.
Good morning, I am having difficulty executing the database update process. When trying the command php bin/console db:update, the error immediately returns:
Uncaught Exception TypeError: Argument 1 passed to Glpi\Toolbox\Sanitizer::decodeHtmlSpecialChars() must be of the type string, null given, called in /var/www/html/glpi/install/migrations/update_10.0.2_to_10.0.3/notifications.php on line 100 in /var/www/html/glpi/src/Toolbox/Sanitizer.php at line 301
php-errors.log content:
[2023-10-17 10:58:01] glpiphplog.WARNING: Test logger
[2023-10-17 10:58:01] glpiphplog.WARNING: Test logger
[2023-10-17 10:58:03] glpiphplog.CRITICAL: *** Uncaught Exception TypeError: Argument 1 passed to Glpi\Toolbox\Sanitizer::decodeHtmlSpecialChars() must be of the type string, null given, called>
Backtrace :
...s/update_10.0.2_to_10.0.3/notifications.php:100 Glpi\Toolbox\Sanitizer::decodeHtmlSpecialChars()
install/migrations/update_10.0.2_to_10.0.3.php:59 require()
src/Update.php:260 update1002to1003()
src/Console/Database/UpdateCommand.php:212 Update->doUpdates()
vendor/symfony/console/Command/Command.php:298 Glpi\Console\Database\UpdateCommand->execute()
vendor/symfony/console/Application.php:1040 Symfony\Component\Console\Command\Command->run()
src/Console/Application.php:272 Symfony\Component\Console\Application->doRunCommand()
vendor/symfony/console/Application.php:301 Glpi\Console\Application->doRunCommand()
vendor/symfony/console/Application.php:171 Symfony\Component\Console\Application->doRun()
bin/console:122 Symfony\Component\Console\Application->run()
Any advice will be really apreciated.
Offline
Hi,
The patch proposed in https://github.com/glpi-project/glpi/pull/15809/files should fix your issue.
Offline
Many thanks! Problem solved!!
Offline