The error message suggests that your user account doesn’t have the necessary capability “edit_documents” to manage documents with the plugin. Here’s how you can check and resolve the issue:
Check User Roles
First, go to your WordPress dashboard and click on “Users” and then “All Users.” Find your user account in the list and look for the “Role” column. Ensure that your user has a role that has the “edit_documents” capability. By default, this capability is usually granted to the “Administrator” role.
Review Custom Roles
If you have a custom user role, you’ll need to make sure it includes the “edit_documents” capability. If it doesn’t, you can use a capability management plugin or custom code to add this capability to your custom role.
Plugin/Theme Conflict
Sometimes, conflicts with other plugins or themes can cause capability issues. To check if this is the case, temporarily deactivate other plugins and switch to a default theme (e.g., Twenty Twenty-One). Then, see if the problem persists. If it’s resolved, you can re-activate your plugins/themes one by one to identify the one causing the conflict.
Reset Roles and Capabilities
If you have made extensive changes to user roles and capabilities and are unsure about the source of the problem, you can reset the roles and capabilities to their default settings using the “Members” plugin or a similar role management plugin such as “User Role Editor”.
Remember, it’s always a good idea to create a backup of your site before making any changes, just in case anything unexpected happens.
Good luck!