WordPress.org

Ready to get started?Download WordPress

Forums

Fatal error: Allowed memory size (9 posts)

  1. shofiur
    Member
    Posted 6 years ago #

    I create like that 200000's category. Now on admin panel when i go to the categories tab under manage tab i get a error like that

    Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to allocate 35 bytes) in /home/national/public_html/colleges/wp-includes/wp-db.php on line 237.

    Please help me.

  2. Jeremy Clark
    Moderator
    Posted 6 years ago #

    You need to increase your php memory limit. If you have access to your php.ini file look for the memory_limit setting and increase it to something like 32M.

    If you don't have access you can try adding this to your .htaccess file.
    php_value memory_limit 32M

    If that doesn't work you'll need to contact your host and get them to do it.

    I'm also curious why you have that many categories.

  3. Nyxks
    Member
    Posted 6 years ago #

    Well I have a fair amount of access to my server, but I don't know the first place to look for the php.ini file, where would it be located?

    Is it accessable via the MyPHPAdmin or how would I access it?

    Am running with cPannel if that makes any differance.

    Nyx

  4. stonegauge
    Member
    Posted 6 years ago #

    Are you using Spam Karma 2?

    I had the same errors popping up on my blogs (2 sites) and it would seem there was a conflict that developed between SK2 and other plugins.

    It's not a PHP.ini memory error, it's a bad plugin code error.

  5. SidVision
    Member
    Posted 6 years ago #

    I just upgraded to WordPress 2.3.2 and started getting the Fatal Error: Allowed Memory Size . . . error also. I contacted my host and they said there is no way for me to increase my PHP Memory size since I am on a shared server.

    Instead I tried to limit what I was running, so I deactivated some plugins I was using. It seems to work fine now. I am not sure if the plugins were not working with the new version of WordPress or if less plugins caused a lower memory requirement, but it worked.

  6. Davin
    Member
    Posted 6 years ago #

    I'm getting the same sort of errors when trying to upload after upgrading to 2.3.2. I tested by deactivating all of my plug-in and even removing them from the plug-in folder but that didn't help. Upload was working fine prior to the upgrade and nothing else was changed in terms of plug-ins, code, or layout.

    I get this error:
    Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 2280 bytes) in (...)
    wp-admin/includes/image.php on line 37

    Anyone else have 2.3.2 specific problems like this?

  7. plimper
    Member
    Posted 6 years ago #

    Hello there mate.
    I am not an expert but i m using v2.2.1 but when i have upgraded 2 plugins that they were intended for use with v2.3x.
    I had an issue also for not enough temp memory.
    You should go through your cpanel then you go on the files manager then you click /public_html and there you will find the php.ini document.
    You will open (edit)it and you will find this
    #
    file_uploads = On
    #
    ;upload_tmp_dir =1M
    #
    upload_max_filesize = 2M
    You will change the upload temp and maximum filesize to something bigger.
    Then you will save it
    It should work after this mate.

    Kind Regards
    Panagiotis.

  8. henakrixer
    Member
    Posted 6 years ago #

    I've got the same error when i put memory limit of 4MB on my XML sitemap plugin. After i empty the memory limit space, it works like usual.

  9. issy-m
    Member
    Posted 6 years ago #

    I was having the same problem until I deleted the sitemap.php from plugins. Now it's working again.

    Thanks for the tips...

Topic Closed

This topic has been closed to new replies.

About this Topic