Skip to content

Conversation

@stonebuzz
Copy link
Contributor

@stonebuzz stonebuzz commented Dec 19, 2025

Checklist before requesting a review

Please delete options that are not relevant.

  • I have performed a self-review of my code.
  • I have added tests (when available) that prove my fix is effective or that my feature works.
  • I have updated the CHANGELOG with a short functional description of the fix or new feature.
  • This change requires a documentation update.

Description

Fix

[2025-12-19 09:19:10] glpi.CRITICAL:   *** Uncaught PHP Exception RuntimeException: "MySQL query error: Unknown column 'itemtype' in 'where clause' (1054) in SQL query "SELECT `glpi_notificationtemplatetranslations`.`id` FROM `glpi_notificationtemplatetranslations` WHERE `itemtype` = 'PluginOrderOrder'"." at DBmysql.php line 398
  Backtrace :
  ./src/DBmysql.php:398                              
  ./src/DBmysqlIterator.php:126                      DBmysql->doQuery()
  ./src/DBmysql.php:1067                             DBmysqlIterator->execute()
  ./src/CommonDBTM.php:4704                          DBmysql->request()
  ...order/inc/notificationtargetorder.class.php:474 CommonDBTM->deleteByCriteria()
  ./plugins/order/hook.php:134                       PluginOrderNotificationTargetOrder::uninstall()
  ./src/Plugin.php:1143                              plugin_order_uninstall()
  ./front/plugin.form.php:60                         Plugin->uninstall()
  ...Glpi/Controller/LegacyFileLoadController.php:64 require()
  ./vendor/symfony/http-kernel/HttpKernel.php:181    Glpi\Controller\LegacyFileLoadController->__invoke()
  ./vendor/symfony/http-kernel/HttpKernel.php:76     Symfony\Component\HttpKernel\HttpKernel->handleRaw()
  ./vendor/symfony/http-kernel/Kernel.php:197        Symfony\Component\HttpKernel\HttpKernel->handle()
  ./public/index.php:70                              Symfony\Component\HttpKernel\Kernel->handle()

[2025-12-19 09:20:03] glpi.CRITICAL:   *** Uncaught PHP Exception RuntimeException: "MySQL query error: Unknown column 'itemtype' in 'where clause' (1054) in SQL query "SELECT `glpi_notificationtemplatetranslations`.`id` FROM `glpi_notificationtemplatetranslations` WHERE `itemtype` = 'PluginOrderOrder'"." at DBmysql.php line 398
  Backtrace :
  ./src/DBmysql.php:398                              
  ./src/DBmysqlIterator.php:126                      DBmysql->doQuery()
  ./src/DBmysql.php:1067                             DBmysqlIterator->execute()
  ./src/CommonDBTM.php:4704                          DBmysql->request()
  ...order/inc/notificationtargetorder.class.php:474 CommonDBTM->deleteByCriteria()
  ./plugins/order/hook.php:134                       PluginOrderNotificationTargetOrder::uninstall()
  ./src/Plugin.php:1143                              plugin_order_uninstall()
  ./front/plugin.form.php:60                         Plugin->uninstall()
  ...Glpi/Controller/LegacyFileLoadController.php:64 require()
  ./vendor/symfony/http-kernel/HttpKernel.php:181    Glpi\Controller\LegacyFileLoadController->__invoke()
  ./vendor/symfony/http-kernel/HttpKernel.php:76     Symfony\Component\HttpKernel\HttpKernel->handleRaw()
  ./vendor/symfony/http-kernel/Kernel.php:197        Symfony\Component\HttpKernel\HttpKernel->handle()
  ./public/index.php:70                              Symfony\Component\HttpKernel\Kernel->handle()

itemtype column not exist and

NotificationTemplateTranslation is automatically purge by GLPI when NotificationTemplate is purge (see NotificationTemplate->cleanDBonPurge()

Screenshots (if appropriate):

@stonebuzz stonebuzz requested a review from Rom1-B December 19, 2025 09:50
@Rom1-B Rom1-B merged commit 446db9a into main Dec 19, 2025
3 checks passed
@Rom1-B Rom1-B deleted the fix_uninstall branch December 19, 2025 11:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Cannot install/activate nor Uninstall

3 participants