Opened 16 years ago
Closed 16 years ago
#4702 closed defect (bug) (fixed)
Fatal error when making child category
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 2.3 | Priority: | highest omg bbq |
Severity: | blocker | Version: | 2.3 |
Component: | Administration | Keywords: | has-patch 2nd-opinion |
Focuses: | Cc: |
Description
Go to Manage -> Categories and try to make a new category that's the child of another category. Doing so will produce the following error:
Catchable fatal error: Object of class stdClass could not be converted to string in [...]\wp-includes\taxonomy.php on line 765
Editing a category and turning it into the child of another also causes this issue.
Props to Ryan Fitzer for finding the issue.
Attachments (1)
Change History (7)
#2
@
16 years ago
I get:
Catchable fatal error: Object of class stdClass could not be converted to string in [...]/wp-includes/taxonomy.php on line 647
Both lines are $wpdb->query()
calls.
#3
@
16 years ago
- Keywords has-patch 2nd-opinion added
- Owner changed from anonymous to ryan
There's my swing at it... but I don't know if the error is that these functions don't accept term objects as well as ints or if the error is that these functions are being passed parent term objects. I opted for the more liberal case and accepted either. Would like to get Ryan's feedback on this one as this is his code.
Note: See
TracTickets for help on using
tickets.
PHP v5.2.1, MySQL v5.0.37