[Plugin: Restrict Categories] Broken after update
-
After updating the plugin it has stopped showing categories. It says there are no categories, even though there are.
-
Can you provide some more information on your setup?
- What version of WordPress are you running?
- What version of PHP/Apache is installed?
- Have you disabled all other plugins to isolate it to Restrict Categories?
This problem has been fixed, but I’ve run into another BIG problem.
When this plugin is activated, posts that have been submitted by a user with a user level lower than administrator level are NOT able to see/edit their posts afterwards.
I hope a solution can be found ASAP, because in the meantime my contributors can’t edit their posts after submission.
Thank you so much!
I have put the plugin through various tests trying to reproduce this problem you’re having and I’m not able to do so.
Are all of your users given the Contributor role having this problem?
If you’ve installed any user/role management plugins and changed the permissions of a role, this could be the culprit.
Thanks for your quick reply!
I do have User Role Editor installed, but what I don’t get is that I’ve tested the site locally with the User Role Editor plugin AND an older version of Restricted Categories (before it was updated) and it worked.
So I think it has something to do with the new version, as it worked fine with the old one.
As a test, I installed the User Role Editor and did not change any capabilities. Restrict Categories works as it should.
Since you have a local dev environment, create a new WP install and install Restrict Categories and nothing else. If the plugin works as expected, then you know it’s something about the capabilities.
Just curious, what capabilities are you giving to the Contributor role?
I just found the problem! It is indeed the Restricted Categories plugin:
It’s because my categories have 3 levels. Users can only select the subcategories, but because they can’t see the top level category, they can’t see the subcategories (thus the posts in those categories) either!
Is there a way to fix this? That would be awesome.
Thank you!
Users should be able to create a new post to whatever categories you have given them access to, no matter how deep they are nested.
Reset your user role capabilities back to the default and try Restrict Categories again.
I tested the same thing with the Contributor user role on my local server and it doesn’t work either.
Example:
– Category 1
— Category 2
—– Category 3If I have Category 3 selected (in Restricted Categories) but Category 1 and 2 deselected, I can select Category 3 as a category on the Add Post page (as a Contributor), but when I submit it and click on Posts it doesn’t show up.
If I have Category 1, 2 and 3 as three separate categories and I have Category 3 selected, it does show up.
Perhaps you aren’t checking the category when Publishing? That will default to Uncategorized (or whatever you have set as the default category), which the Contributor may not have access to.
I checked the category. So did my contributors. ??
This is what the Categories box on the Add Post page looks like for Contributors:
https://img145.imageshack.us/img145/7356/restrictedcats2.jpg (I obviously checked that before I submitted it)When this is selected on the Restricted Categories page:
https://img211.imageshack.us/img211/5895/restrictedcats3.jpgThis is what shows up on the Posts page:
https://img714.imageshack.us/img714/4527/restrictedcats1.jpgWhen I do the same thing with a top level category it works fine.
Sorry, I’m not able to reproduce this on two different installs of WordPress (versions 3.0.2 and 3.1 RC2) using various user roles (contributor, author, editor, and even custom), and categories up to six levels deep.
I even setup the same categories you show above, but everything works.
If you can provide me with some information, I will try to investigate further.
- What version of WordPress are you running?
- What version of PHP/Apache is installed?
- What capabilities are you giving to the Contributor role?
Found out the problem was that I had installed Capability Manager before. It’s not compatible with version 3.0.4 and when I uninstalled it I didn’t know it had messed up the database.
Both Restricted Categories and User Role Editor work fine.
Thanks for the help. I really appreciate it. Keep up the good work with this great plugin!
Ahh…glad we were able to resolve this!
Hi mmuro,
Thanks for the awesome pluggin =)
However, i bumped into a significant problem after the update.
When the updated Restrict Categories plugin is activated, I am not able to see any PAGES and it’s options panel (not posts) that i had created before. The Pages control panel becomes empty and I am not able to edit or post any new pages.
- The topic ‘[Plugin: Restrict Categories] Broken after update’ is closed to new replies.