WordPress.org

Make WordPress Core

Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#6006 closed defect (bug) (fixed)

SQL error uploading file using media manager

Reported by: SteveAgl Owned by:
Milestone: 2.5 Priority: high
Severity: blocker Version: 2.5
Component: Administration Keywords:
Focuses: Cc:

Description

on a win installation with last version of PHP/SQL/APACHE using media uploader on RTE give this error, for any type of files (images, audio):

WordPress database error Field 'post_excerpt' doesn't have a default value for query INSERT INTO wp_posts (post_author,post_date,post_date_gmt,post_content,post_title,post_status,post_type,comment_status,ping_status,post_password,post_name,to_ping,pinged,post_modified,post_modified_gmt,post_parent,menu_order,post_mime_type,guid) VALUES ('1','2008-02-26 17:31:24','2008-02-26 16:31:24',,'tada','inherit','attachment','open','open',,'tada',,,'2008-02-26 17:31:24','2008-02-26 16:31:24','-1204042914','0','audio/wav','http://www.wpt.loc/wp-content/uploads/2008/02/tada.wav') made by wp_insert_attachment

Change History (3)

comment:1 ryan6 years ago

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

(In [7042]) Add some defaults for wp_insert_attachment. fixes #6006

comment:2 ryan6 years ago

How's that?

comment:3 SteveAgl6 years ago

Now it works

Note: See TracTickets for help on using tickets.