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

php warning Undefined array key "REQUEST_URI" #251

Open
2 tasks done
ftoledo opened this issue Oct 11, 2024 · 0 comments
Open
2 tasks done

php warning Undefined array key "REQUEST_URI" #251

ftoledo opened this issue Oct 11, 2024 · 0 comments

Comments

@ftoledo
Copy link

ftoledo commented Oct 11, 2024

Code of Conduct

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

Is there an existing issue for this?

  • 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant