[Resolved] critical error after string translation plugin activation
This thread is resolved. Here is a description of the problem and solution.
Problem: The client was experiencing a fatal error when trying to install WPML String Translation on their WordPress site. The error message indicated an undefined method call to
WP_Textdomain_Registry::reset()
.
Solution: We recommended that the client should upgrade the WPML String Translation plugin to version 3.2.3 or greater, as this version is required for WordPress version 6.1 or higher. Before upgrading, it is crucial to perform a full site backup. After the backup, the client should update the plugin and check if the issue persists. For more details on the upgrade process and the importance of compatibility with WordPress 6.1, the client can refer to our documentation:
Before this ticket gets assigned to my colleagues, I will try to help.
1. Can you please let me know which String Translation version you are trying to install (the latest one is 3.2.9)?
2. This issue looks to me like it could also caused by server-related reasons or a compatibility issue between WPML and (at least) one of the active plugins or the active theme.
Can you please let me know if this issue happens even when only the WPML plugins are active and you are using a default WordPress theme?
Please try the following steps so that we can test for a compatibility-related issue:
- create a full website backup
- disable all plugins except WPML and its add-ons
- check if the issue is happening again
- if it's not, reactivate your plugins one by one, checking every time if the issue shows up again so that you can understand which plugin is causing that issue
If the issue happens even with the non-WPML plugins disabled:
- leave all the non-WPML plugins deactivated
- switch to a default theme like TwentySeventeen
- try to recreate the issue now
If you have the chance, it would be best to do this in a staging (testing) environment.
Please let me know how that goes and if following any of these steps solved your issue or brought any change.
String Translation 3.2.3 version or greater is mandatory when we are using WordPress version 6.1 or greater. So please upgrade the WPML String Translation plugin to version 3.2.9 after a full site backup{mandatory} and make sure the bug exists or not.
Please refer to the following article for more details and let us know your feedback.