strangerstudios / pmpro-pay-by-check

Add a "Pay by Check" option to PMPro levels, and keep members in "pending" status until an admin changes the order status.
https://www.paidmembershipspro.com/add-ons/pmpro-pay-by-check-add-on/
11 stars 27 forks source link

Non-numeric Value Warning. #41

Closed andrewlimaza closed 3 months ago

andrewlimaza commented 5 years ago

A user has reported they are getting the following error:

A non-numeric value encountered in /home/dir/public_html/wp-content/plugins/pmpro-pay-by-check/pmpro-pay-by-check.php on line 449

PHP: 7.3.6

Moderators Link https://www.paidmembershipspro.com/forums/topic/php-warning-about-pay-by-check/

jcimb commented 4 years ago

in PHP 7.1, an E_WARNING is emitted when the string does not contain a numeric value.

andrewlimaza commented 4 years ago

Hi @jcimb do you receive an error on the exact same line? Please feel free to share your error message here (and scrub out any private information like file path names/directory names etc)

jcimb commented 4 years ago

Yes, all are on the same line: [07-Oct-2020 17:01:40 UTC] PHP Warning: A non-numeric value encountered in /home/xxxxxxxx/public_html/wp-content/plugins/pmpro-pay-by-check/pmpro-pay-by-check.php on line 473

jcimb commented 3 years ago

Hi, just checking on the status. Still getting the warning, multiple ones daily.

jcimb commented 3 years ago

} else { $cutoff = strtotime("- " . $membership_level->expiration_number . " " . $membership_level->expiration_period, current_time("timestamp")) - ($options['cancel_days']*3600*24); }

kimcoleman commented 3 months ago

We are not hearing current reports of this issue. Closing until we can see if this is resurfacing with the latest releases.