• Dear all,

    I am suffering the following problem since 24th Jan. When trying to enter my website on [ redundant link removed ]e , you will get the following error message:

    Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 14605920 bytes) in /homepages/6/d13510156/htdocs/clickandbuilds/reinerdoepke/wp-includes/wp-db.php on line 3006

    I cannot access the dashbord via wp-admin either.
    My host can’t held in this case – recommends to set a new website up from scatch, so the old will be lost then.

    I would very much appreciate if someone could help with some easy advice – I am only a user, no programmer 😉

    Thank you
    Reiner

    • This topic was modified 4 years, 2 months ago by Jan Dembowski.

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi!

    Give this a try: https://www.wpbeginner.com/wp-tutorials/fix-wordpress-memory-exhausted-error-increase-php-memory/

    Ask your hosting about this as well and send them this link to.

    Hello @allesesser

    I think this is causing for PHP memory setting

    Fixing the Error there are a couple of ways on how to go about resolving this error. These include:

    1.Editing the wp-config.php file
    2.Editing the php.ini file
    3.Editing the .htaccess file

    1.Editing the wp-config.php file

    Here you will need to edit thewp-config.php file.
    define( ‘WP_MEMORY_LIMIT’, ‘1024M’ );

    2.Editing the php.ini file

    On a live install, the file can be accessed within the root of your install, that is within the /public_html/ folder. Note that the file is not installed by WordPress but in most cases set up by your host. If you are using CPanel as your control panel, for example, make sure the checkbox for “Show Hidden Files” is checked and then click Go. You may check into this article on how to go about editing the file. Before editing the file, kindly preserve a backup to it by downloading it to your computer.
    Once this is done, open the file, add or edit the following line:

    memory_limit 512M

    3.Editing the .htaccess file

    The .htaccess file is a file located within the root of your WordPress files.

    You will need to add or edit the following code to the bottom of the file:

    php_value memory_limit 256M

    With this done, you can then save your changes and check if the error is resolved.

    Thanks

    • This reply was modified 4 years, 2 months ago by Jan Dembowski.
    Thread Starter allesesser

    (@allesesser)

    Thank you both!

    @aezazshekh It worked again after editing the config-file

    @blclda I tried that already but 256M wasn’t enaugh 🙂

    You both made my day.

    Thanks a lot

    Reiner

    Hi,

    If you’ve got permissions on you Plesk or control panel used for web hosting, you have to change the PHP variable “memory_limit” to your recommended value.

    From the error message you show it appears that now you have 256M assigned.

    Keep in mind that this value is not “the higher the better”, because it means how much memory is going to be reserved for each process.

    I would try setting it to 384M first, and if it doesn’t work, to 512M, but those values are too high depending on your server.

    For instance, if you have 2Gb of ram (2048M), and you set this variable to 512M, it would mean that you can only have 4 simultaneous users (512 * 4 = 2048).

    With simultaneous users I don’t mean active people browsing your site. I mean visits that request to open content at the exact same time.

    So if your site runs with a lower memory setting, keep it that way.

    Some specific pages can take higher memory so make sure to test the whole site.

    Regards.

    @allesesser Glad you got it working 😉 Have a good day.

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

The topic ‘Fatal error: Allowed memory size of XX bytes exhausted’ is closed to new replies.