aamplugin / advanced-access-manager

WordPress Advanced Access Manager Plugin
Other
30 stars 14 forks source link

PHP Fatal error: Uncaught Error: Call to undefined function switch_to_user_locale #398

Closed DanWin closed 2 months ago

DanWin commented 2 months ago

The function switch_to_user_locale was introduced in WordPress 6.2.0 and doesn't exist in older WP versions. The required WordPress Version for this plugin is stated as 5.2.0 or higher. So either we will need to increase the minimum version requirements, or an alternative implementation compatible with older versions of WordPress should be implemented.

[10-Jul-2024 09:26:49 UTC] PHP Fatal error: Uncaught Error: Call to undefined function switch_to_user_locale() in /var/www/html/wp-content/plugins/advanced-access-manager/application/Restful/MuService.php:34

aamplugin commented 2 months ago

@DanWin thank you for the report. We'll fix it asap.