Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Status report page link in ES notice does not work #502

Open
16 tasks
mikelittle opened this issue Oct 3, 2023 · 2 comments
Open
16 tasks

Status report page link in ES notice does not work #502

mikelittle opened this issue Oct 3, 2023 · 2 comments
Labels
bug Existing functionality isn't behaving as expected should have Should be done, medium priority for now

Comments

@mikelittle
Copy link
Contributor

During testing, I noticed that there was a ElesticPress notice displayed in the network admin pages. The notice inlcudes a link to the "Status EReport page". However, clicking the link leads to an error page with a "Sorry, you are not allowed to access this page." message.

The link is https://altis17beta.altis.dev/wp-admin/network/admin.php?page=elasticpress-status-report#failed-queries

Steps to reproduce:
1.

Private Zenhub Image

Private Zenhub Image

Acceptance criteria:

  • ...

For Altis Team Use

Ready for Work Checklist

Is this ticket ready to be worked on? See
the Play Book Definition of Ready

  • Is the title clear?
  • Is the description clear and detailed enough?
  • Are acceptance criteria listed?
  • Have any (potential) dependencies been identified?
  • Is an estimate or time box assigned?
  • Is a priority label assigned?
  • Is this ticket added to an epic? (Optional)

Completion Checklist

Is this ticket done? See
the Play Book Definition of Ready

  • Has the acceptance criteria been met?
  • Is the documentation updated (including README)?
  • Does any code/documentation meet project standards?
  • Are automatic tests in place to verify the fix or new functionality?
  • Or are manual tests documented (at least on this ticket)?
  • Are any Playbook/Handbook pages updated?
  • Has a new module release (patch/minor) been created/scheduled?
  • Have the appropriate backport labels been added to the PR?
@mikelittle mikelittle added bug Existing functionality isn't behaving as expected should have Should be done, medium priority for now labels Oct 3, 2023
@svandragt
Copy link

svandragt commented Jun 27, 2024

Had a look as I sometimes see a message in the admin saying there were errors in the last 24 hours, but the link in the message take me to the status page. The status page gives an access denied issue. This is because the menu item isn't registered as this repo removes the network admin menu. The subpage belongs to this:

remove_action( 'network_admin_menu', 'ElasticPress\\Dashboard\\action_admin_menu' );

commenting that out makes the status page appear.

It's probably better to just remove the Features, Settings and Sync submenu options, and keep Status Report and Index Health. I'm not sure about the implications of enabling Query Log, I suspect you'd want to hide that.

Hope that helps. It would be good to be able to debug errors, even if it's just for network admins.

@SvetZitrka
Copy link

I have the same problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Existing functionality isn't behaving as expected should have Should be done, medium priority for now
Projects
None yet
Development

No branches or pull requests

3 participants