You are here:  » Error on line 19 - widget.php

Support Forum



Error on line 19 - widget.php

Submitted by teezone on Mon, 2008-07-14 04:15 in

Hi David, quick one for you, not sure if it's significant.. everything seems to be working well!

I just noticed an error_log file that continues to append daily, containing the following line:
PHP Warning: Invalid argument supplied for foreach() in /public_html/includes/widget.php on line 19

As far as I can see, this is the original widget.php, and the error has existed since the original install.

Any ideas?

Thanks a mil!
T.

Submitted by support on Mon, 2008-07-14 08:19

Hi,

This line is part of widget_selectArray which is only called when registering a feed or configuring filters; so the warning should only occur when carrying out feed management. It is either sent an array of filter names (so this should never be a problem); or an array of fields for use on the registration page.

If a feed was registered with an incorrect format string it is possible for this warning to occur, but under normal circumstances there should always be an array of fields so I'm not really sure what is causing it to happen so frequently on your server. Keep a look out the next time you are registering feeds for an empty drop down box (which is what would happen as a result of this)...

Cheers,
David.