This thread is resolved. Here is a description of the problem and solution.
Problem:
The client is experiencing warnings from the WPML REST API endpoint despite it returning valid data. The issue is suspected to be due to a low WP Memory Limit.
Solution:
1. Increase the WordPress memory limit by editing the
wp-config.php
file. Add the following line above the 'That's all, stop editing! Happy publishing.' line:
define('WP_MEMORY_LIMIT', '256M');If the memory limit is already defined, update it to at least 256M, preferably 512M for optimal performance with WPML and other plugins.
2. If the issue persists, check the
php.ini
file for the
memory_limit
setting, or contact the hosting provider to ensure it's set to at least 256M.
3. After making these changes, clear all caches and re-test the REST API endpoint.
4. If the problem continues, deactivate any security plugins like WordFence and consult with the hosting provider about any firewall or security settings that might be affecting the REST API.
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. For further assistance, please open a new support ticket at WPML support forum.
This is the technical support forum for WPML - the multilingual WordPress plugin.
Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.
This topic contains 5 replies, has 0 voices.
Last updated by 2 weeks, 1 day ago.
Assisted by: Carlos Rojas.
