You are not logged in.
Pages: 1
Bonjour,
A la suite d'une migration vers la version 0.90.5 de GLPI (depuis une version 0.8x), je n'arrive plus à visualiser la configuration des notifications dans l'administration GLPI.
Lorsque je vais dans "Configuration > Notifications > Notifications", voici ce que j'aperçois : https://ibb.co/kwD2oT
C'est vide, pourtant j'arrive bien à créer de nouveau template si je clique que la crois à gauche mais impossible de les visualiser par la suite.
J'ai jeté un oeil aux logs, notamment sql-errors.log et j'ai plusieurs erreurs qui apparaissent lorsque j'accès à cette page
*** MySQL query error:
SQL: SELECT \'user\' AS currentuser,
`glpi_notifications`.`entities_id`, `glpi_notifications`.`is_recursive`, `glpi_notifications`.`name` AS `ITEM_0`,
`glpi_notifications`.`id` AS `ITEM_0_id`,`glpi_entities`.`completename` AS `ITEM_1`, `glpi_notifications`.`itemtype` AS `ITEM_2`, `glpi_notifications`.`is_active` AS `ITEM_3`, `glpi_notifications`.`event` AS `ITEM_4`, `glpi_notifications`.`itemtype` AS `ITEM_4_itemtype`, `glpi_notificationtemplates`.`name` AS `ITEM_5`,
`glpi_notificationtemplates`.`id` AS `ITEM_5_id`,`glpi_notifications`.`is_recursive` AS `ITEM_6`, `glpi_notifications`.`id` AS id FROM `glpi_notifications`LEFT JOIN `glpi_entities`
ON (`glpi_notifications`.`entities_id` = `glpi_entities`.`id`
)LEFT JOIN `glpi_notificationtemplates`
ON (`glpi_notifications`.`notificationtemplates_id` = `glpi_notificationtemplates`.`id`
) WHERE ( 1 ) ORDER BY ITEM_0 ASC LIMIT 0, 100
Error: Unknown column 'glpi_notifications.notificationtemplates_id' in 'on clause'
Backtrace :
inc/search.class.php:923
inc/search.class.php:98 Search::constructDatas()
inc/search.class.php:81 Search::showList()
front/notification.php:45 Search::show()
J'ai donc plusieurs erreurs de requêtes SQL mais je n'arrive pas à trouver ce qui cloche, car je suppose que c'est à cause de cela que les notifications mail ne fonctionnent pas.
Dois-je nettoyer une des tables ?
Merci par avance pour votre aide.
Last edited by nbht (2018-06-04 18:32:29)
Offline
Bonjour,
J'ai résolu en parti le souci en supprimant les lignes "notifications" dans la table glpi_displaypreferences. J'arrive à présent à voir les notifications, par contre, il m'est impossible d'appliquer un modèle de notifications à une notification (exemple pour la notification "New Ticket").
Lorsque j'essaye d'appliquer un modèle de notifications, j'ai une errer PHP :
2018-06-05 10:12:14 [247@srv]
*** PHP Notice(8): Undefined index: mode
Backtrace :
inc/notification.class.php:246
inc/commonglpi.class.php:464 Notification->showForm()
ajax/common.tabs.php:91 CommonGLPI::displayStandardTab()
2018-06-05 10:12:14 [247@srv]
*** PHP Notice(8): Undefined index: notificationtemplates_id
Backtrace :
inc/notification.class.php:258
inc/commonglpi.class.php:464 Notification->showForm()
ajax/common.tabs.php:91 CommonGLPI::displayStandardTab()
Si quelqu'un a une idée, je suis preneur.
Merci par avance pour votre aide.
Offline
Vous avez du avoir un problème lors de la migration.
Avez-vous regardé les logs correspondant à chaque version majeure dans glpi/files/_log/ ?
CentOS 6.5 - CentOS 7.x
PHP 5.6 - PHP 7.x - MySQL 5.6 - MariaDB 10.2 + APC + oOPcache
GLPI from 0.72 to dev version
Certifiée ITIL (ITV2F, ITILF, ITILOSA)
Offline
Pages: 1