Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

service queuednotification blocked #8795

Closed
Riesuu opened this issue Mar 9, 2021 · 10 comments · Fixed by #8797
Closed

service queuednotification blocked #8795

Riesuu opened this issue Mar 9, 2021 · 10 comments · Fixed by #8797
Labels
Milestone

Comments

@Riesuu
Copy link

Riesuu commented Mar 9, 2021

Since update 9.5.4, service queuednotification remains blocked after its launch.
I have to force it and restart it, but when I send the emails manually, I get the error #below.

Uncaught Exception ValueError: imagecreatetruecolor(): Argument #1 ($width) must be greater than 0 in /var/www/html/glpi/inc/toolbox.class.php at line 1367

php-errors.log:
[2021-03-09 14:46:02] glpiphplog.CRITICAL:   *** Uncaught Exception ValueError: imagecreatetruecolor(): Argument #1 ($width) must be greater than 0 in /v$
  Backtrace :
  inc/toolbox.class.php:1367                         imagecreatetruecolor()
  inc/document.class.php:1571                        Toolbox::resizePicture()
  inc/notificationeventmailing.class.php:234         Document::getImage()
  inc/queuednotification.class.php:564               NotificationEventMailing::send()
  inc/crontask.class.php:845                         QueuedNotification::cronQueuedNotification()
  front/cron.php:83                                  CronTask::launch()


2021-03-09 14:46:11] glpiphplog.CRITICAL:   *** Uncaught Exception ValueError: imagecreatetruecolor(): Argument #1 ($width) must be greater than 0 in /v$
  Backtrace :
  inc/toolbox.class.php:1367                         imagecreatetruecolor()
  inc/document.class.php:1571                        Toolbox::resizePicture()
  inc/notificationeventmailing.class.php:237         Document::getImage()
  inc/queuednotification.class.php:445               NotificationEventMailing::send()
  inc/queuednotification.class.php:96                QueuedNotification->sendById()
  inc/massiveaction.class.php:1095                   QueuedNotification::processMassiveActionsForOneItemtype()
  inc/massiveaction.class.php:1074                   MassiveAction->processForSeveralItemtypes()
  front/massiveaction.php:59                         MassiveAction->process()

[2021-03-09 14:46:24] glpiphplog.ERROR: CommonITILObject::getTemplateFieldName() in /var/www/html/glpi/inc/commonitilobject.class.php line 7950
Missing type for Ticket template!  {"user":"2256@glpi-prd-01"}
[2021-03-09 14:48:12] glpiphplog.ERROR: CommonITILObject::getTemplateFieldName() in /var/www/html/glpi/inc/commonitilobject.class.php line 7950
Missing type for Ticket template!  {"user":"2266@glpi-prd-01"}
[2021-03-09 14:48:59] glpiphplog.ERROR: CommonITILObject::getTemplateFieldName() in /var/www/html/glpi/inc/commonitilobject.class.php line 7950
Missing type for Ticket template!  {"user":"2266@glpi-prd-01"}
@cedric-anne
Copy link
Member

Hi,

Do you have some lines in your logs preceding these Uncaught Exception ValueError ?

Regards

@Riesuu
Copy link
Author

Riesuu commented Mar 9, 2021

Hi,
cf. PJ
php-errors.txt

@cedric-anne
Copy link
Member

#8797 should fix this issue. Can you confirm ?

@Riesuu
Copy link
Author

Riesuu commented Mar 25, 2021

