Troubleshooting a “You do not have sufficient permissions to access this page” error

I have a multisite installation running WP 3.5. My main site and a few other blogs on the network work fine. However, if I register a new user and site, that user gets the “You do not have sufficient permissions to access this page.” error any time they try to visit the admin panel of … Read more

HTTPS leads to Sorry, you are not allowed to access this page

I have a fresh WordPress installation that works fine. I decide to make it work under HTTPS so I go in the General config and change the “WordPress Address” and the “Site Adress” from http://my.website.com/blog/ to https://my.website.com/blog/. First, this create a redirection loop so I have to add the following lines to my wp_config.php: /** … Read more

wp_update_user not updating

In desperation I am asking for help in this forum too – if someone (ANYONE!) could take a look a this post and see if they could help I’d be eternally grateful http://wordpress.org/support/topic/wp_update_user-not-updating?replies=11 Basically – I am updating a user’s role and capabilities via script but the changes only come in to effect (ie the … Read more

Filtering the Admin Comments List to Show Only Comments from the Current User?

In the Comments page (/wp-admin/edit-comments.php), every logged in user can see all the site comments. I’d like the users to see only his/her own comments and the comments that are left to his/her posts. How can I filter this? 1 1 Either of these 3 will help you: //Before getting the comments, on the WP_Comment_Query … Read more

How to restrict attachment download to a specific user?

I have a very specific use case where the site built for a lawyer and each of his clients can login to their own ‘specific page/portal’ (custom post type) without the ability to access wp-admin etc. (I created all the login/register/profile-editing pages in the front end). In this page/portal the lawyer will leave messages and … Read more