I have facing out of memory allocated fatal error in wordpress. i have printed the phpinfo(); and check for the memory_limit . so both values are 512M. I have also added following code in my wp-config.php file

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

but the problem still persists ?

Now i have to ask either this is the host issue or some thing else in wordpress settings ?

  • 1
    Are you on shared hosting? If you are on a shared hosting it's better to ask hosting provider .
    – bravokeyl
    Commented May 12, 2016 at 8:51
  • Sorry to hear you're having problems, but this question is off-topic (too localized) - you need to liase with your hosting provider. Commented May 12, 2016 at 9:45
  • memory limits can also be set in php.ini (or even .htaccess I think) so you can check those too, as wordpress cannot override existing limits.
    – majick
    Commented May 12, 2016 at 10:19
  • 1
    Shared web hosts restrict the PHP Memory limit at server level through php.ini file. You can create your own php.ini file in web hosting space and extend the PHP Memory limit, if your web host allows you. As an alternative, your web host must have provided you with the "Select PHP version" option in cPanel, that allows you to set PHP Memory limit along with other important variables. Commented May 13, 2016 at 6:15

1 Answer 1


If you are on any environment you did not personally set up, you may not have the permissions to override the php.ini file.

Also some plugins can manually do:

ini_set( 'memory_limit', '512M');

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.