iT邦幫忙

0

wordpress error log

[20-Jul-2018 00:13:44 UTC] WordPress 資料庫錯誤:Commands out of sync; you can't run this command now 由指令 SELECT option_value FROM wp_options WHERE option_name = 'w3tc_minify' LIMIT 1 引發,錯誤來自 require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), include('/themes/gridlove/single.php'), get_header, locate_template, load_template, require_once('/themes/gridlove/header.php'), wp_head, do_action('wp_head'), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, SiteOrigin_CSS->enqueue_css, SiteOrigin_CSS->enqueue_custom_css, SiteOrigin_CSS->get_custom_css, get_option, W3TC\DbCache_Wpdb->query, W3TC\DbCache_WpdbInjection_QueryCaching->query, W3TC\_CallUnderlying->query, W3TC\DbCache_Wpdb->query, W3TC\DbCache_WpdbInjection->query, W3TC\DbCache_Wpdb->default_query, mysqli_query, shutdown_action_hook, do_action('shutdown'), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, wp_ob_end_flush_all, ob_end_flush, W3TC\Generic_Plugin->ob_callback, W3TC\Util_Bus::do_ob_callbacks, call_user_func, W3TC\Minify_Plugin->ob_callback, W3TC\_W3_MinifyJsAuto->execute, W3TC\_W3_MinifyJsAuto->process_script_tag, W3TC\_W3_MinifyJsAuto->flush_collected, W3TC\_W3_MinifyHelpers->get_minify_url_for_files, W3TC\Minify_Core::urls_for_minification_to_minify_filename, get_option, W3TC\DbCache_Wpdb->query, W3TC\DbCache_WpdbInjection->query, W3TC\DbCache_Wpdb->default_query
[20-Jul-2018 00:13:44 UTC] WordPress 資料庫錯誤:Commands out of sync; you can't run this command now 由指令 INSERT INTO `wp_options` (`option_name`, `option_value`, `autoload`) VALUES ('w3tc_minify', '{\"df983.js\":[\"wp-includes\\/js\\/jquery\\/jquery.js\",\"wp-includes\\/js\\/jquery\\/jquery-migrate.min.js\"]}', 'no') ON DUPLICATE KEY UPDATE `option_name` = VALUES(`option_name`), `option_value` = VALUES(`option_value`), `autoload` = VALUES(`autoload`) 引發,錯誤來自 require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), include('/themes/gridlove/single.php'), get_header, locate_template, load_template, require_once('/themes/gridlove/header.php'), wp_head, do_action('wp_head'), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, SiteOrigin_CSS->enqueue_css, SiteOrigin_CSS->enqueue_custom_css, SiteOrigin_CSS->get_custom_css, get_option, W3TC\DbCache_Wpdb->query, W3TC\DbCache_WpdbInjection_QueryCaching->query, W3TC\_CallUnderlying->query, W3TC\DbCache_Wpdb->query, W3TC\DbCache_WpdbInjection->query, W3TC\DbCache_Wpdb->default_query, mysqli_query, shutdown_action_hook, do_action('shutdown'), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, wp_ob_end_flush_all, ob_end_flush, W3TC\Generic_Plugin->ob_callback, W3TC\Util_Bus::do_ob_callbacks, call_user_func, W3TC\Minify_Plugin->ob_callback, W3TC\_W3_MinifyJsAuto->execute, W3TC\_W3_MinifyJsAuto->process_script_tag, W3TC\_W3_MinifyJsAuto->flush_collected, W3TC\_W3_MinifyHelpers->get_minify_url_for_files, W3TC\Minify_Core::urls_for_minification_to_minify_filename, update_option, add_option, W3TC\DbCache_Wpdb->query, W3TC\DbCache_WpdbInjection->query, W3TC\DbCache_Wpdb->default_query
[20-Jul-2018 00:13:44 UTC] WordPress 資料庫錯誤:Commands out of sync; you can't run this command now 由指令 INSERT INTO `wp_options` (`option_name`, `option_value`, `autoload`) VALUES ('w3tc_minify', '{\"8efe6.js\":[\"wp-content\\/plugins\\/jetpack\\/_inc\\/build\\/related-posts\\/related-posts.min.js\"]}', 'no') ON DUPLICATE KEY UPDATE `option_name` = VALUES(`option_name`), `option_value` = VALUES(`option_value`), `autoload` = VALUES(`autoload`) 引發,錯誤來自 require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), include('/themes/gridlove/single.php'), get_header, locate_template, load_template, require_once('/themes/gridlove/header.php'), wp_head, do_action('wp_head'), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, SiteOrigin_CSS->enqueue_css, SiteOrigin_CSS->enqueue_custom_css, SiteOrigin_CSS->get_custom_css, get_option, W3TC\DbCache_Wpdb->query, W3TC\DbCache_WpdbInjection_QueryCaching->query, W3TC\_CallUnderlying->query, W3TC\DbCache_Wpdb->query, W3TC\DbCache_WpdbInjection->query, W3TC\DbCache_Wpdb->default_query, mysqli_query, shutdown_action_hook, do_action('shutdown'), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, wp_ob_end_flush_all, ob_end_flush, W3TC\Generic_Plugin->ob_callback, W3TC\Util_Bus::do_ob_callbacks, call_user_func, W3TC\Minify_Plugin->ob_callback, W3TC\_W3_MinifyJsAuto->execute, W3TC\_W3_MinifyJsAuto->process_script_tag, W3TC\_W3_MinifyJsAuto->flush_collected, W3TC\_W3_MinifyHelpers->get_minify_url_for_files, W3TC\Minify_Core::urls_for_minification_to_minify_filename, update_option, add_option, W3TC\DbCache_Wpdb->query, W3TC\DbCache_WpdbInjection->query, W3TC\DbCache_Wpdb->default_query
[20-Jul-2018 00:13:44 UTC] WordPress 資料庫錯誤:Commands out of sync; you can't run this command now 由指令 INSERT INTO `wp_options` (`option_name`, `option_value`, `autoload`) VALUES ('w3tc_minify', '{\"4d522.js\":[\"wp-content\\/plugins\\/google-analytics-for-wordpress\\/assets\\/js\\/frontend.min.js\",\"wp-content\\/plugins\\/download-manager\\/assets\\/bootstrap\\/js\\/bootstrap.min.js\",\"wp-content\\/plugins\\/download-manager\\/assets\\/js\\/front.js\",\"wp-content\\/plugins\\/download-manager\\/assets\\/js\\/chosen.jquery.min.js\",\"wp-content\\/plugins\\/easy-video-player\\/lib\\/flowplayer.min.js\",\"wp-content\\/plugins\\/meks-flexible-shortcodes\\/js\\/main.js\",\"wp-includes\\/js\\/jquery\\/ui\\/core.min.js\",\"wp-includes\\/js\\/jquery\\/ui\\/effect.min.js\",\"wp-includes\\/js\\/jquery\\/ui\\/effect-slide.min.js\"]}', 'no') ON DUPLICATE KEY UPDATE `option_name` = VALUES(`option_name`), `option_value` = VALUES(`option_value`), `autoload` = VALUES(`autoload`) 引發,錯誤來自 require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), include('/themes/gridlove/single.php'), get_header, locate_template, load_template, require_once('/themes/gridlove/header.php'), wp_head, do_action('wp_head'), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, SiteOrigin_CSS->enqueue_css, SiteOrigin_CSS->enqueue_custom_css, SiteOrigin_CSS->get_custom_css, get_option, W3TC\DbCache_Wpdb->query, W3TC\DbCache_WpdbInjection_QueryCaching->query, W3TC\_CallUnderlying->query, W3TC\DbCache_Wpdb->query, W3TC\DbCache_WpdbInjection->query, W3TC\DbCache_Wpdb->default_query, mysqli_query, shutdown_action_hook, do_action('shutdown'), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, wp_ob_end_flush_all, ob_end_flush, W3TC\Generic_Plugin->ob_callback, W3TC\Util_Bus::do_ob_callbacks, call_user_func, W3TC\Minify_Plugin->ob_callback, W3TC\_W3_MinifyJsAuto->execute, W3TC\_W3_MinifyJsAuto->process_script_tag, W3TC\_W3_MinifyJsAuto->flush_collected, W3TC\_W3_MinifyHelpers->get_minify_url_for_files, W3TC\Minify_Core::urls_for_minification_to_minify_filename, update_option, add_option, W3TC\DbCache_Wpdb->query, W3TC\DbCache_WpdbInjection->query, W3TC\DbCache_Wpdb->default_query
[20-Jul-2018 00:13:44 UTC] WordPress 資料庫錯誤:Commands out of sync; you can't run this command now 由指令 INSERT INTO `wp_options` (`option_name`, `option_value`, `autoload`) VALUES ('w3tc_minify', '{\"ea689.js\":[\"wp-content\\/plugins\\/stealth_note\\/js\\/widget.js\",\"wp-content\\/plugins\\/duracelltomi-google-tag-manager\\/js\\/gtm4wp-form-move-tracker.js\"]}', 'no') ON DUPLICATE KEY UPDATE `option_name` = VALUES(`option_name`), `option_value` = VALUES(`option_value`), `autoload` = VALUES(`autoload`) 引發,錯誤來自 require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), include('/themes/gridlove/single.php'), get_header, locate_template, load_template, require_once('/themes/gridlove/header.php'), wp_head, do_action('wp_head'), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, SiteOrigin_CSS->enqueue_css, SiteOrigin_CSS->enqueue_custom_css, SiteOrigin_CSS->get_custom_css, get_option, W3TC\DbCache_Wpdb->query, W3TC\DbCache_WpdbInjection_QueryCaching->query, W3TC\_CallUnderlying->query, W3TC\DbCache_Wpdb->query, W3TC\DbCache_WpdbInjection->query, W3TC\DbCache_Wpdb->default_query, mysqli_query, shutdown_action_hook, do_action('shutdown'), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, wp_ob_end_flush_all, ob_end_flush, W3TC\Generic_Plugin->ob_callback, W3TC\Util_Bus::do_ob_callbacks, call_user_func, W3TC\Minify_Plugin->ob_callback, W3TC\_W3_MinifyJsAuto->execute, W3TC\_W3_MinifyJsAuto->process_script_tag, W3TC\_W3_MinifyJsAuto->flush_collected, W3TC\_W3_MinifyHelpers->get_minify_url_for_files, W3TC\Minify_Core::urls_for_minification_to_minify_filename, update_option, add_option, W3TC\DbCache_Wpdb->query, W3TC\DbCache_WpdbInjection->query, W3TC\DbCache_Wpdb->default_query
[20-Jul-2018 00:13:44 UTC] WordPress 資料庫錯誤:Commands out of sync; you can't run this command now 由指令 INSERT INTO `wp_options` (`option_name`, `option_value`, `autoload`) VALUES ('w3tc_minify', '{\"fae21.css\":[\"wp-content\\/plugins\\/codelights-shortcodes-and-widgets\\/vendor\\/font-awesome\\/font-awesome.min.css\",\"wp-content\\/plugins\\/download-manager\\/assets\\/bootstrap\\/css\\/bootstrap.css\",\"wp-content\\/plugins\\/download-manager\\/assets\\/css\\/front.css\",\"wp-content\\/plugins\\/easy-video-player\\/lib\\/skin\\/skin.css\",\"wp-content\\/plugins\\/meks-flexible-shortcodes\\/css\\/simple-line\\/simple-line-icons.css\",\"wp-content\\/plugins\\/meks-flexible-shortcodes\\/css\\/style.css\",\"wp-content\\/plugins\\/stealth_note\\/css\\/widget.css\",\"wp-content\\/plugins\\/stealth_note\\/css\\/font-awesome.css\",\"wp-content\\/plugins\\/popups\\/public\\/assets\\/css\\/public.css\",\"wp-includes\\/css\\/dashicons.min.css\",\"wp-content\\/themes\\/gridlove\\/assets\\/css\\/min.css\",\"wp-content\\/plugins\\/meks-easy-ads-widget\\/css\\/style.css\",\"wp-content\\/plugins\\/meks-easy-instagram-widget\\/css\\/widget.css\",\"wp-content\\/plugins\\/meks-simple-flickr-widget\\/css\\/style.css\",\"wp-content\\/plugins\\/meks-smart-author-widget\\/css\\/style.css\",\"wp-content\\/plugins\\/meks-smart-social-widget\\/css\\/style.css\",\"wp-content\\/plugins\\/meks-themeforest-smart-widget\\/css\\/style.css\",\"wp-content\\/plugins\\/jetpack\\/modules\\/widgets\\/social-icons\\/social-icons.css\",\"wp-content\\/plugins\\/easy-fancybox\\/fancybox\\/jquery.fancybox.min.css\",\"wp-content\\/plugins\\/jetpack\\/_inc\\/social-logos\\/social-logos.min.css\",\"wp-content\\/plugins\\/jetpack\\/css\\/jetpack.css\"]}', 'no') ON DUPLICATE KEY UPDATE `option_name` = VALUES(`option_name`), `option_value` = VALUES(`option_value`), `autoload` = VALUES(`autoload`) 引發,錯誤來自 require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), include('/themes/gridlove/single.php'), get_header, locate_template, load_template, require_once('/themes/gridlove/header.php'), wp_head, do_action('wp_head'), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, SiteOrigin_CSS->enqueue_css, SiteOrigin_CSS->enqueue_custom_css, SiteOrigin_CSS->get_custom_css, get_option, W3TC\DbCache_Wpdb->query, W3TC\DbCache_WpdbInjection_QueryCaching->query, W3TC\_CallUnderlying->query, W3TC\DbCache_Wpdb->query, W3TC\DbCache_WpdbInjection->query, W3TC\DbCache_Wpdb->default_query, mysqli_query, shutdown_action_hook, do_action('shutdown'), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, wp_ob_end_flush_all, ob_end_flush, W3TC\Generic_Plugin->ob_callback, W3TC\Util_Bus::do_ob_callbacks, call_user_func, W3TC\Minify_Plugin->ob_callback, W3TC\Minify_Plugin->get_style_custom, W3TC\_W3_MinifyHelpers->get_minify_url_for_files, W3TC\Minify_Core::urls_for_minification_to_minify_filename, update_option, add_option, W3TC\DbCache_Wpdb->query, W3TC\DbCache_WpdbInjection->query, W3TC\DbCache_Wpdb->default_query
[20-Jul-2018 00:13:44 UTC] WordPress 資料庫錯誤:Commands out of sync; you can't run this command now 由指令 SHOW FULL COLUMNS FROM `wp_options` 引發,錯誤來自 require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), include('/themes/gridlove/single.php'), get_header, locate_template, load_template, require_once('/themes/gridlove/header.php'), wp_head, do_action('wp_head'), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, SiteOrigin_CSS->enqueue_css, SiteOrigin_CSS->enqueue_custom_css, SiteOrigin_CSS->get_custom_css, get_option, W3TC\DbCache_Wpdb->query, W3TC\DbCache_WpdbInjection_QueryCaching->query, W3TC\_CallUnderlying->query, W3TC\DbCache_Wpdb->query, W3TC\DbCache_WpdbInjection->query, W3TC\DbCache_Wpdb->default_query, mysqli_query, A_MVC_Router->cache_lookups, C_Photocrati_Transient_Manager::update, C_Photocrati_Transient_Manager->set, set_transient, update_option, W3TC\DbCache_Wpdb->update, W3TC\DbCache_WpdbInjection->update, W3TC\DbCache_Wpdb->default_update, W3TC\DbCache_Wpdb->query, W3TC\DbCache_WpdbInjection->query, W3TC\DbCache_Wpdb->default_query
[20-Jul-2018 01:27:51 UTC] WordPress 資料庫錯誤:Commands out of sync; you can't run this command now 由指令 SHOW FULL COLUMNS FROM `wp_options` 引發,錯誤來自 require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), include('/plugins/wptouch/themes/bauhaus/default/single.php'), get_header, locate_template, load_template, require_once('/plugins/wptouch/themes/bauhaus/default/header.php'), get_template_part, locate_template, load_template, require('/plugins/wptouch/themes/bauhaus/default/header-bottom.php'), wptouch_show_menu, _wptouch_show_menu, wp_list_pages, walk_page_tree, call_user_func_array, Walker->walk, Walker->display_element, call_user_func_array, WPtouchProMainPageMenuWalker->start_el, wptouch_menu_is_disabled, get_post_meta, get_metadata, update_meta_cache, W3TC\DbCache_Wpdb->query, W3TC\DbCache_WpdbInjection_QueryCaching->query, W3TC\_CallUnderlying->query, W3TC\DbCache_Wpdb->query, W3TC\DbCache_WpdbInjection->query, W3TC\DbCache_Wpdb->default_query, mysqli_query, A_MVC_Router->cache_lookups, C_Photocrati_Transient_Manager::update, C_Photocrati_Transient_Manager->set, set_transient, update_option, W3TC\DbCache_Wpdb->update, W3TC\DbCache_WpdbInjection->update, W3TC\DbCache_Wpdb->default_update, W3TC\DbCache_Wpdb->query, W3TC\DbCache_WpdbInjection->query, W3TC\DbCache_Wpdb->default_query
[20-Jul-2018 04:03:06 UTC] WordPress 資料庫錯誤:Commands out of sync; you can't run this command now 由指令 SHOW FULL COLUMNS FROM `wp_options` 引發,錯誤來自 require('wp-blog-header.php'), require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), do_action('wp_loaded'), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, bauhaus_featured_setup, bauhaus_featured_has_image, get_the_post_thumbnail, wp_get_attachment_image, wp_get_attachment_image_src, image_downsize, wp_attachment_is_image, wp_attachment_is, get_post, WP_Post::get_instance, mysqli_query, A_MVC_Router->cache_lookups, C_Photocrati_Transient_Manager::update, C_Photocrati_Transient_Manager->set, set_transient, update_option

這些錯誤是什麼意思?

看更多先前的討論...收起先前的討論...
資料庫的表建立了沒,基礎資料放進去了沒,資料連結設定了沒,大概就這幾個沒弄好就會這樣
但如果之前是好的,那就是資料庫可能掛了
d2598798 iT邦新手 5 級 ‧ 2018-07-20 14:44:30 檢舉
都匯入了
網站可以正常運作 也可以留言 但是就是出現這個錯誤不知道是什麼
然後wordpress的小工具會失效 上網查好像跟wp_options有關
d2598798 iT邦新手 5 級 ‧ 2018-07-20 14:45:11 檢舉
之前都正常 沒出現過 最近更換主機才出現的 資料庫要再重新匯入一次?
d2598798 iT邦新手 5 級 ‧ 2018-07-20 15:25:40 檢舉
我重新匯入資料庫時出現
SQL 查詢:
---- 資料表索引 `wp_options`
--
ALTER TABLE `wp_options`
ADD PRIMARY KEY (`option_id`),
ADD UNIQUE KEY `option_name` (`option_name`)
MySQL 回應:

#1062 - Duplicate entry '0' for key 'PRIMARY'
d2598798 iT邦新手 5 級 ‧ 2018-07-20 19:20:59 檢舉
目前沒錯誤訊息了 重新匯入就好了

1 個回答

0
Kert
iT邦新手 3 級 ‧ 2018-07-20 15:22:33

WP-config.php (??忘了全名) 裡面看看資料庫是否設定都對 主機wordpress 最好用plugin 搬

我要發表回答

立即登入回答