Skip Navigation

Tagged: 

This topic contains 0 replies, has 1 voice.

Last updated by hasanK-7 4 months, 3 weeks ago.

Assisted by: Bigul.

Author Posts
June 26, 2024 at 11:21 am

hasanK-7

Background of the issue:
I followed instructions in this link: https://wpml.org/errata/affiliatewp-areas-content-fails-to-display-on-translated-pages/ and everything works fine. But when I updated AffiliateWP Plugin to the latest version I started getting this error: in hidden link After login, Fatal error: Uncaught TypeError: Return value of affwp_get_affiliate_area_page_id() must be of the type int, null returned in /home/u231396823/domains/pfxtrader.com/public_html/wp-content/plugins/affiliate-wp/includes/affiliate-functions.php:1855 Stack trace: #0 /home/u231396823/domains/pfxtrader.com/public_html/wp-content/plugins/affiliate-wp/includes/admin/settings/class-settings.php(1729): affwp_get_affiliate_area_page_id() #1 /home/u231396823/domains/pfxtrader.com/public_html/wp-content/plugins/affiliate-wp/includes/admin/settings/class-settings.php(1491): Affiliate_WP_Settings->get_settings(Array) #2 /home/u231396823/domains/pfxtrader.com/public_html/wp-content/plugins/affiliate-wp/includes/admin/settings/class-settings.php(1002): Affiliate_WP_Settings->get_registered_settings() #3 /home/u231396823/domains/pfxtrader.com/public_html/wp-includes/class-wp-hook.php(324): Affiliate_WP_Settings->register_settings('') #4 /home/u231396823/domains/pfxtrader.com/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_fi in /home/u231396823/domains/pfxtrader.com/public_html/wp-content/plugins/affiliate-wp/includes/affiliate-functions.php on line 1855

Symptoms:
After updating AffiliateWP Plugin to the latest version, I started getting a fatal error in the admin area after login.

Questions:
How can I resolve the fatal error after updating AffiliateWP Plugin?
Is there a compatibility issue between WPML and the latest version of AffiliateWP Plugin?

June 26, 2024 at 11:30 am