Open serviceticst opened 8 months ago
Maybe you can first try to check database integrity with php bin/console database:check_schema_integrity
The database integrity check for version "10.0.11@6795e1eea6621428b5ef42350d555715bda8a96f" is not supported.
The database integrity check for version "10.0.11@6795e1eea6621428b5ef42350d555715bda8a96f" is not supported.
Did you remove the whole install
directory ?
The "install" folder was renamed; I reverted it to the original name, ran the command, and it was successful. I ran it manually and received this log.
[root@servicetic-oracle-linux ~]# glpi-console database:check_schema_integrity Esquema do banco de dados está OK. [root@servicetic-oracle-linux ~]# tail -f /var/log/glpi/php-errors.log [2024-02-01 07:14:19] glpiphplog.WARNING: Test logger [2024-02-01 07:17:57] glpiphplog.WARNING: *** PHP Warning (2): Undefined array key "is_recursive" in /usr/share/glpi/src/CommonDBTM.php at line 3202 Backtrace : src/NotificationTarget.php:1757 CommonDBTM->isRecursive() src/NotificationTarget.php:1371 NotificationTarget->isTargetItemRecursive() src/NotificationTarget.php:854 NotificationTarget->getProfileJoinCriteria() src/NotificationTarget.php:1290 NotificationTarget->addForGroup() src/NotificationEventAbstract.php:98 NotificationTarget->addForTarget() src/NotificationEvent.php:187 NotificationEventAbstract::raise() src/SoftwareLicense.php:807 NotificationEvent::raiseEvent() src/CronTask.php:1027 SoftwareLicense::cronSoftware() front/crontask.form.php:52 CronTask::launch() public/index.php:82 require()
[2024-02-01 07:17:57] glpiphplog.CRITICAL: *** Uncaught Exception TypeError: NotificationTarget::isTargetItemRecursive(): Return value must be of type bool, null returned in /usr/share/glpi/src/NotificationTarget.php at line 1757 Backtrace : src/NotificationTarget.php:1371 NotificationTarget->isTargetItemRecursive() src/NotificationTarget.php:854 NotificationTarget->getProfileJoinCriteria() src/NotificationTarget.php:1290 NotificationTarget->addForGroup() src/NotificationEventAbstract.php:98 NotificationTarget->addForTarget() src/NotificationEvent.php:187 NotificationEventAbstract::raise() src/SoftwareLicense.php:807 NotificationEvent::raiseEvent() src/CronTask.php:1027 SoftwareLicense::cronSoftware() front/crontask.form.php:52 CronTask::launch() public/index.php:82
You should updgrade to GLPI 10.0.12. It has been fixed in #16303.
I updated to version 10.0.12, and the log in php-error.log no longer appears.
In the log of the automatic action, a completed action is displayed.
Within the recipient group, the following error log appeared.
I checked in other groups from different databases, and the notification method is always N/A.
@cedric-anne, Can you please reopen it?
@serviceticst
Please provide the full error trace.
@cedric-anne
[2024-02-05 08:53:36] glpisqllog.WARNING: DBmysql::doQuery() in /usr/share/glpi/src/DBmysql.php line 443
* MySQL query warnings:
SQL: SELECT glpi_notificationtemplates
., '' AS transname
, '' AS transcomment
FROM glpi_notificationtemplates
WHERE glpi_notificationtemplates
.id
= 'N/A'
Warnings:
1292: Truncated incorrect DOUBLE value: 'N/A'
Backtrace :
src/DBmysqlIterator.php:112 DBmysql->doQuery()
src/DBmysql.php:1109 DBmysqlIterator->execute()
src/Dropdown.php:544 DBmysql->request()
src/NotificationTarget.php:1639 Dropdown::getDropdownName()
src/NotificationTarget.php:1657 NotificationTarget::showForGroup()
src/CommonGLPI.php:694 NotificationTarget::displayTabContentForItem()
ajax/common.tabs.php:120 CommonGLPI::displayStandardTab()
public/index.php:82 require()
{"user":"44@servicetic-oracle-linux"}
[2024-02-05 09:02:27] glpisqllog.WARNING: DBmysql::doQuery() in /usr/share/glpi/src/DBmysql.php line 443
MySQL query warnings:
SQL: SELECT glpi_notificationtemplates
.*, '' AS transname
, '' AS transcomment
FROM glpi_notificationtemplates
WHERE glpi_notificationtemplates
.id
= 'N/A'
Warnings:
1292: Truncated incorrect DOUBLE value: 'N/A'
Backtrace :
src/DBmysqlIterator.php:112 DBmysql->doQuery()
src/DBmysql.php:1109 DBmysqlIterator->execute()
src/Dropdown.php:544 DBmysql->request()
src/NotificationTarget.php:1639 Dropdown::getDropdownName()
src/NotificationTarget.php:1657 NotificationTarget::showForGroup()
src/CommonGLPI.php:694 NotificationTarget::displayTabContentForItem()
ajax/common.tabs.php:120 CommonGLPI::displayStandardTab()
public/index.php:82 require()
{"user":"44@servicetic-oracle-linux"}
Code of Conduct
Is there an existing issue for this?
Version
10.0.11
Bug description
Hello,
We have configured in Administration > Entities > Root Entity > Notifications:
Enabled email notification for licenses and set an alert period.
Email notification is configured and successfully receiving test emails and email notifications for open tickets.
The license notification has been created with a specified recipient. The license has been created, and an expiration date has been set accordingly for the alert.
We executed the manual automatic action, but did not receive the notification email and received the following message in the log.
Relevant log output
Page URL
glpi/front/crontask.form.php?id=4
Steps To reproduce
We have configured in Administration > Entities > Root Entity > Notifications:
Enabled email notification for licenses and set an alert period.
Email notification is configured and successfully receiving test emails and email notifications for open tickets.
The license notification has been created with a specified recipient. The license has been created, and an expiration date has been set accordingly for the alert.
We executed the manual automatic action, but did not receive the notification email and received the following message in the log.
Your GLPI setup information
Instruções de instalação e configuração
Server
GLPI constants
Libraries
SQL replicas
Notifications
Plugins list
Anything else?
No response