You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2023-10-17 16:05:30

fabianobss
Member
Registered: 2023-10-17
Posts: 2

Database upgrade error - 10.0.2 -> 10.0.3

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

#2 2023-10-18 08:52:33

cedric-anne
Administrator
Registered: 2018-07-02
Posts: 85

Re: Database upgrade error - 10.0.2 -> 10.0.3

Hi,

The patch proposed in https://github.com/glpi-project/glpi/pull/15809/files should fix your issue.

Offline

#3 2023-10-18 15:04:15

fabianobss
Member
Registered: 2023-10-17
Posts: 2

Re: Database upgrade error - 10.0.2 -> 10.0.3

Many thanks! Problem solved!!

Offline

Board footer

Powered by FluxBB