Common IssuesMemory issues
Memory issues
If you get an error message like this:
PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 20480 bytes)
in /public/wp-content/plugins/gato-ai-translations-for-polylang/vendor/pop-schema/extended-schema-commons/src/HelperServices/ArrayOrJSONObjectTraversionHelperService.php on line 75
...it means that the PHP server has run out of memory.
That may happen when translating many posts at once, for multiple languages.
Make sure your PHP server has enough memory.
To increase the max memory limit in WordPress, you can add the following code to the wp-config.php
file:
if ( !defined('WP_MEMORY_LIMIT') ) {
define( 'WP_MEMORY_LIMIT', '1G' ); // 1GB
}
if ( !defined('WP_MAX_MEMORY_LIMIT') ) {
define( 'WP_MAX_MEMORY_LIMIT', '1G' ); // 1GB for admin dashboard
}