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 Warnings generated when editing a page containing the Membership Checkout Form block #3270

Open
3 tasks done
dwanjuki opened this issue Jan 23, 2025 · 0 comments
Open
3 tasks done

Comments

@dwanjuki
Copy link
Contributor

Describe the bug
A bunch of PHP Warnings are generated when editing a page containing the Membership Checkout Form block.
I haven't observed any impact on functionality.

To Reproduce
Steps to reproduce the behavior:

  1. Add the Membership Checkout Form block to a page, save page.
  2. Edit the page in WP with debugging enabled.
  3. Check logs
  4. See warnings
PHP Warning: Attempt to read property "name" on null in /var/www/webroot/ROOT/wp-content/plugins/paid-memberships-pro/pages/checkout.php on line 76
PHP Warning: Attempt to read property "id" on null in /var/www/webroot/ROOT/wp-content/plugins/paid-memberships-pro/pages/checkout.php on line 80
PHP Warning: Attempt to read property "description" on null in /var/www/webroot/ROOT/wp-content/plugins/paid-memberships-pro/pages/checkout.php on line 114
PHP Warning: Attempt to read property "initial_payment" on null in /var/www/webroot/ROOT/wp-content/plugins/paid-memberships-pro/includes/functions.php on line 341
PHP Warning: Attempt to read property "billing_amount" on null in /var/www/webroot/ROOT/wp-content/plugins/paid-memberships-pro/includes/functions.php on line 351
PHP Warning: Attempt to read property "trial_limit" on null in /var/www/webroot/ROOT/wp-content/plugins/paid-memberships-pro/includes/functions.php on line 391
PHP Warning: Attempt to read property "expiration_number" on null in /var/www/webroot/ROOT/wp-content/plugins/paid-memberships-pro/includes/functions.php on line 531
PHP Warning: Attempt to read property "id" on null in /var/www/webroot/ROOT/wp-content/plugins/paid-memberships-pro/pages/checkout.php on line 317

Expected behavior
No warnings

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.

WordPress Environment

``` WP 6.7.1 PMPro 3.3.3 PHP 8.2.26 ```
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

No branches or pull requests

1 participant