Your cart is currently empty!
Issue with Affiliate Pro Woo Checkout
—
by
Fatal error: Uncaught Error: unserialize(): Argument #1 ($data) must be of type string, array given
in /www/cleanlots_579/public/wp-content/plugins/affiliates-pro/lib/ext/abstract/class-affiliates-referral.php on line 135
Call stack:
1. unserialize()
wp-content/plugins/affiliates-pro/lib/ext/abstract/class-affiliates-referral.php:135
2. Affiliates_Referral::get_referral_amount_method()
wp-content/plugins/affiliates-pro/lib/ext/abstract/class-affiliates-referral.php:130
3. Affiliates_Referral::is_referral_amount_method()
wp-content/plugins/affiliates-pro/lib/ext/abstract/class-affiliates-attributes.php:44
4. Affiliates_Attributes::validate_value()
wp-content/plugins/affiliates-pro/lib/ext/wordpress/class-affiliates-referral-wordpress.php:82
5. Affiliates_Referral_WordPress::add_referrals()
wp-content/plugins/affiliates-pro/lib/ext/wordpress/class-affiliates-referral-wordpress.php:53
6. Affiliates_Referral_WordPress::evaluate()
wp-content/plugins/affiliates-woocommerce/lib-2/affiliates-woocommerce.php:90
7. Affiliates_WooCommerce_Integration::process_order()
wp-content/plugins/affiliates-woocommerce/lib-2/affiliates-woocommerce.php:88
8. Affiliates_WooCommerce_Integration::woocommerce_checkout_order_processed()
wp-includes/class-wp-hook.php:310
9. WP_Hook::apply_filters()
wp-includes/class-wp-hook.php:332
10. WP_Hook::do_action()
wp-includes/plugin.php:517
11. do_action()
wp-content/plugins/woocommerce/includes/class-wc-checkout.php:1194
12. WC_Checkout::process_checkout()
wp-content/plugins/woocommerce/includes/class-wc-ajax.php:481
13. WC_AJAX::checkout()
wp-includes/class-wp-hook.php:308
14. WP_Hook::apply_filters()
wp-includes/class-wp-hook.php:332
15. WP_Hook::do_action()
wp-includes/plugin.php:517
16. do_action()
wp-content/plugins/woocommerce/includes/class-wc-ajax.php:94
17. WC_AJAX::do_wc_ajax()
wp-includes/class-wp-hook.php:308
18. WP_Hook::apply_filters()
wp-includes/class-wp-hook.php:332
19. WP_Hook::do_action()
wp-includes/plugin.php:517
20. do_action()
wp-includes/template-loader.php:13
21. require_once()
wp-blog-header.php:19
22. require()
index.php:17
Query Monitor
There has been a critical error on this website.
Learn more about troubleshooting WordPress.
On Mon, 5 Dec 2022 at 17:52, Kathy Filipowitz wrote:
Fatal error: Uncaught Error: unserialize(): Argument #1 ($data) must be of type string, array givenin /www/cleanlots_579/public/wp-content/plugins/affiliates-pro/lib/ext/abstract/class-affiliates-referral.php on line 135Call stack:unserialize()
wp-content/plugins/affiliates-pro/lib/ext/abstract/class-affiliates-referral.php:135Affiliates_Referral::get_referral_amount_method()
wp-content/plugins/affiliates-pro/lib/ext/abstract/class-affiliates-referral.php:130Affiliates_Referral::is_referral_amount_method()
wp-content/plugins/affiliates-pro/lib/ext/abstract/class-affiliates-attributes.php:44Affiliates_Attributes::validate_value()
wp-content/plugins/affiliates-pro/lib/ext/wordpress/class-affiliates-referral-wordpress.php:82Affiliates_Referral_WordPress::add_referrals()
wp-content/plugins/affiliates-pro/lib/ext/wordpress/class-affiliates-referral-wordpress.php:53Affiliates_Referral_WordPress::evaluate()
wp-content/plugins/affiliates-woocommerce/lib-2/affiliates-woocommerce.php:90Affiliates_WooCommerce_Integration::process_order()
wp-content/plugins/affiliates-woocommerce/lib-2/affiliates-woocommerce.php:88Affiliates_WooCommerce_Integration::woocommerce_checkout_order_processed()
wp-includes/class-wp-hook.php:310WP_Hook::apply_filters()
wp-includes/class-wp-hook.php:332WP_Hook::do_action()
wp-includes/plugin.php:517do_action()
wp-content/plugins/woocommerce/includes/class-wc-checkout.php:1194WC_Checkout::process_checkout()
wp-content/plugins/woocommerce/includes/class-wc-ajax.php:481WC_AJAX::checkout()
wp-includes/class-wp-hook.php:308WP_Hook::apply_filters()
wp-includes/class-wp-hook.php:332WP_Hook::do_action()
wp-includes/plugin.php:517do_action()
wp-content/plugins/woocommerce/includes/class-wc-ajax.php:94WC_AJAX::do_wc_ajax()
wp-includes/class-wp-hook.php:308WP_Hook::apply_filters()
wp-includes/class-wp-hook.php:332WP_Hook::do_action()
wp-includes/plugin.php:517do_action()
wp-includes/template-loader.php:13require_once()
wp-blog-header.php:19require()
index.php:17Query MonitorThere has been a critical error on this website.Learn more about troubleshooting WordPress.
Comments
3 responses to “Issue with Affiliate Pro Woo Checkout”
Hi Kathy,
Thanks for providing access to your site and server. The issue apparently was related to a deprecated Commission method you’ve been using in combination with PHP 8.1. I’m assuming that you’ve been using the deprecated method for quite some time without switching to the new commission system introduced in version 4.0.0 of Affiliates based on Rates.
I would recommend you to proceed and either migrate to Rates using the tools available under Affiliates > Settings > Commissions(tab), or create your rates from scratch under Affiliates > Rates.
If further assistance is needed, you are more than welcome to follow-up on this thread or start a new one.
Kind regards,
George
Hi there,
Thanks for providing access to your site, much appreciated.
The error itself shouldn’t be affected by the CDN, because the variable passed in the unserialize() function comes from a predefined pool of values and is always a string. Furthermore, even if you or someone else have modified the core files of the plugin, this should work now because I’ve reinstalled the plugin.
I would like to run a couple of more tests, but this time I would like you to allow access to debug.log, which at the moment is forbidden.
Even if Wordfence is deactivated, the debug.log URL gives a 403 when trying to access. Please make sure to make it publicly accessible and let me know to upload a debugging version of Affiliates Pro plugin.
Other than this the rest of warnings are most probably related to the PHP version used, because not all the components including WP Core are still not fully compatible with version 8.1.
Kind regards,
George
Hi John,
Thanks for reporting this error. From the stack trace you shared with us, it appears to be related to deprecated methods of the plugin. Have you noticed any deprecation notices in your debug.log? Perhaps if you share a full copy of it, we can have a thorough look at its contents and identify the source of it. Especially for the file you can even send the copy by email to george at itthinx dot com.
It would also be useful if you can mention as well the versions of
1. Affiliates Pro
2. Affiliates WooCommerce
3. PHP running on your server
and if there are additional custom addons running on your installation related to custom referral methods.
Kind regards,
George