Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
The client was experiencing a warning about the WordPress memory limit even though they had set it to 128MB.
Solution:
We reviewed the wp-config.php file and found that the memory limit was incorrectly set without the 'M' unit. We corrected the code from:

define('WP_MEMORY_LIMIT', '128');

to:

define('WP_MEMORY_LIMIT', '128M');

After this change, the warning no longer appeared. We asked the client to test and confirm if the issue was resolved.

If this solution doesn't look relevant to your issue, please open a new support ticket with us.

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 1 reply, has 2 voices.

Last updated by Mateus Getulio 1 year, 2 months ago.

Assisted by: Mateus Getulio.

Author Posts
December 4, 2023 at 12:52 pm #14986869

robertH-62

Split: WP memory shows warning even though 128MB is apploed

December 4, 2023 at 12:57 pm #14986881

Mateus Getulio
Supporter

Languages: English (English ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

Hello there,

This is a split from the original ticket.

With regard to the memory warning issue, I checked it and inside the wp-config file the memory limit was set without the 'M'. It is required to pass the unit when setting the memory: hidden link

I changed:

define('WP_MEMORY_LIMIT', '128');

with:

define('WP_MEMORY_LIMIT', '128M');

And the warning is no longer showing.

Can you please test it?

Best,
Mateus:

December 7, 2023 at 3:03 pm #15018135

robertH-62

I fix problem