• Hi,
    Occasionally, we get the following error message:

    Allowed memory size of 134217728 bytes exhausted (tried to allocate 1634628778 bytes) in C:\\bitnami\\wcbWordPress\\apps\\wordpress\\htdocs\\wp-includes\\functions.php on line 5027.

    We tried increasing memory limit, disabling plugins and theme, re-uploading the wp-includes and wp-admin directories, but no luck. When we disabled plugins and theme, it didn’t point to any plugin in particular. We have Avada theme with a child theme installed.

    This problem occurs intermittently, and we eventually get a 500 error and the white screen.

    We’re out of ideas…any help would be appreciated. Thanks.

Viewing 4 replies - 1 through 4 (of 4 total)
  • @mduva

    What version of PHP are you using?

    you can do a small test to check your current php and memory limit.

    create a new text document on your desktop

    Then add the following line to it

    <?php
    phpinfo();
    ?>

    Then save the file with this exact name

    info.php

    Then upload this file to the root directory of your domain using FTP.

    Once that’s done,

    Go to the following link

    https://youramazingwebsite.com/info.php

    This will open the file you uploaded and it will then give you all the php info…including memory limit.

    If you are not satisfied with the limit and want to increase it

    You will then have to create another file just like the one you made before.

    The name of the file will have to be

    php.ini

    the code you need to put in there is as follows:

    memory="your desired memory allocation goes herer"MB

    So the end result would look like this example

    memory=1024MB

    Then you save that file, and upload it using FTP to you root folder.

    (note: that file might already exist, and if it does, then just add line of code to it instead of creating a new file)

    That should increase your memory limit.

    Once you’re done and everything is working well….don’t forget to delete the first file you made

    the info.php file

    Hope this helps.

    Thread Starter mduva

    (@mduva)

    Here’s the info:
    memory_limit = 128M
    PHP Version: 7.0.10

    We’ve tried increasing the memory limit to 256M, but no luck. We’re still getting the error message.

    Hello @mduva

    please edit the php.ini line I gave you earlier and replace it with

    memory_limit = 256M

    and see if that works.

    If it does, great. if not:

    delete the php.ini file if it did not exist before you created it. OR delete the lines of code you added to it trying to increase the memory limit and then;

    Try the following,

    create a new file,

    name it

    .user.ini

    Don’t forget to include the dot before the word “user” in the file name.

    Then inside this file, add the following line:

    memory_limit = 256M

    then save the file.

    Then upload it to the public_html folder of your website

    then check if your memory limit has changed or not

    Thread Starter mduva

    (@mduva)

    The memory limit has been increased to 256M and it has changed. We’re also exceeding the 256M limit.

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

The topic ‘Allowed Memory Size Exhausted – wp-includes\\functions.php’ is closed to new replies.