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 8.2 Deprecated: Automatic conversion of false to array is deprecated #1243

Open
elemdeso opened this issue Apr 10, 2024 · 0 comments
Open

Comments

@elemdeso
Copy link

EXPLANATION OF THE ISSUE

On the default return page after purchasing access to a specific page (via PaypPal button) this error message appears:

Deprecated: Automatic conversion of false to array is deprecated in /var/www/vhosts/..../httpdocs/walk/wp-content/plugins/s2member/src/includes/classes/paypal-return-in.inc.php on line 132

The transaction with the PayPal sandbox appears to work fine though.

I believe this deprecation originated with PHP 8.1 so I tested with PHP 8.0 and the error went away.

This is on a fresh install of Wordpress 6.5.2 under PHP 8.2.17 with no other plugins installed and the current version of Twenty Twenty Four theme.

STEPS TO REPRODUCE THE ISSUE

Add shortcode for a specific page PayPal buy now button. Transact with sandbox, return to default page. Error message appears above default content.

BEHAVIOR THAT I EXPECTED

BEHAVIOR THAT I OBSERVED

Screenshot 2024-04-10 at 14 01 16

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