Forums

[resolved] Allowed memory size of 262144 bytes exhausted - Yeh I know.... BUT (10 posts)

  1. Rooonga
    Member
    Posted 5 months ago #

    Hi everyone,

    I really hope you can help me with this problem. If I try to use the dashboard I get the infamous error "Fatal error: Allowed memory size of 262144 bytes exhausted (tried to allocate 122880 bytes) in /home/hypnosis/public_html/wp-admin/menu-header.php on line 100"

    I tried the following:

    1. If you have access to your PHP.ini file, change the line in PHP.ini
    If your line shows 32M try 64M:
    memory_limit = 128M ; Maximum amount of memory a script may consume (128MB)

    2. If you don't have access to PHP.ini try adding this to an .htaccess file:
    php_value memory_limit 128M

    3. Try adding this line to your wp-config.php file:
    Increasing memory allocated to PHP
    define('WP_MEMORY_LIMIT', '128M');

    And step 4 said talk to my webhost - which I have been doing for 2 days now!! I was using free hosting using 000wehost.com, and they couldn't fix so told me if I upgrade to their paid service they would then be able to help.

    However - what a crock of sh!t that turned out to be. After suggesting i do the above, they then said they cannot help and I should go to the wordpress forums - so here I am - begging for help.

    Can anyone here help please?

    Oh - background info - the problem started when I let someone do some seo work on my site - they decided that my site should be upgraded to the newest version of wordpress, and this is where the problem started. My site can be seen normally for browsers, but as soon as I try any admin functions I get that error!

    Oh also - my host limit is actually 128MB, and there are no scripts that come even close to this - 1 of the errors that was in the error log file was only 78 bytes!

    Thanks for reading, look forward to answers.

    Oh - 1 last thing - If I were to just unzip and FTP wordpress back over would I lose everything I have already done on my site?

  2. sacredpath
    Member
    Posted 5 months ago #

    Can you access any part of the dashboard or do all dashboard pages error out on you?

    If you can access the plugins page, disable all plugins. If not, follow the procedure here to disable them from either FTP or from your cPanel if your hosting account has cPanel.

    Log out (if you are logged in), clear your browser cache and cookies, restart your browser and then try again to access the dashboard. If that works, then one of your plugins is causing the issue. You can then move the plugins into the empty plugins folder one at a time to see which one is causing the issue. I would disable each plugin in the dashboard before adding another. If none of them singly causes the issue, then start activating them one after the other to see which one is causing the problem. Also make sure all of your plugins are up to date.

  3. Rooonga
    Member
    Posted 5 months ago #

    Also tried renaming plugin folder in case that was causing the prob, but this didn't help at all either.

  4. Rooonga
    Member
    Posted 5 months ago #

    Cheers sacredpath, i was typing as you replied.

    Used FTP to change the name of the plugins folder, deleted all cookies etc. tried again - It'll give me the admin log in page, but once details are put in I get the same error.

    It's driving me bananas!

  5. Rooonga
    Member
    Posted 5 months ago #

    I wonder if it'll be better to just upload WP again by FTP - but would this delete all the stuff already on the site?

  6. sacredpath
    Member
    Posted 5 months ago #

    A couple of things you can try before the nuclear option.

    Download a fresh copy of wordpress, unzip it and then delete everything inside the wp-admin folder from your installation via FTP and then upload a new copy of the folder via FTP.

    One other thing that sometimes causes this is an incompatible theme. try temporarily moving the theme folder out of the wp-content/themes/ folder and see if that makes a difference.

    If that doesn't work, then a fresh installation would be your next step. Do not delete the existing wp-config.php file (perhaps move it to a temporary folder before doing the clean install and then move it back in before trying to visit the site and dashboard) and if you are using a different theme, move that theme folder out of the wp-content/themes/ folder to a temporary folder as well.

    Do the installation and then try everything before adding in the theme using the default installation with the default theme.

  7. sacredpath
    Member
    Posted 5 months ago #

    As far as your content goes, that is all stored in the MySQL database, so none of that will go away.

    You might lose some text widget content.

  8. Rooonga
    Member
    Posted 5 months ago #

    Hiya,

    Just a quick update.

    I deleted the wp-admin folder and put a fresh copy there, but no change :(

    After that I copied to theme I was using to my pc and deleted it on my site, but this also had no effect!

    It's so frustrating as its reporting not enough memory BUT the amount trying to be used is miles less than what is allowed.

    Gonna leave it til tomorrow now as I am so tired of it, and don't want to make any silly mistakes. Tomorrow I will copy the wp-config.php file to my desktop - then re-install and put it back on. (Does that sound right LOL!)

    Thanks for your help so far - already much better than the help on my host!

  9. Rooonga
    Member
    Posted 5 months ago #

    Copied wp-config to desktop, used FTP to copy whole WP install over, then copied wp-config over.

    It asked to update database, so hit ok, the voila!! All back and working.

    Thanks BIG TIME!!!

  10. sacredpath
    Member
    Posted 5 months ago #

    You are welcome. It sounds like the upgrade process originally had a hiccup and the database update did not happen.

    Glad you are up and running again.

Reply

You must log in to post.

About this Topic