Forum Replies Created

Viewing 10 replies - 1 through 10 (of 10 total)
  • Thread Starter maxlife

    (@maxlife)

    I put a temporary remedy in the meantime (note at page-2 bottom)

    Thread Starter maxlife

    (@maxlife)

    Thanks for the help!

    Thread Starter maxlife

    (@maxlife)

    Oh wow, totally missed that! Thanks a lot ??

    maxlife

    (@maxlife)

    OK, my problem just got solved!!!

    Got it from this https://www.ads-software.com/support/topic/fatal-error-out-of-memory-messages?replies=24#post-1929111, thought I’d share it with you guys :

    ?THIS TO BE ENTERED IN THE WP-CONFIG FILE WHICH IS IN THE ROOT OF THE WORDPRESS SETUP:
    ENTER AFTER:?define(‘ABSPATH’, dirname(__FILE__).’/’);
    THE FOLLOWING:

    define(‘WP_MEMORY_LIMIT’, ’64M’);

    I ALSO CREATED A PHP.INI WHICH I UPLOADED TO THE PLUGIN FOLDER IN WP-CONTENT:

    memory_limit = 128M; Maximum amount of memory a script may consume (64MB)?
    max_execution_time = 45;?
    upload_max_filesize = 10M;?
    post_max_size = 20M;

    Hope this helps!

    maxlife

    (@maxlife)

    Problem Solved!!!!!!

    I tried Charles’ fix, it did it!!!! You are a life-saver!! Been messing around with codes for 2 days already (without really understanding PHP, etc) trying all these suggestions – thank God this one went through!!!

    Thanks again, Charles ??

    maxlife

    (@maxlife)

    Hi A2JC4life,

    So were you able to resolve this issue? How did you finally address it?

    maxlife

    (@maxlife)

    Thanks for the quick reply. I did what you said, added the line to the top and this is how the upper part looks like after the edit:
    <?php
    define(‘WP_MEMORY_LIMIT’, ‘128M’);
    /**
    * The base configurations of the WordPress.
    *
    * This file has the following configurations: MySQL settings, Table Prefix,
    * Secret Keys, WordPress Language, and ABSPATH. You can find more information
    * by visiting {@link https://codex.www.ads-software.com/Editing_wp-config.php Editing
    * wp-config.php} Codex page. You can get the MySQL settings from ….

    However, I still got this error message after I refreshed and tried to create a new site:

    Fatal error: Out of memory (allocated 67108864) (tried to allocate 35 bytes) in /home/maxlife/public_html/healthydinnerrecipesreview.com/wp-includes/meta.php on line 310

    Would you have other suggestions please?

    Thanks again…

    maxlife

    (@maxlife)

    Ok, I contacted my host and he told me that my memory limit is already 64M. I was also able to check it myself via phpinfo. I was also told that since I’m on shared hosting, I can’t go beyond 64M anymore.

    Now I am already able to access my sites and wp-admin. However, I still see this message whenever I add a new site using a new subdomain:

    fatal error: out of memory (allocated 66846720) (tried to allocate 35 bytes) in /home/maxlife/public_html/healthydinnerrecipesreview.com/wp-includes/meta.php on line 310

    How do I address this please?

    maxlife

    (@maxlife)

    This first error message I got said that the php file in question was wp-includes/meta.php. So I tried to open this first but didn’t find the location where to add the line (“just after ini_set” as suggested by Shane G).

    So I decided to do the .htaccess file route instead.

    This is how my .htaccess file looked after adding the line at the end: (Is this correct?)

    # BEGIN WordPress
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ – [L]

    # uploaded files
    RewriteRule ^files/(.+) wp-includes/ms-files.php?file=$1 [L]

    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ – [L]
    RewriteRule . index.php [L]
    # END WordPress
    php_value memory_limit 64M

    I saved this then refreshed. But when I went back to my wp-admin, I got this error message: Internal Server Error ??

    Now, I can’t access my sites (both actual sites and wp-admins) with the domain name in question, all of them showing this internal error message. (Panic mode!!!)

    Would greatly appreciate your help Shane G, or anybody please….desperately need help.

    Thanks in advance!

    maxlife

    (@maxlife)

    In the .htaccess file, where exactly do I add the memory limit line?

Viewing 10 replies - 1 through 10 (of 10 total)