• Resolved miplus

    (@miplus)


    I am new to WordPress and have been downloading various themes. Is the message ” Allowed memory size of 33554432 bytes exhausted” caused by me downloading and installing multiple themes?

    Thanks Tim

Viewing 5 replies - 1 through 5 (of 5 total)
  • Moderator James Huff

    (@macmanx)

    If you’re seeing this error either suddenly (no specific task was done to cause the error) or frequently, try deactivating all plugins to rule-out a plugin-specific issue and try switching themes to rule-out a theme-specific issue.

    Otherwise, here are three ways to increase PHP’s memory allocation:

    1. If you can edit or override the system php.ini file, increase the memory limit. For example, memory_limit = 256M

    2. If you cannot edit or override the system php.ini file, add php_value memory_limit 256M to your .htaccess file.

    3. If neither of these work, it’s time to ask your hosting provider to temporarily increase PHP’s memory allocation on your account. Keep in mind that most decent hosting providers allocate 32 MB to PHP under each account, and most decent hosting providers allow users to temporarily increase the memory allocation. If your hosting provider won’t accommodate you, perhaps it’s time to find a new hosting provider.

    (in the above examples, the limit is set to 256MB)

    You might also try adding the following to your wp-config.php file:

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

    Moderator James Huff

    (@macmanx)

    Just a note above the above line, it won’t be able to bump WordPress’s usage past what PHP’s memory is limited to, so you may need to do the other things to bump PHP’s memory too.

    WordPress will try to increase its memory limit on its own (the max of what PHP allows), so that wp-config.php line isn’t generally necessary, but sometimes WordPress can’t increase its memory limit.

    Thread Starter miplus

    (@miplus)

    Thank you both for the response, disabling the plug-ins seemed to solve the problem.

    Tim

    Moderator James Huff

    (@macmanx)

    You’re welcome!

    Now just reactivate each plugin individually to find the exact cause.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Allowed memory size of 33554432 bytes exhausted’ is closed to new replies.