Hello,
the problem has returned :(

Uncaught Exception ValueError: imagecreatetruecolor(): Argument #2 ($height) must be greater than 0 in /var/www/html/glpi/inc/toolbox.class.php at line 1367

php-errors.log

@Riesuu
Copy link
Author

Riesuu commented Mar 26, 2021

Hi,
sorry but i need your help.

Bests regards

@Riesuu
Copy link
Author

Riesuu commented Mar 30, 2021

Hello,
for the follow-up, we had to delete the queue :(, apparently a mail was blocking everything.

@Riesuu
Copy link
Author

Riesuu commented May 4, 2021

Hello,
the problem reappeared yesterday
image

php-errors.log

Bests regards

@cedric-anne
Copy link
Member

Hello,
the problem reappeared yesterday
image

php-errors.log

Bests regards

Hi,

This is not related to queued notifications, and is reported in #9013 .

Regards

@Riesuu
Copy link
Author

Riesuu commented Aug 19, 2021

Hello,
the problem reappeared this morning: glpi 9.5.5

`[2021-08-19 15:41:24] glpiphplog.CRITICAL:   *** Uncaught Exception ValueError: imagecreatetruecolor(): Argument #2 ($height) must be greater than 0 in /var/www/html/glpi/inc/toolbox.class.php at line 1367
  Backtrace :
  inc/toolbox.class.php:1367                         imagecreatetruecolor()
  inc/document.class.php:1571                        Toolbox::resizePicture()
  inc/notificationeventmailing.class.php:359         Document::getImage()
  inc/notificationeventmailing.class.php:268         NotificationEventMailing::attachDocuments()
  inc/queuednotification.class.php:445               NotificationEventMailing::send()
  inc/queuednotification.class.php:96                QueuedNotification->sendById()
  inc/massiveaction.class.php:1097                   QueuedNotification::processMassiveActionsForOneItemtype()
  inc/massiveaction.class.php:1076                   MassiveAction->processForSeveralItemtypes()
  front/massiveaction.php:59                         MassiveAction->process()
  
[2021-08-19 15:41:54] glpiphplog.CRITICAL:   *** Uncaught Exception ValueError: imagecreatetruecolor(): Argument #2 ($height) must be greater than 0 in /var/www/html/glpi/inc/toolbox.class.php at line 1367
  Backtrace :
  inc/toolbox.class.php:1367                         imagecreatetruecolor()
  inc/document.class.php:1571                        Toolbox::resizePicture()
  inc/notificationeventmailing.class.php:359         Document::getImage()
  inc/notificationeventmailing.class.php:268         NotificationEventMailing::attachDocuments()
  inc/queuednotification.class.php:564               NotificationEventMailing::send()
  inc/crontask.class.php:943                         QueuedNotification::cronQueuedNotification()
  front/cron.php:61                                  CronTask::launch()
  
[2021-08-19 15:42:44] glpiphplog.WARNING:   *** PHP User Warning (512): Missing type for Ticket template! in /var/www/html/glpi/inc/commonitilobject.class.php at line 7957
  Backtrace :
  inc/commonitilobject.class.php:7957                trigger_error()
  inc/commonitilobject.class.php:7918                CommonITILObject->getTemplateFieldName()
  inc/commonitilobject.class.php:792                 CommonITILObject->getITILTemplateToUse()
  inc/ticket.class.php:974                           CommonITILObject->handleTemplateFields()
  inc/commondbtm.class.php:1484                      Ticket->prepareInputForUpdate()
  inc/itilfollowup.class.php:286                     CommonDBTM->update()
  inc/commondbtm.class.php:1173                      ITILFollowup->post_addItem()
  front/itilfollowup.form.php:49                     CommonDBTM->add()
  `

@Riesuu
Copy link
Author

Riesuu commented Aug 24, 2021

Hello,
service queuednotification is in error. GLPI 9.5.5 php 8.0.7. This is not the first time.
image

php error:

[2021-08-23 17:03:38] glpiphplog.CRITICAL:   *** Uncaught Exception ValueError: imagecreatetruecolor(): Argument #2 ($height) must be greater than 0 in /var/www/html/glpi/inc/toolbox.class.php at line 1367
  Backtrace :
  inc/toolbox.class.php:1367                         imagecreatetruecolor()
  inc/document.class.php:1571                        Toolbox::resizePicture()
  inc/notificationeventmailing.class.php:359         Document::getImage()
  inc/notificationeventmailing.class.php:268         NotificationEventMailing::attachDocuments()
  inc/queuednotification.class.php:564               NotificationEventMailing::send()
  inc/crontask.class.php:943                         QueuedNotification::cronQueuedNotification()
  front/cron.php:61                                  CronTask::launch()
  
[2021-08-23 17:06:09] glpiphplog.CRITICAL:   *** Uncaught Exception ValueError: imagecreatetruecolor(): Argument #2 ($height) must be greater than 0 in /var/www/html/glpi/inc/toolbox.class.php at line 1367
  Backtrace :
  inc/toolbox.class.php:1367                         imagecreatetruecolor()
  inc/document.class.php:1571                        Toolbox::resizePicture()
  inc/notificationeventmailing.class.php:359         Document::getImage()
  inc/notificationeventmailing.class.php:268         NotificationEventMailing::attachDocuments()
  inc/queuednotification.class.php:564               NotificationEventMailing::send()
  inc/crontask.class.php:943                         QueuedNotification::cronQueuedNotification()
  front/cron.php:61                                  CronTask::launch()
  
[2021-08-23 17:07:36] glpiphplog.CRITICAL:   *** Uncaught Exception ValueError: imagecreatetruecolor(): Argument #2 ($height) must be greater than 0 in /var/www/html/glpi/inc/toolbox.class.php at line 1367
  Backtrace :
  inc/toolbox.class.php:1367                         imagecreatetruecolor()
  inc/document.class.php:1571                        Toolbox::resizePicture()
  inc/notificationeventmailing.class.php:359         Document::getImage()
  inc/notificationeventmailing.class.php:268         NotificationEventMailing::attachDocuments()
  inc/queuednotification.class.php:445               NotificationEventMailing::send()
  inc/queuednotification.class.php:96                QueuedNotification->sendById()
  inc/massiveaction.class.php:1097                   QueuedNotification::processMassiveActionsForOneItemtype()
  inc/massiveaction.class.php:1076                   MassiveAction->processForSeveralItemtypes()
  front/massiveaction.php:59                         MassiveAction->process()
  
[2021-08-23 17:08:43] glpiphplog.CRITICAL:   *** Uncaught Exception ValueError: imagecreatetruecolor(): Argument #2 ($height) must be greater than 0 in /var/www/html/glpi/inc/toolbox.class.php at line 1367
  Backtrace :
  inc/toolbox.class.php:1367                         imagecreatetruecolor()
  inc/document.class.php:1571                        Toolbox::resizePicture()
  inc/notificationeventmailing.class.php:359         Document::getImage()
  inc/notificationeventmailing.class.php:268         NotificationEventMailing::attachDocuments()
  inc/queuednotification.class.php:564               NotificationEventMailing::send()
  inc/crontask.class.php:943                         QueuedNotification::cronQueuedNotification()
  front/crontask.form.php:49                         CronTask::launch()
  
[2021-08-23 17:08:53] glpiphplog.CRITICAL:   *** Uncaught Exception ValueError: imagecreatetruecolor(): Argument #2 ($height) must be greater than 0 in /var/www/html/glpi/inc/toolbox.class.php at line 1367
  Backtrace :
  inc/toolbox.class.php:1367                         imagecreatetruecolor()
  inc/document.class.php:1571                        Toolbox::resizePicture()
  inc/notificationeventmailing.class.php:359         Document::getImage()
  inc/notificationeventmailing.class.php:268         NotificationEventMailing::attachDocuments()
  inc/queuednotification.class.php:564               NotificationEventMailing::send()
  inc/crontask.class.php:943                         QueuedNotification::cronQueuedNotification()
  front/crontask.form.php:49                         CronTask::launch()
  
[2021-08-23 17:09:02] glpiphplog.CRITICAL:   *** Uncaught Exception ValueError: imagecreatetruecolor(): Argument #2 ($height) must be greater than 0 in /var/www/html/glpi/inc/toolbox.class.php at line 1367
  Backtrace :
  inc/toolbox.class.php:1367                         imagecreatetruecolor()
  inc/document.class.php:1571                        Toolbox::resizePicture()
  inc/notificationeventmailing.class.php:359         Document::getImage()
  inc/notificationeventmailing.class.php:268         NotificationEventMailing::attachDocuments()
  inc/queuednotification.class.php:564               NotificationEventMailing::send()
  inc/crontask.class.php:943                         QueuedNotification::cronQueuedNotification()
  front/cron.php:83                                  CronTask::launch()
  
[2021-08-23 17:09:03] glpiphplog.CRITICAL:   *** Uncaught Exception ValueError: imagecreatetruecolor(): Argument #2 ($height) must be greater than 0 in /var/www/html/glpi/inc/toolbox.class.php at line 1367
  Backtrace :
  inc/toolbox.class.php:1367                         imagecreatetruecolor()
  inc/document.class.php:1571                        Toolbox::resizePicture()
  inc/notificationeventmailing.class.php:359         Document::getImage()
  inc/notificationeventmailing.class.php:268         NotificationEventMailing::attachDocuments()
  inc/queuednotification.class.php:445               NotificationEventMailing::send()
  inc/queuednotification.class.php:96                QueuedNotification->sendById()
  inc/massiveaction.class.php:1097                   QueuedNotification::processMassiveActionsForOneItemtype()
  inc/massiveaction.class.php:1076                   MassiveAction->processForSeveralItemtypes()
  front/massiveaction.php:59                         MassiveAction->process()
  
[2021-08-23 17:10:02] glpiphplog.CRITICAL:   *** Uncaught Exception ValueError: imagecreatetruecolor(): Argument #2 ($height) must be greater than 0 in /var/www/html/glpi/inc/toolbox.class.php at line 1367
  Backtrace :
  inc/toolbox.class.php:1367                         imagecreatetruecolor()
  inc/document.class.php:1571                        Toolbox::resizePicture()
  inc/notificationeventmailing.class.php:359         Document::getImage()
  inc/notificationeventmailing.class.php:268         NotificationEventMailing::attachDocuments()
  inc/queuednotification.class.php:564               NotificationEventMailing::send()
  inc/crontask.class.php:943                         QueuedNotification::cronQueuedNotification()
  front/cron.php:83                                  CronTask::launch()
  
[2021-08-23 17:11:05] glpiphplog.CRITICAL:   *** Uncaught Exception ValueError: imagecreatetruecolor(): Argument #2 ($height) must be greater than 0 in /var/www/html/glpi/inc/toolbox.class.php at line 1367
  Backtrace :
  inc/toolbox.class.php:1367                         imagecreatetruecolor()
  inc/document.class.php:1571                        Toolbox::resizePicture()
  inc/notificationeventmailing.class.php:359         Document::getImage()
  inc/notificationeventmailing.class.php:268         NotificationEventMailing::attachDocuments()
  inc/queuednotification.class.php:564               NotificationEventMailing::send()
  inc/crontask.class.php:943                         QueuedNotification::cronQueuedNotification()
  front/cron.php:83                                  CronTask::launch()
  
[2021-08-23 17:12:02] glpiphplog.CRITICAL:   *** Uncaught Exception ValueError: imagecreatetruecolor(): Argument #2 ($height) must be greater than 0 in /var/www/html/glpi/inc/toolbox.class.php at line 1367
  Backtrace :
  inc/toolbox.class.php:1367                         imagecreatetruecolor()
  inc/document.class.php:1571                        Toolbox::resizePicture()
  inc/notificationeventmailing.class.php:359         Document::getImage()
  inc/notificationeventmailing.class.php:268         NotificationEventMailing::attachDocuments()
  inc/queuednotification.class.php:564               NotificationEventMailing::send()
  inc/crontask.class.php:943                         QueuedNotification::cronQueuedNotification()
  front/cron.php:83                                  CronTask::launch()
  

image

The email is text with a signature, I think it's some elements of the image signature that are problematic.
Either the logo or the transition bar.

image

Problem is not solved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants