• Please help!

    I manage this site – https://www.dv4pc.org/ and this morning when I tried to log in this error shows up –

    Fatal error: Allowed memory size of 41943040 bytes exhausted (tried to allocate 30720 bytes) in /data/20/2/124/36/2939362/user/3257814/htdocs/wp-content/themes/pactheme/classes/Admin/Theme/Item/General.php on line 41

    I think that this error is a caused by a low upload size. Below is the current php.ini

    upload_max_filesize = 20M
    post_max_size = 20M
    max_execution_time = 6000

    If my thought is right please help me what do to next and If 20 mb is still not enough what is the ideal or recommended upload maximum filesize?

    Thanks in advance.

    Arjhan
    Team VA Philippines

Viewing 1 replies (of 1 total)
  • Moderator James Huff

    (@macmanx)

    This is memory, like RAM in your computer, not file size.

    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)

Viewing 1 replies (of 1 total)
  • The topic ‘Can't access wp-admin – Fatal error: Allowed memory…’ is closed to new replies.