Skip to content Skip to sidebar

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.

Tagged: 

This topic contains 5 replies, has 0 voices.

Last updated by Carlos Rojas 2 weeks, 1 day ago.

Assisted by: Carlos Rojas.

Author Posts
December 26, 2025 at 1:15 pm #17688614

josephN-9

hidden link is not responding correctly.
why it warns me ?
I see it returns all valid but still it warns me

December 26, 2025 at 2:01 pm #17688649

Carlos Rojas
WPML Supporter since 03/2017

Languages: English (English ) Spanish (Español )

Timezone: Europe/Madrid (GMT+01:00)

Hello,
My name is Carlos, and I will continue working on this ticket

1.- I kindly ask you to deactivate the WordFence plugin and check if the error has disappeared. Also, contact your hosting providers and ask them if there is any firewall or security directive that might be causing the Rest API on your site to throw a false positive.

2.- Please increase the WP memory Limit. Minimum requirements are 128Mb: https://wpml.org/home/minimum-requirements/
You can add this to wp-config.php to increase WP memory:

/* Memory Limit */
define('WP_MEMORY_LIMIT', '512M');

- Add it above the line /* That's all, stop editing! Happy blogging. */

You can double-check the WordPress memory limit in WPML -> Support

Looking forward to your message.

December 28, 2025 at 12:55 pm #17690468

josephN-9

define( 'WP_MEMORY_LIMIT', '512M' );
/* That's all, stop editing! Happy publishing. */

I put 512 M and I had disabled all of plugin except wpml , it seems it still notify same message

December 29, 2025 at 9:47 am #17694439

Carlos Rojas
WPML Supporter since 03/2017

Languages: English (English ) Spanish (Español )

Timezone: Europe/Madrid (GMT+01:00)

Thank you very much for your message.

Have you contacted your hosting providers?

December 29, 2025 at 3:21 pm #17695271

josephN-9

No I didn't contact yet to hosting provider.

If I do , What should I ask to hosting support ?

December 30, 2025 at 10:44 am #17696551

Carlos Rojas
WPML Supporter since 03/2017

Languages: English (English ) Spanish (Español )

Timezone: Europe/Madrid (GMT+01:00)

Hi,

You can ask them if there is any firewall or security directive that might be causing the Rest API on your site to throw a false positive.