PHP Warning

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • custom3
    New Member
    • Dec 2007
    • 1

    #1

    PHP Warning

    Hello,

    I keep getting the following warning:

    "PHP Warning: Invalid argument supplied for foreach() in /home/csiexecu/public_html/modules/mod_mainmenu.ph p on line 339"

    I am a novice Joomla user that has just upgraded to 1.0.13. Can anyone give me direction on how or to whom I should go to fix this problem? The home page intermittently loads and times out.

    Thanks!
  • Atli
    Recognized Expert Expert
    • Nov 2006
    • 5062

    #2
    Hi. Welcome to TSDN!

    This means that you are using an invalid variable in a foreach loop, just like the warning says.

    My best guess would be that it is trying to go through an array of database results, or something like that, but the array is not being populated correctly.

    If you could post the code that is causing this I may be able to give you a more specific answer.

    Comment

    Working...