OctaHexa PPCP Deprecated Property Fix
Prevents high CPU usage and fatal errors in PayPal for WooCommerce plugin (PHP 8.4 compatibility).
by OctaHexa · github.com/wpspeedexpert/octahexa-ppcp-deprecated-fix · website
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/wpspeedexpert/octahexa-ppcp-deprecated-fix/archive/refs/heads/main.zipDeclares an update source (https://github.com/WPSpeedExpert/octahexa-ppcp-deprecated-fix), so updates arrive through the plugin's own updater.
Readme
OctaHexa PPCP Deprecated Property Fix
A lightweight WordPress plugin that resolves deprecated property creation warnings and fatal errors in the AngellEYE PayPal for WooCommerce PPCP gateway. Prevents server log flooding, high CPU usage, and fatal errors on PHP 8.4+ environments.
🔧 Features
- Fixes fatal errors related to missing
WC_PPCP_Pre_Orders_Traitin PayPal for WooCommerce - Suppresses deprecated dynamic property warnings in FunnelKit/PayPal integration classes
- Provides an admin dashboard with detailed status information
- Works completely behind the scenes with no configuration required
- Does not modify the core PayPal plugin files (safe and update-proof)
- Fully GPLv3 and WordPress coding standards–compliant
🚀 Installation
- Download the plugin as a ZIP file.
- In your WordPress dashboard, go to Plugins > Add New > Upload Plugin.
- Upload the ZIP file and click Install Now.
- IMPORTANT: Activate this plugin BEFORE activating PayPal for WooCommerce.
- Check the status page at Settings > OctaHexa PPCP Fix to verify everything is working.
📋 Requirements
- PHP 7.4 or higher (PHP 8.4+ supported)
- WordPress 5.6 or higher
- AngellEYE PayPal for WooCommerce plugin installed
- WooCommerce (optional but typical)
⚠️ Why This Plugin Exists
PHP 8.4 introduces stricter warnings about dynamic property creation, which can flood logs and cause high CPU usage. Additionally, a loading order issue in the PayPal plugin can cause fatal errors when a required trait isn't loaded early enough.
This plugin provides two critical fixes:
- Ensures the PayPal trait is loaded early enough to prevent fatal errors
- Suppresses deprecated property warnings without modifying the original plugin files
🧑💻 Developer Notes
- Fixes are applied efficiently using PHP's error handling mechanisms
- Plugin loads the required trait at the earliest possible hook (
muplugins_loaded) - Detailed status reporting in the admin dashboard
- Compatible with future PayPal plugin updates
📝 License
Licensed under the GNU General Public License v3.0.
See: https://www.gnu.org/licenses/gpl-3.0.html
👤 Author
OctaHexa
Website: https://octahexa.com
GitHub: WPSpeedExpert
💬 Support
This is a lightweight compatibility patch.
For issues with PayPal functionality itself, please contact AngellEYE support.