Make WordPress Core

Opened 22 years ago

Closed 22 years ago

#167 closed defect (bug) (fixed)

wp-mail won't assign category, shows error on front page category

Reported by: tbishop61 Owned by: matt
Priority: normal Milestone:
Component: General Version: 1.2
Severity: minor Keywords:
Cc: Focuses:

Description

I have a vanilla install of Mingus Wordpress with no plugins, and no categories setup except for the default, General. 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.

Change History (3)

#2 @tbishop61
22 years ago

Carthik gave me a workaround, to set
$post_categories[] = '1'; in wp_mail.php which has helped, but the error is still occuring.

The only thing I know about my setup that isn't plain vanilla is that my host has the abominable magic_quotes on, and I haven't turned them off via .htaccess.

#3 @matt
22 years ago

  • fixed_in_version → 1.5
  • Owner changed from anonymous to matt
  • Resolution 10 → 20
  • Status new → closed

Mail should create categories now.

Note: See TracTickets for help on using tickets.