• 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

Viewing 7 replies - 1 through 7 (of 7 total)
  • To which category is your emailed post meant to belong ?
    And does that category exist ?

    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

    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

    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.

    I’m having the same error–most troublesome!

    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.

    Thread Starter Anonymous

    I’m experiencing this same problem.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Blog by email error in template-functions-category’ is closed to new replies.