【发布时间】:2017-04-21 18:48:21
【问题描述】:
我将服务器转移到另一家托管公司,网站运行良好...尝试了数据库修复,它运行并完成。似乎没有什么能解决这个问题。
当我去添加产品时,由于某种原因,我无法将图像添加到媒体文件夹。我在调试时收到以下错误消息。我的产品通常由 cron 更新,并且我的所有图像都丢失了,因为它试图更新它们。虽然它们正在上传,但我在管理和前端得到了占位符。上传时调试错误:
WordPress database error: [Duplicate entry '0' for key 'PRIMARY']
INSERT INTO `wp_posts` (`post_author`, `post_date`, `post_date_gmt`, `post_content`, `post_content_filtered`, `post_title`, `post_excerpt`, `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, '2017-04-21 14:43:57', '2017-04-21 18:43:57', '', '', 'A1990B-021', '', 'inherit', 'attachment', 'open', 'closed', '', 'a1990b-021', '', '', '2017-04-21 14:43:57', '2017-04-21 18:43:57', 0, 0, 'image/jpeg', 'http://www.myurlishere.com/wp-content/uploads/A1990B-021-1.jpg')
0
【问题讨论】:
标签: mysql wordpress woocommerce