Support » Fixing WordPress » You do not have sufficient permissions to access this page.

  • Wandering-Photographer

    (@wandering-photographer)


    Hello,
    My website was working beautifully a few hours ago. I was working in the backend of a wordpress site http://www.wandering-photographer.com replying to comments. The first reply worked perfectly. For the second and subsequent replies, it did not work. I have checked the error log and get the following:

    [30-Mar-2012 00:03:09] WordPress database error MySQL server has gone away for query SELECT * FROM wp_users WHERE ID = ‘5’ made by WP_Comments_List_Table->single_row, get_comment_class, get_userdata, get_user_by, WP_User->get_data_by, W3_Db->query
    [30-Mar-2012 00:03:10] WordPress database error MySQL server has gone away for query SELECT * FROM wp_users WHERE ID = ‘5’ made by WP_Comments_List_Table->single_row, current_user_can, call_user_func_array, WP_User->has_cap, call_user_func_array, map_meta_cap, map_meta_cap, get_userdata, get_user_by, WP_User->get_data_by, W3_Db->query
    [30-Mar-2012 00:03:10] WordPress database error MySQL server has gone away for query SELECT * FROM wp_users WHERE ID = ‘5’ made by WP_Comments_List_Table->single_row, current_user_can, call_user_func_array, WP_User->has_cap, call_user_func_array, map_meta_cap, map_meta_cap, get_userdata, get_user_by, WP_User->get_data_by, W3_Db->query
    [30-Mar-2012 00:03:10] WordPress database error MySQL server has gone away for query SELECT user_id, meta_key, meta_value FROM wp_usermeta WHERE user_id IN (5) made by WP_Comments_List_Table->single_row, WP_List_Table->single_row_columns, WP_List_Table->get_column_info, get_hidden_columns, get_user_option, WP_User->has_prop, WP_User->__isset, metadata_exists, update_meta_cache, W3_Db->query
    [30-Mar-2012 00:03:10] WordPress database error MySQL server has gone away for query SELECT * FROM wp_users WHERE ID = ‘5’ made by WP_Comments_List_Table->single_row, WP_List_Table->single_row_columns, call_user_func, WP_Comments_List_Table->column_author, comment_author, apply_filters, call_user_func_array, floated_admin_avatar, get_avatar, get_userdata, get_user_by, WP_User->get_data_by, W3_Db->query
    [30-Mar-2012 00:03:10] WordPress database error MySQL server has gone away for query SELECT comment_id, meta_key, meta_value FROM wp_commentmeta WHERE comment_id IN (287) made by WP_Comments_List_Table->single_row, WP_List_Table->single_row_columns, call_user_func, WP_Comments_List_Table->column_comment, comment_text, apply_filters, call_user_func_array, cl_premium->do_shortcode, get_comment_meta, get_metadata, update_meta_cache, W3_Db->query
    [30-Mar-2012 00:03:10] WordPress database error MySQL server has gone away for query SELECT twitid FROM wp_wptwitipid WHERE email = ‘jarrad@wandering-photographer.com’ made by WP_Comments_List_Table->single_row, WP_List_Table->single_row_columns, call_user_func, WP_Comments_List_Table->column_comment, comment_text, apply_filters, call_user_func_array, cl_premium->do_shortcode, cl_premium->get_twitter_link, W3_Db->query
    [30-Mar-2012 00:03:10] WordPress database error MySQL server has gone away for query SELECT comment_post_ID, COUNT(comment_ID) as num_comments FROM wp_comments WHERE comment_post_ID IN ( ‘3014’ ) AND comment_approved = ‘0’ GROUP BY comment_post_ID made by WP_Comments_List_Table->single_row, WP_List_Table->single_row_columns, call_user_func, WP_Comments_List_Table->column_response, get_pending_comments_num, W3_Db->query
    [30-Mar-2012 00:03:10] WordPress database error MySQL server has gone away for query SELECT * FROM wp_users WHERE ID = ‘5’ made by WP_Comments_List_Table->single_row, WP_List_Table->single_row_columns, call_user_func, WP_Comments_List_Table->column_response, current_user_can, call_user_func_array, WP_User->has_cap, call_user_func_array, map_meta_cap, get_userdata, get_user_by, WP_User->get_data_by, W3_Db->query
    [30-Mar-2012 00:03:10] WordPress database error MySQL server has gone away for query SELECT * FROM wp_users WHERE ID = ‘5’ made by WP_Comments_List_Table->single_row, WP_List_Table->single_row_columns, call_user_func, WP_Comments_List_Table->column_response, current_user_can, call_user_func_array, WP_User->has_cap, call_user_func_array, map_meta_cap, get_userdata, get_user_by, WP_User->get_data_by, W3_Db->query
    [30-Mar-2012 00:03:10] WordPress database error MySQL server has gone away for query SELECT * FROM wp_users WHERE ID = ‘5’ made by WP_Comments_List_Table->single_row, WP_List_Table->single_row_columns, call_user_func, WP_Comments_List_Table->column_response, get_edit_post_link, current_user_can, call_user_func_array, WP_User->has_cap, call_user_func_array, map_meta_cap, get_userdata, get_user_by, WP_User->get_data_by, W3_Db->query
    [30-Mar-2012 00:03:10] WordPress database error MySQL server has gone away for query SELECT * FROM wp_users WHERE ID = ‘5’ made by WP_Comments_List_Table->single_row, WP_List_Table->single_row_columns, call_user_func, WP_Comments_List_Table->column_response, get_edit_post_link, current_user_can, call_user_func_array, WP_User->has_cap, call_user_func_array, map_meta_cap, get_userdata, get_user_by, WP_User->get_data_by, W3_Db->query

    After doing that, I suddenly got the message that:
    You do not have sufficient permissions to access this page.

    I tried going in and removing the plugins in the ftp. This did not resolve the issue, so I replaced the plugins.

    Do you know what can be causing this? The front end of the website still appears to be working. I have monitoring through sucuri, and they have not detected any malware.

    I am not sure if the two issues are related or seperate, but it seems odd they both occurred at the same time

  • The topic ‘You do not have sufficient permissions to access this page.’ is closed to new replies.