Bug 244264 - www/glpi: cron: Undefined variable: cron_status
Summary: www/glpi: cron: Undefined variable: cron_status
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-ports-bugs mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-02-21 05:53 UTC by O. Hartmann
Modified: 2020-02-21 05:53 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (mathias)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description O. Hartmann 2020-02-21 05:53:34 UTC
Running www/glpi on FreeBSD 11.3-RELENG, there seems to be a problem with the cron triggered GLPI task scheduler, responsible for notifications and FusionInventory. As recoomended, the appropriate job is triggered by a cronjob owned by user 'www', edited via:

crontab -e -u www

and looking like:

[...]
PATH=/etc:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
* * * * * /usr/local/bin/php  /usr/local/www/glpi/front/cron.php & >/dev/null
[...]

On a daily basis, the FreeBSD host reports an error via email from user www@...:

[...]
Toolbox::userErrorHandlerNormal() in /usr/local/www/glpi/inc/toolbox.class.php line 659
  *** PHP Notice(8): Undefined variable: cron_status
  Backtrace :
  plugins/fusioninventory/inc/agent.class.php:1243   
  inc/crontask.class.php:829                         PluginFusioninventoryAgent::cronCleanoldagents()
  front/cron.php:83                                  CronTask::launch()

The ports tree/packages are up to date so far and so is the host's FreeBSD 11.3-RELENG:
11.3-RELEASE-p6 FreeBSD 11.3-RELEASE-p6 #4 r357426: Mon Feb  3 08:22:52 CET 2020 amd64

and port

glpi-9.4.2,1                   www/glpi
p5-FusionInventory-Agent-2.4   net-mgmt/p5-FusionInventory-Agent

Any ideas what the problem may cause?