[gallery]での画像表示でエラー
-
wp2.5 からの機能と思いますが、ギャラリーでの画像挿入時に以下のエラーが発生しています。原因と回避方法についてどなたかご存知無いでしょうか?
画像のアップロード, サムネイルの生成はうまくいっているようです。またデータベースについても一見正しそうなデータは格納されています。
*apache のログ:
[Sun Apr 06 18:27:11 2008] [error] [client *.*.*.*] 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 ‘\\”menu_order ASC, ID ASC\\” DESC’ at line 1 for query SELECT DISTINCT * FROM wp_posts WHERE 1=1 AND post_type = ‘attachment’ AND wp_posts.post_parent = 160 AND (post_mime_type LIKE ‘image/%’) GROUP BY wp_posts.ID ORDER BY \\”menu_order ASC, ID ASC\\” DESC made by get_posts, referer: http://****.com/****/wp-admin/post.php?action=edit&post=160*dbより抜粋
INSERT INTOwp_posts
(ID
,post_author
,post_date
,post_date_gmt
,post_content
,post_title
,post_category
,post_excerpt
,post_status
,comment_status
,ping_status
,post_password
,post_name
,to_ping
,pinged
,post_modified
,post_modified_gmt
,post_content_filtered
,post_parent
,guid
,menu_order
,post_type
,post_mime_type
,comment_count
) VALUES
(160, 1, ‘****-**-** **:**:**’, ‘****-**-** **:**:**’, ‘test[gallery][gallery]‘, ‘test’, 0, ”, ‘publish’, ‘open’, ‘open’, ”, ‘test’, ”, ”, ‘****-*-* **:**:**’, ‘****-**-** **:**:**’, ”, 0, ‘http://*.com/*/?p=160’, 0, ‘post’, ”, 1),
(161, 1, ‘****-**-** **:**:**’, ‘****-**-** **:**:**’, ”, ‘test2’, 0, ”, ‘inherit’, ‘open’, ‘open’, ”, ‘test2’, ”, ”, ‘****-**-** **:**:**’, ‘****-*-* **:1:**’, ”, 160, ‘http://*.com/*/wp-content/uploads/2008/04/test2.gif’, 0, ‘attachment’, ‘image/gif’, 0),
(162, 1, ‘****-**-** **:**:**’, ‘****-**-** **:**:**’, ”, ‘test’, 0, ”, ‘inherit’, ‘open’, ‘open’, ”, ‘test’, ”, ”, ‘****-**-** **:**:**’, ‘****-*-* **:**:**’, ”, 160, ‘http://*.com/*/wp-content/uploads/2008/04/test.gif’, 0, ‘attachment’, ‘image/gif’, 0);
- トピック「[gallery]での画像表示でエラー」には新たに返信することはできません。