Errors with file upload on write page.
-
Hi all,
I’m running Apache 2.2.3, PHP 5.2.0 and MySQL 5.0.27 on windows to locally test a new site.
I’m attempting to use the file upload form on the write page to add images for use in a post but I get database errors when I attempt to upload, the errors are included below.
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-11-19 14:57:33’, ‘2006-11-19 14:57:33’, ”, ‘serverinfofilled6.png’, ”, ‘attachment’, ‘open’, ‘open’, ”, ‘serverinfofilled6png’, ”, ”, ‘2006-11-19 14:57:33’, ‘2006-11-19 14:57:33’, ‘4’, ‘0’, ‘image/png’, ‘https://localhost/wordpress/wp-content/uploads/2006/11/serverinfofilled6.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)Warning: Cannot modify header information – headers already sent by (output started at C:\Documents and Settings\David\My Documents\Websites\wordpress\wp-includes\wp-db.php:104) in C:\Documents and Settings\David\My Documents\Websites\wordpress\wp-includes\pluggable-functions.php on line 269
Any help appreciated
- The topic ‘Errors with file upload on write page.’ is closed to new replies.