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-07-20 17:03:02

JayManCanada
Member
Registered: 2023-07-20
Posts: 3

Email Notifications on 10.0.7+ - How to fix

Hi all,

So like you all our email notifications on the newer versions when using the cron.php are broken. 
Turns out it is the cron.php itself.

I copied the cron.php from our 10.0.3 instance of GLPI to our 10.0.7 and now the cron jobs work as expected, runs each min and sends all the queued emails.

I hope this helps others.

I did a compare on the two scripts

Line 40
define('DO_NOT_CHECK_HTTP_REFERER', 1);
That is on the OLD not on the new. That is the only difference.

suFKgiN.png

Old Left, New Right

Offline

#2 2023-07-21 09:41:21

sofi102
Member
Registered: 2023-02-09
Posts: 17

Re: Email Notifications on 10.0.7+ - How to fix

Do you changed something or just copied pasted the old cron file?

Offline

#3 2023-07-21 09:46:58

sofi102
Member
Registered: 2023-02-09
Posts: 17

Re: Email Notifications on 10.0.7+ - How to fix

Does it also improve mailgate cli process?Our is stuck and we need to run it manually

Offline

#4 2023-07-22 23:06:38

JayManCanada
Member
Registered: 2023-07-20
Posts: 3

Re: Email Notifications on 10.0.7+ - How to fix

sofi102 wrote:

Do you changed something or just copied pasted the old cron file?


I just made the old copy from 10.0.3 as cron1.php and pointed my 10.0.8 cron job to that and it runs each min without issues so far.

Offline

#5 2023-07-22 23:07:08

JayManCanada
Member
Registered: 2023-07-20
Posts: 3

Re: Email Notifications on 10.0.7+ - How to fix

sofi102 wrote:

Does it also improve mailgate cli process?Our is stuck and we need to run it manually

I don't use the mailgate option but you could always try it.

Offline

Board footer

Powered by FluxBB