Skip Navigation

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

Last updated by Rohan Sadanandan 1 year ago.

Assigned support staff: Rohan Sadanandan.

Author Posts
September 17, 2019 at 8:32 am #4586421


I received an automatic email from wordpress 5.2 where it gave me this error.
An E_ERROR error was caused on line 18 of the file /home/ -remove-pages-not-in-current-language.php. Error message: Allowed memory size of 268435456 bytes exhausted (tried to allocate 19193856 bytes)

the site seems to work, but occasionally with a 503 error

September 17, 2019 at 10:05 am #4587411

Rohan Sadanandan


Thank you for contacting WPML Support.

Please update the WP Memory Limit to at least 128MB which is the minimum requirement for WPML:

Add this code to your wp-config.php to increase WP memory:

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

Paste it just before:

/* That's all, stop editing! Happy publishing. */