PHP warning + question regarding cron error output

Discussion in 'General' started by darkangel, May 16, 2011.

  1. darkangel

    darkangel New Member


    I'm getting this warning in the log file:

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

    Any ideas?

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


  2. darkangel

    darkangel New Member

    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'] !== '')".

Share This Page