База данных WordPress возвратила ошибку...

metallphilin

старожил nulled
Регистрация
25 Авг 2006
Сообщения
680
Реакции
212
Господа нужна помощь,

сам мускул ощутимо тормозит на сервере, логи регулярно забиваются (подобными) ошибками

База данных WordPress возвратила ошибку 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 'WHERE user_id = 12279 AND blog_id = 1' at line 1 в ответ на запрос SELECT COUNT(id) FROM WHERE user_id = 12279 AND blog_id = 1, выполненный require('wp-blog-header.php'), require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), do_action('init'), WP_Hook->do_action, WP_Hook->apply_filters, bp_init, do_action('bp_init'), WP_Hook->do_action, WP_Hook->apply_filters, bp_setup_globals, do_action('bp_setup_globals'), WP_Hook->do_action, WP_Hook->apply_filters, BP_Members_Component->setup_globals, bp_core_get_core_userdata, apply_filters('bp_core_get_core_userdata'), WP_Hook->apply_filters, bp_xprofile_adjust_display_user_display_name, bp_core_get_member_display_name, bp_xprofile_get_member_display_name, xprofile_set_field_data, BP_XProfile_ProfileData->save, do_action_ref_array('xprofile_data_after_save'), WP_Hook->do_action, WP_Hook->apply_filters, xprofile_sync_wp_profile_on_single_field_set, xprofile_sync_wp_profile, bp_xprofile_update_display_name, wp_update_user, wp_insert_user, do_action('profile_update'), WP_Hook->do_action, WP_Hook->apply_filters, bp_blogs_add_user_to_blog, bp_blogs_record_blog, BP_Blogs_Blog->save, BP_Blogs_Blog->exists

 
Based on the error message, I suspect there's an invalid character preceding the AND keyword in the query.
This is the kind of error you would get if you ran a query that had a comma or some other non-whitespace character preceding the AND keyword.
 
WordPress формирует запрос, который неверный (пропущено название таблицы)
Код:
SELECT COUNT(id) FROM WHERE user_id = 12279 AND blog_id = 1
должно быть
Код:
SELECT COUNT(id) FROM [table] WHERE user_id = 12279 AND blog_id = 1
 
Назад
Сверху