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-04-17 10:23:27

cdeibert
Member
Registered: 2021-05-03
Posts: 4

GLPI 10.0.7 Cron-Problems with NotificationTargetContract.php

Hi, after upgrading from GLPI 10.0.6 to 10.0.7 cron.php is telling me: "PHP Notice:  Undefined index: account_number in 'src/NotificationTargetContract.php' on line 70 PHP Notice". Deployed PHP-Version is 7.4.33.

Thanks,
Carsten

Last edited by cdeibert (2023-04-17 10:57:30)

Offline

#2 2023-04-17 16:30:33

cconard96
Moderator
Registered: 2018-07-31
Posts: 2,806
Website

Re: GLPI 10.0.7 Cron-Problems with NotificationTargetContract.php

Hello,

I made a patch to fix this issue. Can you test it to make sure it fully resolves the issue for you?

https://github.com/glpi-project/glpi/pull/14538


GLPI Collaborator and Plugin Developer.
My non-English comments are automated translations. Sorry for any confusion that causes.
Mes commentaires non anglais sont des traductions automatiques. Désolé pour toute confusion qui cause.
Mis comentarios que no están en inglés son traducciones automáticas. Perdón por cualquier confusión que cause.

Offline

#3 2023-04-18 08:47:30

cdeibert
Member
Registered: 2021-05-03
Posts: 4

Re: GLPI 10.0.7 Cron-Problems with NotificationTargetContract.php

Hi Curtis,

thanks for the fix, I changed " $contract['account_number'];" to "$contract['accounting_number'];", unfortunately I do not know the exact conditions to trigger the PHP Notice since the message is not triggered all the time, but I am confident about it.

Best,
Carsten

Offline

#4 2023-05-12 15:04:32

velidinc
Member
Registered: 2023-01-04
Posts: 5

Re: GLPI 10.0.7 Cron-Problems with NotificationTargetContract.php

Hello Mr Curtis, I upgraded glpi to version 10.0.7 after that Crontab works in Linux ubuntu but none of the automated tasks work. Notifications are not sent. automatic ticket closing does not work. So none of the automated processes are working. Where am I doing wrong can someone help?

Before GLPI: 10.0.5
Upgrated GLPI: 10.0.7
OS: Ubuntu 22.04.2 LTS
PHP: 8.2
Mysql: 8.0.33
Apache2: 2.4.52
GPLI Path: /var/www/html/glpi/

Crontab Content:
* * * * * /usr/bin/php /var/www/html/glpi/front/cron.php
* * * * * /usr/bin/php /var/www/html/glpi/front/cron.php --debug
* * * * * php GLPI/front/cron.php
* * * * *  php GLPI/front/cron.php --force mailgate
*/1 * * * * root cd /var/www/html/glpi/front/ && php cron.php
*/1 * * * *  www-data cd /var/www/html/glpi/front/ && php cron.php
* * * * * apache /usr/bin/php /var/www/html/glpi/front/cron.php &>/dev/null
*/1 * * * *  /usr/bin/php8.2 /usr/share/glpi/front/cron.php

Last edited by velidinc (2023-05-12 15:11:09)

Offline

Board footer

Powered by FluxBB