WordPress.org

Ready to get started?Download WordPress

Forums

Blog by email error in template-functions-category (8 posts)

  1. Anonymous
    Unregistered
    Posted 10 years ago #

    I have a vanilla install of Mingus WordPress with no plugins, and no categories setup. I tried the blogging by mail, and my email was processed, but when I went to the front page of my blog, I got the following error where the category should be:
    'Category:
    Warning: Invalid argument supplied for foreach() in /home/geodog/public_html/strangelove/
    wp-includes/template-functions-category.php on line 65'
    When I went to the editing page to correct it, I found the following error under the categories column:
    'Warning: in_array(): Wrong datatype for second argument in /home/geodog/public_html/strangelove/
    wp-admin/admin-functions.php on line 41'
    I checked the checkmark next to General, clicked Save, and the error when away. However, when I tried blog by email again, the error happened again.
    I saw some posts about this in the forums, but no solutions suggested. Anybody have any ideas? Anything I can do to further debug the problem? TIA
    Tim

  2. Mark (podz)
    Support Maven
    Posted 10 years ago #

    To which category is your emailed post meant to belong ?
    And does that category exist ?

  3. tbishop61
    Member
    Posted 10 years ago #

    I just have the one "General" category that WordPress starts out with -- I'm not using categories at the moment.
    If there is a way to specify categories in email, I've missed it and would be delighted to be enlightened.
    Thanks for trying to dig down on this.
    Tim

  4. tbishop61
    Member
    Posted 10 years ago #

    Carthik / Fargon on IRC gave me a kludge that should work until the bug (filed as http://mosquito.wordpress.org/bug_view_page.php?bug_id=0000167)
    is fixed.
    in wp-mail, replace line if (empty($post_categories)) $post_categories[] = get_settings('default_category');
    with
    $post_categories[] = '1';
    Sets all posts by mail to your default category. Works for me. Thanks and props to Carthik

  5. tbishop61
    Member
    Posted 10 years ago #

    Update:
    The kudge helps, but I have had the error reoccur. I'm also seeing more reports of the problem -- 2 at http://blade.lansmash.com/index.php?p=39#comments, and a third on this BB.
    Could it be a timing thing? Oh well, I've filed a bug. If anyone needs debugging assistance, let me know.

  6. joseftu
    Member
    Posted 9 years ago #

    I'm having the same error--most troublesome!

  7. joseftu
    Member
    Posted 9 years ago #

    To be a little more specific, I get that exact same error in the blog--on the second (and successive) attempt at post by email.
    Also, on the admin page, in the categories line, it says this:
    Warning: in_array(): Wrong datatype for second argument in /home/mounteb2/public_html/blog/wp-admin/admin-functions.php on line 41
    Warning: in_array(): Wrong datatype for second argument in /home/mounteb2/public_html/blog/wp-admin/admin-functions.php on line 41
    Warning: in_array(): Wrong datatype for second argument in /home/mounteb2/public_html/blog/wp-admin/admin-functions.php on line 41
    Warning: in_array(): Wrong datatype for second argument in /home/mounteb2/public_html/blog/wp-admin/admin-functions.php on line 41
    Warning: in_array(): Wrong datatype for second argument in /home/mounteb2/public_html/blog/wp-admin/admin-functions.php on line 41
    Warning: in_array(): Wrong datatype for second argument in /home/mounteb2/public_html/blog/wp-admin/admin-functions.php on line 41
    Warning: in_array(): Wrong datatype for second argument in /home/mounteb2/public_html/blog/wp-admin/admin-functions.php on line 41
    And then lists the categories.

  8. Anonymous
    Unregistered
    Posted 9 years ago #

    I'm experiencing this same problem.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.