Problem: The client is experiencing intermittent high CPU usage spikes on their VPS hosting a multilingual website using WPML. Despite optimizing the site and deactivating most plugins, the issue persists. The client suspects WPML might be causing these CPU consumption problems. Solution: We recommended the following steps to address the high CPU usage potentially caused by WPML: 1. **Increase the WordPress Memory Limit:** - Access your site files via FTP or your hosting file manager. - Locate the
wp-config.php
file at the root of your WordPress installation. - Edit the file and add the following line of code just before the line that says
/* That's all, stop editing! Happy blogging. */
:
define('WP_MEMORY_LIMIT', '256M');
- Save the changes. 2. **Run WPML's troubleshooting tools:** - Go to **WPML → Support** in your WordPress dashboard. - Scroll down to the **Troubleshooting** section. - Perform the following actions one by one, waiting for each to complete before starting the next: 1. **Clear cache** 2. **Sync post taxonomies** 3. **Remove ghost entries** 4. **Fix element collation** 5. **Fix WPML tables collation** 6. **Set language information** 7. **Fix terms count** 8. **Cleanup and optimize string tables**
After completing these steps, monitor your VPS's CPU usage to see if the spikes persist. If the problem continues, we 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 solution provided here becomes irrelevant or if the issue persists, please open a new support ticket at WPML support forum.
Problem: The client reported excessive loading times in the website backend after installing WPML, despite using a default theme. Solution: We replicated the client's site in a local environment and found no performance issues with WPML. The problem likely stems from the server environment. Here are the recommended steps: 1. Resolve server errors: Address console errors related to server configuration such as permissions, rewrite rules, and resource limits with your hosting provider. 2. Fix database permissions: Ensure the database user has necessary permissions like CREATE, ALTER, INDEX, and REFERENCES, as indicated by errors in the admin panel. 3. Check plugin file permissions: Confirm that all plugin directories are writable. File permissions should typically be 755 for folders and 644 for files. 4. Increase server resources: Enhance the PHP memory limit, update PHP to a higher stable version, and ensure MySQL/MariaDB versions meet the requirements. 5. Consider alternative hosting: If issues persist, testing the site with different hosting might help, as the local tests showed no issues.
If these steps do not resolve your issue, or if the solution seems outdated, please visit our support forum. We also 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.