Problem
You are unable to access the plugin settings page and receive an error message stating, "You do not have permission to view this page."
Cause
This issue may occur because the plugin is configured to hide settings pages based on WordPress roles and users. This restriction can prevent you from accessing essential features, such as authorizing the plugin.
Solution
To resolve this issue, please follow these steps:
-
Check Permissions: Ensure your user account has the necessary permissions set in the 'Permissions' tab on the main plugin settings page. If you cannot access this page with your current account, use an Admin account that has the required permissions. By default, all Admin accounts have access to the settings page upon installation.
-
Modify Plugin Code (if necessary): If you do not have an Admin account with the right permissions, you will need to manually edit the plugin code to allow all Administrator users to access the page. To do this:
- Open the file:
wp-content/plugins/{use-your-drive/out-of-the-box/share-one-drive/lets-box}/includes/Helpers.php
- Search for the line:
if (current_user_can('setup_network')) {
- Uncomment this block and save the file.
- Open the file:
After making this change, the settings menu will be accessible to all Administrators. Please note that this modification will be lost when you update the plugin, so remember to set your account permissions after making the change.
Please feel free to submit a support ticket if this does not resolve the issue.