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 link oculto 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?