• After setting up posting by email, I’m getting the followig error after running wp-mail.php. The error is found in the Category field of the new post when selecting edit from the main admin page.
    ===========
    Warning: Invalid argument supplied for foreach() in /var/www/html/paddy/wp-includes/template-functions-category.php on line 90
    ===========
    Also, another error is listed when selecting to edit the post itself. The error is listed in the Categories field on the right, and the actual category with it’s check box is listed following the error.
    ===========
    Warning: Wrong datatype for second argument in call to in_array in /var/www/html/paddy/wp-admin/admin-functions.php on line 41
    ===========
    Any thoughts? Help? Prayers?

Viewing 2 replies - 1 through 2 (of 2 total)
  • I have thoughts and prayers, but no solutions to offer.
    I am having the exact same problem, so it isn’t just you (and if you find a solution, I’d be greatful if you would let me know).
    I am wondering if it has anything to do with magic-quotes, since my host unfortunately has them turned on, and I didn’t turn them off before installing WP.
    Do you have magic quotes turned on on your server?
    TIA, tim

    There is a kludge available now.
    $post_categories[] = '1';
    See this
    “>thread

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Error returned from wp-mail.php’ is closed to new replies.