WP_MAX_MEMORY_LIMIT in wp-config.php seems to be ignored

admin

Administrator
Staff member
I am using <strong>WordPress v.3.8.1</strong> with WMPL (WordPress Multilingual Plugin) v.3.1.4 and WPML Media Pugin v.2.1.3.

In php.ini file I have...

Code:
memory_limit = 512M

I already have a info.php file with
Code:
&lt;?php phpinfo(); ?&gt;
where I can see that
Code:
memory_limit = 512M
.

In wp-config.php file I have before wp-settings.php inclusion...

Code:
define( 'WP_MAX_MEMORY_LIMIT', '384M' );

When I am trying to use "Media Translation" I get this error after 50/400 media have been processed...

Code:
Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 523800 bytes) in /wp-includes/plugin.php on line 1939

I am sorry for the duplicate <a href="https://wordpress.stackexchange.com/q/137698/45047">https://wordpress.stackexchange.com/q/137698/45047</a> but I really need some guidelines.

Thank you!