#65081 closed defect (bug) (duplicate)
AI Plugin “Control features” button redirects to unauthorized access page
| Reported by: | codex007 | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Administration | Version: | 7.0 |
| Severity: | normal | Keywords: | needs-testing has-screenshots |
| Cc: | Focuses: | ui, javascript |
Description
While using the AI plugin in the WordPress admin panel, clicking the “Control features in the AI plugin” button on the connector screen redirects to a page that shows:
Sorry, you are not allowed to access this page.
However, accessing the correct admin page directly works without any issue.
Steps to Reproduce
- Navigate to Settings → Connectors
- Click on “Control features in the AI plugin”
- Install and activate the AI plugin (if not already installed)
- After installation, the button becomes visible
- Click the button → it redirects to:
/wp-admin/options-general.php?page=ai
- The following error appears:
Sorry, you are not allowed to access this page.
Expected Results
The button should redirect to:
/wp-admin/options-general.php?page=ai-wp-admin
where the user has proper access.
Actual Results
The button redirects to:
/wp-admin/options-general.php?page=ai
which results in an unauthorized access error.
Environment
- WordPress Version: 7.0
- Environment: Localhost
- Plugin: AI Plugin (default WP AI feature)
- User Role: Administrator
Additional Notes
- Direct access to ai-wp-admin works correctly
- Issue likely caused by incorrect menu slug or capability mismatch in the button URL
- Possibly needs update in plugin routing or admin menu registration
Attachments (3)
Change History (5)
Note:
See TracTickets
for help on using tickets.
Duplicate of #65073.