Support » Fixing WordPress » Fatal Error after changed language

  • Resolved mmvestudio


    Im my firs contact with wordpress, I switched the language in the configuration and after that I can no longer access the admin. Fatal error message appears: Allowed memory size of 67108864 bytes exhausted (tried to allocate 24 bytes) in /home/storage/f/ab/3a/derosealtodaxv/public_html/blog/wp-includes/pomo/mo.php on line 276
    I tried to increase the memory in wp-config.php using 64M, 96M and 2048M but it didn´t help.
    ex.: define( ‘WP_MEMORY_LIMIT’, ’96M’ );
    Aldo I tried to use ´php_value memory_limit 96M´ in the .httacces and didn´t help too

    I do not know which version I’m using.
    how to find this without access to admin?

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


    Volunteer Moderator 🚀

    The wp-config.php line isn’t actually necessary. WordPress will try to use whatever the max PHP allocation is, set either in php.ini or .htaccess.

    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)

    Hi James. Tks for your reply.
    I edited the php.ini, located in the root of server. But now the error apears in other line of mo.php : Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 89 bytes) in /home/storage/f/ab/3a/derosealtodaxv/public_html/blog/wp-includes/pomo/mo.php on line 283
    I cant´t access the admin area to deactivate plugins or switch theme.
    I thik that the version of WP is very old.
    The php.ini is located out of public_html. In public_html we have a joomla site and the wordpress is in blog directory. think there might be a conflict there?

    Moderator James Huff


    Volunteer Moderator 🚀

    Try manually resetting your plugins (no Dashboard access required). If that resolves the issue, reactivate each one individually until you find the cause.

    If that does not resolve the issue, access your server via FTP or SFTP, navigate to /wp-content/themes/ and rename the directory of your currently active theme. This will force the default theme to activate and hopefully rule-out a theme-specific issue (theme functions can interfere like plugins).

    Hi James.
    I cleaned all edit that I did in the wp-config, .httacess and leave only edit in php.ini with 128M
    It solves the problem.
    Thanks for your help.

    Moderator James Huff


    Volunteer Moderator 🚀

    You’re welcome!

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