Problem: The client's plugin developer is encountering an issue with the
flush_rewrite_rules()
function when deactivating a plugin, which conflicts with WPML, leading to a 500 error. The developer has temporarily commented out this function in the plugin's deactivation hook to avoid the error. Solution: We recommend that the plugin developer joins the WPML Go Global Program to collaborate directly with our team for a compatible solution. Details about the program can be found here.
If this solution is outdated or does not apply to your case, please check related known issues at https://wpml.org/known-issues/, verify the version of the permanent fix, and confirm that you have installed the latest versions of themes and plugins. If issues persist, we highly recommend opening a new support ticket here.