Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#3072 closed defect (bug) (fixed)

Autosave breaks when there are no categories selected

Reported by: matt Owned by: anonymous
Priority: high Milestone: 2.1
Component: Administration Version: 2.1
Severity: normal Keywords:
Cc:

Description

Steps to recreate:

  • Start a post
  • Uncheck any category boxes
  • Wait until autosave kicks in

This is the error message I saw:

WordPress database error: [You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 2]
INSERT INTO wp_post2cat (post_id, category_id) VALUES (55, )

Change History (4)

comment:1   matt7 years ago

  • Milestone set to 2.1
  • Priority changed from normal to high
  • Version set to 2.1

comment:2   ryan7 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [4119]) Handle posts with an empty cat list. fixes #3072

comment:3   matt7 years ago

Just to confirm, does this still insure that every post has at least 1 category? (The default.)

comment:4   ryan7 years ago

yes

Note: See TracTickets for help on using tickets.