Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
DanWin opened this issue Jul 10, 2024 · 1 comment
Assignees
Labels
Milestone

Comments

@DanWin
Copy link
Contributor

DanWin commented Jul 10, 2024

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 aamplugin self-assigned this Jul 10, 2024
@aamplugin aamplugin added the bug label Jul 10, 2024
@aamplugin
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Ready For Release
Development

No branches or pull requests

2 participants