strangerstudios / pmpro-roles

Adds a custom WordPress Role for each membership level in Paid Memberships Pro
https://www.paidmembershipspro.com/add-ons/pmpro-roles/
GNU General Public License v2.0
17 stars 16 forks source link

Warning: Undefined array key #48

Open kimwhite opened 2 months ago

kimwhite commented 2 months ago

Describe the bug When you save a level, a Warning Message appears:

To Reproduce Steps to reproduce the behavior:

  1. install roles add on
  2. Click to save level
  3. Warning appears.
  4. But plugin works correctly.

Screenshots

Screenshot 2024-07-01 at 11 22 36 AM

Expected behavior A clear and concise description of what you expected to happen.

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

WordPress Environment

PMPro 3.0.5 WP 6.5.5 Roles Add On v1.4.2 PHP 8.2.19 and PHP 8.1.23
TheRayJohnson commented 1 month ago

I'm also seeing this error when saving a role. It's causing me to unable to save a Yearly payment plan term, it just defaults to $x.xx due Now.

Notice: Undefined index: edit in /public_html/wp-content/plugins/pmpro-roles/pmpro-roles.php on line 143