• So, I’ve been getting things like

    Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 122880 bytes) in /home/DOMAIN/public_html/wp-includes/class-wp-editor.php on line 676

    The default file upload limit on this server is 2MB. I put the exact same install, using the exact same procedure, on another server and the default file upload size was 32MB.

    Any chance all this is related to the size limit of the database?

Viewing 3 replies - 1 through 3 (of 3 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.

    Thread Starter tshelor

    (@tshelor)

    I saw another hack to increase the limit in the config file, which I’ve done. I haven’t seen any changes.

    The hosting provider has locked me out of the cPanel (not my site, it’s a client’s) so I can’t get to the .ini file.

    Overall, I think it’s host related and it’s time to tell the client to find a new hosting provider. I just wanted someone cooler than me to share my opinion. Thanks James!

    Moderator James Huff

    (@macmanx)

    The wp-config.php file hack is actually obsolete, it doesn’t really do anything, so your only options would be php.ini or .htaccess modification, or hosting provider intervention.

    Or, moving to a different hosting provider if none of those work out, of course. ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Fatal Error’ is closed to new replies.