Opened 19 years ago
Closed 19 years ago
#4702 closed defect (bug) (fixed)
Fatal error when making child category
| Reported by: | Viper007Bond | Owned by: | ryan |
|---|---|---|---|
| Priority: | highest omg bbq | Milestone: | 2.3 |
| Component: | Administration | Version: | 2.3 |
| Severity: | blocker | Keywords: | has-patch 2nd-opinion |
| Cc: | Focuses: |
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
@
19 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
@
19 years ago
- Keywords has-patch 2nd-opinion added
- Owner changed from to
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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
PHP v5.2.1, MySQL v5.0.37