Fatal error: Allowed memory size of 67108864 bytes exhausted Error

3 replies
`Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 130968 bytes) in /home/*****/*****/wp-includes/plugin.php on line 607`

Ive looked up all of the similar topics about this but problem of mine is different than those:

When I tried to enter my site without "www":
chemicalsubjects.com
it gives me :
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 130968 bytes) in /home/*****/*****/wp-includes/plugin.php on line 607

When I tried to enter my site with "www":
There is no error...

I tried to increase memory size by htacces and/or wp-settings.php but it doesnt work.
I tried to step by step close/open plugins but dont work out!
Why?
#allowed #bytes #error #exhausted #fatal #memory #size
  • Profile picture of the author driveyourtech
    You need to raise the PHP memory limit. You can do this from WHM if you have a VPS or reseller, otherwise you will need to contact your hosting provider and they can do this for you.
    {{ DiscussionBoard.errors[9410283].message }}
  • Profile picture of the author Ekushey
    Contacting the hosting company will be the best.
    Signature

    I'll solve your PHP, MySQL, WordPress or any website or server related problems.
    Hire me on Freelancer.com at an affordable rate with fast turnaround time.

    {{ DiscussionBoard.errors[9410801].message }}
  • Profile picture of the author freeseoresults
    Fatal error: Allowed memory size of 67108864 bytes exhausted (blah blah) does not 100% means memory, this could be a poor programming codes or deprecated functions used in some installed plugins.

    2 ways to fix this:

    1.) Increase the memory
    2.) Check for bad plugin

    1.) We will start by adding more memory to your "website application i.e wordpress"

    This is very easy and could be completed within 10 minutes.

    If you have ftp access to your server where you website is hosted, you will connect via your ftp and go to your website home directory (for example /home/sample.com/public_html/) then you will have to add the following line of code to your config file i.e wp-config.php which is located in the root directory of your website.

    add the following:

    define('WP_MEMORY_LIMIT', '128M');
    Note: 128M is what I changed the memory to, please change this based on your overall server available memory.

    Save, and we are done.

    Refresh, if the problem persist, then you will have to believe that its one of your plugin poor coding. We will use the second way of doing this, "Check for poor plugin coding".

    To do this, simply navigate to your plugin folder and rename it to anything, for this example, I will rename the plugin to plugins_old;

    That's it.

    Refresh and your site you be back to live. Now activate your plugins one-by-one to see which one breaks the website (report it to the author so that they can fix it for others too). If you are a programmer fix it and still alert the author.

    Tips: The second option is greatly useful especially when some plugins get their updates and your website stopped working, blank out, admin cannot login too because its white-out. Use the second option and rename your plugins directory to something else, refresh and your should see your website again.

    If you are still having problem; You will have to turn on the debugging assuming you haven't done that before, this will enable you to see what actually is going on your with codes on your website.

    NB: If your website is heavily with traffic, you might not want to turn this on as all your visitors will see what your are seeing, and it could be annoying.

    To turn the debug on, simply navigate to the root of your website and open the wp-config.php file, search for DEBUG you should see this define('WP_DEBUG', 0); , then change the 0 to 1 define('WP_DEBUG', 1); refresh your website, take a screenshot for later use.

    Let me now if this help
    {{ DiscussionBoard.errors[9410935].message }}

Trending Topics