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

PHP Warning: Undefined variable $top_menu_page in /paid-memberships-pro/includes/adminpages.php on line 708 #3263

Closed
3 tasks done
mircobabini opened this issue Jan 17, 2025 · 0 comments · Fixed by #3264
Closed
3 tasks done

Comments

@mircobabini
Copy link
Member

Describe the bug
Found on a site, in php_errorlog. Probably an administrator w/o pmpro caps.

Expected behavior
As found in other pieces of our codebase, we should check if the variable is set before using it. If not, just bail.

Isolating the problem (mark completed items with an [x]):

  • I have deactivated other plugins and confirmed this bug occurs when only Paid Memberships Pro plugin is active.
  • This bug happens with a default WordPress theme active, or Memberlite.
  • I can reproduce this bug consistently using the steps above.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant