Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > General

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 16th May 2011, 19:03
darkangel darkangel is offline
Member
 
Join Date: May 2011
Location: Cape Town, South Africa
Posts: 53
Thanks: 6
Thanked 2 Times in 2 Posts
Default 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.
Reply With Quote
Sponsored Links
  #2  
Old 16th May 2011, 19:55
darkangel darkangel is offline
Member
 
Join Date: May 2011
Location: Cape Town, South Africa
Posts: 53
Thanks: 6
Thanked 2 Times in 2 Posts
 
Default

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

Bookmarks

Tags
cron, php warning, wget

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ISPConfig3 Debian Squeeze Crontab - Log petrichbg Installation/Configuration 5 22nd March 2011 12:25
ffmpeg Video support for ubuntu 7.10 [suphp-ispconfig] amaurib Installation/Configuration 13 16th February 2010 17:26
Unable to install ISPConfig bdonecker Installation/Configuration 21 26th May 2009 08:20
libWand.so.10 error Taxick Installation/Configuration 8 3rd May 2009 01:27
ispconfig php 5 errors itamarjp Installation/Configuration 8 25th April 2008 10:20


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


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