HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   General (http://www.howtoforge.com/forums/forumdisplay.php?f=25)
-   -   PHP warning + question regarding cron error output (http://www.howtoforge.com/forums/showthread.php?t=52696)

darkangel 16th May 2011 19:03

PHP warning + question regarding cron error output
 
Hi,

I'm getting this warning in the log file:

PHP Warning: Invalid argument supplied for foreach() in /usr/local/ispconfig/server/mods-available/monitor_core_module.inc.php on line 1118

Any ideas?

Also, why does ISPConfig redirect error output from cron jobs (at least when using a URL (i.e. wget)?

Thanks,

_da.

darkangel 16th May 2011 19:55

Looking at the code, it's clear that the warning is due to the fact that there is no output from "mpt-status --autoload -n" on our server ... I think that the code should handle this situation, perhaps by wrapping the foreach with "if ($data['output'] !== '')".


All times are GMT +2. The time now is 01:01.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.