Getting SQL Errors when Uploading Files
-
I just installed WordPress and when I try to upload a file I get the error below. The file is being uploaded to the wp-content/uploads directory, it’s just not showing in the post.
WordPress database error: [Field ‘post_content_filtered’ doesn’t have a default value]
INSERT INTO wp_posts (post_author, post_date, post_date_gmt, post_content, post_title, post_excerpt, post_status, 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’, ‘2006-05-23 00:04:11’, ‘2006-05-23 05:04:11’, ”, ‘Area-Focus-Web3.png’, ”, ‘attachment’, ‘open’, ‘open’, ”, ‘area-focus-web3png’, ”, ”, ‘2006-05-23 00:04:11’, ‘2006-05-23 05:04:11’, ‘-1148360637’, ‘0’, ‘image/png’, ‘https://www.shadal.net/classnotes/wp-content/uploads/2006/05/Area-Focus-Web3.png’)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 3]
SELECT category_id FROM wp_post2cat WHERE post_id =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 ‘ 1)’ at line 2]
INSERT INTO wp_post2cat (post_id, category_id) VALUES (, 1)WordPress database error: [Out of range value adjusted for column ‘post_id’ at row 1]
INSERT INTO wp_postmeta (post_id,meta_key,meta_value) VALUES (”,’_wp_attached_file’,’E:\Apache\Shadal\classnotes/wp-content/uploads/2006/05/Area-Focus-Web3.png’)WordPress database error: [Out of range value adjusted for column ‘post_id’ at row 1]
INSERT INTO wp_postmeta (post_id,meta_key,meta_value) VALUES (”,’_wp_attachment_metadata’,’a:4:{s:5:\”width\”;i:1080;s:6:\”height\”;i:810;s:14:\”hwstring_small\”;s:23:\”height=\’96\’ width=\’128\’\”;s:4:\”file\”;s:74:\”E:\\Apache\\Shadal\\classnotes/wp-content/uploads/2006/05/Area-Focus-Web3.png\”;}’)
- The topic ‘Getting SQL Errors when Uploading Files’ is closed to new replies.