• Help please, I am not a web developer, I try to learn but don’t know a lot yet.
    I have an air message ( see below) that appears when I want to see my website.I called my hosting provider and they increased the memory size and said that I should check my plugins.
    Does anyone have an idea please??

    Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 130968 bytes) in /home/content/p3pnexwpnas06_data01/29/2422129/html/wp-includes/formatting.php on line 1458

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 = 128M

    2. If you cannot edit or override the system php.ini file, add php_value memory_limit 128M 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 128MB)

    Thread Starter Noemy

    (@noemy)

    I have deactivated the plugins, also increased the memory.
    The message changed anytime I made changes and now it says:

    Fatal error: Cannot redeclare woo_exclude_categories_blogtemplate() (previously declared in /home/content/p3pnexwpnas06_data01/29/2422129/html/wp-content/themes/linen_home_ambiance/includes/theme-functions.php:75) in /home/content/p3pnexwpnas06_data01/29/2422129/html/wp-content/themes/linen_home_ambiance/includes/theme-actions.php on line 122

    I really don’t know what to do?

    Moderator James Huff

    (@macmanx)

    Ah, now it’s something different. 🙂

    Try deactivating all plugins. If that resolves the issue, reactivate each one individually until you find the cause.

    If that does not resolve the issue, try switching to the Twenty Fifteen theme to rule-out a theme-specific issue (theme functions can interfere like plugins).

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Fatal error’ is closed to new replies.