PHP 8 Compatibility Issues Causing Magic Method Warning and 500 Server Error #271
Labels
priority: high
The issue/PR is high priority—it affects lots of customers substantially, but not critically.
type: bug
The issue is a confirmed bug.
The Payfast extension for WooCommerce appears to have compatibility issues with PHP 8, leading to the following problems:
1. PHP Warning: The
WC_Eftsecure::__wakeup()
magic method does not meet PHP 8's requirement for public visibility.2. 500 Server Error: The error occurs when WooCommerce redirects users to Payfast for payment processing. This breaks the checkout process and makes Payfast inaccessible.
$currency_code
on my test site running PHP 8.1:To Reproduce
__wakeup()
and undefined variables.Expected Behavior
The Payfast extension should function seamlessly on PHP 8.1 without generating PHP warnings or causing 500 server errors during payment processing.
Actual Behavior
Environment
Additional Details
Initially reported here:
The text was updated successfully, but these errors were encountered: