Forums

Error returned from wp-mail.php (3 posts)

  1. Blind_Monkey
    Member
    Posted 4 years ago #

    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?

  2. Anonymous
    Unregistered
    Posted 4 years ago #

    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

  3. tbishop61
    Member
    Posted 4 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.