WordPress.org

Support

Support » Installation » Invalid argument

Invalid argument

  • Hello,

    I am moving my wordpress to another server. I imported the SQL file. Initially there was a table missing so I added that(I think I did it right) but now Im getting this error:

    Warning: Invalid argument supplied for foreach() in /home/content/P/r/o/Projectpathway/html/chez/menu/wp-includes/template-functions-category.php on line 321

    I don’t know if it helps to see the page but her it is:
    http://www.chezelenawu.com/menu

    Here is some of the code, the bottom line where it says – echo “</select>\n”; – is line 321. I hope i put the right think around the code:

    [Moderated: Code paste removed. A script name and line number are really all you need (and WordPress version #!); those who can help know how to dig it out from their own WP installs.]

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • I just added a catergory and the error went away.

    I suppose then it was the categories table that was missing? The default category is added upon installation, and without it there can be problems.

    In any case, glad you fixed things up.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Invalid argument’ is closed to new replies.
Skip to toolbar