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

imagecreatetruecolor(): Argument #2 ($height) must be greater than 0 #9431

Closed
Riesuu opened this issue Aug 23, 2021 · 5 comments
Closed

imagecreatetruecolor(): Argument #2 ($height) must be greater than 0 #9431

Riesuu opened this issue Aug 23, 2021 · 5 comments
Labels

Comments

@Riesuu
Copy link

Riesuu commented Aug 23, 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()
  

bests regards

@trasher
Copy link
Contributor

trasher commented Aug 24, 2021

Already solved, see #8795

@trasher trasher closed this as completed Aug 24, 2021
@Riesuu
Copy link
Author

Riesuu commented Aug 24, 2021

Hello,
if the problem reappeared, no it is not solved, knowing that the #8795 was created by me.

image

@trasher trasher reopened this Aug 24, 2021
@trasher trasher removed the duplicate label Aug 24, 2021
@github-actions
Copy link
Contributor

There has been no activity on this issue for some time and therefore it is considered stale and will be closed automatically in 10 days.

If this issue is related to a bug, please try to reproduce on latest release. If the problem persist, feel free to add a comment to revive this issue.
If it is related to a new feature, please open a topic to discuss with community about this enhancement on suggestion website.

You may also consider taking a subscription to get professionnal support or contact GLPI editor team directly.

@Riesuu
Copy link
Author

Riesuu commented Nov 4, 2021

Bonjour,
pour information, le problème existe toujours et provient de certaines images présentent dans les signatures outlook.. Est il possible de régler le soucis?

merci

@cedric-anne
Copy link
Member

Bonjour, pour information, le problème existe toujours et provient de certaines images présentent dans les signatures outlook.. Est il possible de régler le soucis?

merci

Please reopen an issue, and attach the exact source of the related email.

Regards

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

No branches or pull requests

3 participants