Make WordPress Core

Opened 4 weeks ago

Closed 4 weeks ago

Last modified 4 weeks ago

#65081 closed defect (bug) (duplicate)

AI Plugin “Control features” button redirects to unauthorized access page

Reported by: codex007's profile codex007 Owned by:
Milestone: Priority: normal
Severity: normal Version: trunk
Component: Administration Keywords: needs-testing has-screenshots
Focuses: ui, javascript Cc:

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

  1. Navigate to Settings → Connectors
  2. Click on “Control features in the AI plugin”
  3. Install and activate the AI plugin (if not already installed)
  4. After installation, the button becomes visible
  5. Click the button → it redirects to:

/wp-admin/options-general.php?page=ai

  1. 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)

Screenshot at Apr 16 23-56-27.png (107.0 KB) - added by codex007 4 weeks ago.
Screenshot at Apr 16 23-56-52.png (469.8 KB) - added by codex007 4 weeks ago.
Screenshot at Apr 16 23-56-12.png (620.3 KB) - added by codex007 4 weeks ago.

Download all attachments as: .zip

Change History (5)

#1 @JeffPaul
4 weeks ago

  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed

Duplicate of #65073.

#2 @codex007
4 weeks ago

It appears to be an actual bug where the button leads to an unauthorized access page.
Thanks

Note: See TracTickets for help on using tickets.