Make WordPress Core

Opened 7 months ago

Closed 7 months ago

Last modified 7 months ago

#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

  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 7 months ago.
Screenshot at Apr 16 23-56-52.png​ (469.8 KB ) - added by codex007 7 months ago.
Screenshot at Apr 16 23-56-12.png​ (620.3 KB ) - added by codex007 7 months ago.

Download all attachments as: .zip

Change History (5)

#1 @JeffPaul
7 months ago

  • Milestone Awaiting Review
  • Resolution → duplicate
  • Status new → closed

Duplicate of #65073.

#2 @codex007
7 months 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.