mreporting icon indicating copy to clipboard operation
mreporting copied to clipboard

php warning Undefined array key "REQUEST_URI"

Open ftoledo opened this issue 1 year ago • 0 comments

Code of Conduct

  • [X] I agree to follow this project's Code of Conduct

Is there an existing issue for this?

  • [X] I have searched the existing issues

GLPI Version

10.0.16

Plugin version

1.8.6

Bug description

Php warning where run on cron mode as CLI,

Relevant log output

[2024-10-11 22:37:01] glpiphplog.WARNING:   *** PHP Warning (2): Undefined array key "REQUEST_URI" in /var/www/glpi/marketplace/mreporting/inc/common
.class.php at line 1768
  Backtrace :
  marketplace/mreporting/inc/graphpng.class.php:112  PluginMreportingCommon::showSelector()
  marketplace/mreporting/inc/graphpng.class.php:805  PluginMreportingGraphpng->initGraph()
  marketplace/mreporting/inc/common.class.php:685    PluginMreportingGraphpng->showPie()
  ...nc/notificationtargetnotification.class.php:119 PluginMreportingCommon->showGraph()
  ...inc/notificationtargetnotification.class.php:54 PluginMreportingNotificationTargetNotification->buildPDF()
  src/NotificationTarget.php:1393                    PluginMreportingNotificationTargetNotification->addDataForTemplate()
  src/NotificationTemplate.php:279                   NotificationTarget->getForTemplate()
  .../mreporting/inc/notificationevent.class.php:112 NotificationTemplate->getTemplateByLanguage()
  ...place/mreporting/inc/notification.class.php:188 PluginMreportingNotificationEvent::raiseEvent()
  src/CronTask.php:1027                              PluginMreportingNotification::cronSendNotifications()
  front/cron.php:87                                  CronTask::launch()

### Your GLPI setup information

Debian 12
php 8.2.24

ftoledo avatar Oct 11 '24 22:10 ftoledo