Problem: The client is experiencing issues with creating, saving, and publishing posts when WPML plugins are activated, leading to long processing times for queries. This problem is observed in the production environment, and the client has provided relevant logs and stack traces.
Solution: We recommend the following steps to identify and resolve the issue: 1. Provide screenshots showing the difference in loading times with WPML plugins activated and deactivated. 2. Provide debug information from your site by following the steps here: https://wpml.org/faq/provide-debug-information-faster-support/ 3. Create a full backup of your site or set up a staging site as a copy of the live site. 4. Update any outdated plugins or themes and flush any existing cache memory. 5. Deactivate all plugins, including WPML, and activate a default WordPress theme like Twenty Twenty. 6. Reactivate the WPML plugins and check if the performance issue persists. If it does, reactivate the theme and other plugins one by one to identify the culprit. 7. Enable debug mode by following the steps here: https://wordpress.org/support/article/debugging-in-wordpress/ and check for error messages in the debug.log file within the wp-content folder.
If these steps do not resolve the issue or if the solution seems outdated or irrelevant to your case, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If the problem persists, please open a new support ticket at WPML support forum.