Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1005249

    MarinaWinkler
    Participant

    Hi, after using cornerstone for quite a while, my cornerstone plugin suddenly stopped making changes to my website and when I exit it I get an error message:

    Fatal error: Allowed memory size of 75497472 bytes exhausted (tried to allocate 32 bytes) in /var/www/ud01_137/html/wp/wp-content/plugins/cornerstone/includes/classes/builder/class-control-mixins.php on line 73

    Why is my working memory suddenly so low? I have only a few plugins (10-15) installed and cornerstone worked before… And my website is just in its beginnings -there is not much on it yet. Is this normal? Could you please check this? Is there anything to decrease working memory load? Do I have to get a larger web hosting plan? But how do I prevent then running out of the limit of 128?

    #1005253

    Rahul
    Moderator

    Hi,

    You can try adding this in your wp-config.php located at the root directory of your site.

    define( 'WP_MEMORY_LIMIT', '256M' );
    define( 'WP_MAX_MEMORY_LIMIT', '512M' );

    You can add it before the line

    /* That’s all, stop editing! Happy blogging. */

    Hope that helps

    #1005256

    MarinaWinkler
    Participant
    This reply has been marked as private.
    #1005266

    Rahul
    Moderator

    Hey marina,

    Let us know how the memory increase goes and we can start debugging further.

    Thanks

    #1005277

    MarinaWinkler
    Participant

    Hi, can I access this wp-config.php somehow out of wordpress dashboard? I can’t really find it under my ftp folders…

    #1005281

    MarinaWinkler
    Participant

    Ah I just found it 🙂 and it seems to work now after editing it! Thanks so much!

    #1005282

    Rahul
    Moderator

    Hey there,

    Unfortunately wp-config.php will not be available in your dashboard. You can find this file under the root directory of your WordPress installation.

    if you still can’t find, please provide us with your FTP details in a private reply and we can check that for you.

    Thanks

    #1005296

    MarinaWinkler
    Participant
    This reply has been marked as private.
    #1005338

    MarinaWinkler
    Participant
    This reply has been marked as private.
    #1005340

    Joao
    Moderator

    Hi Marina,

    The code above provided improved the overall PHP memory of your website, your website will work faster and have a better performance with that.

    Whenever I start any WordPress website it is the first thing I do, it is always make the website better independently if I don´t face any issue 🙂

    Let us know if we can help you with anything else.

    Joao

    #1005342

    MarinaWinkler
    Participant
    This reply has been marked as private.
    #1005349

    Rahul
    Moderator

    Hey Marina,

    This setting increases PHP Memory only for WordPress, not other applications. By default, WordPress will attempt to increase memory allocated to PHP to 40MB (code is at the beginning of /wp-includes/default-constants.php) for single site and 64MB for multisite, so the setting in wp-config.php should reflect something higher than 40MB or 64MB depending on your setup.

    WordPress will automatically check if PHP has been allocated less memory than the entered value before utilizing this function. For example, if PHP has been allocated 64MB, there is no need to set this value to 64M as WordPress will automatically use all 64MB if need be.

    Please note, this setting may not work if your host does not allow for increasing the PHP memory limit–in that event, contact your host to increase the PHP memory limit. Also, note that many hosts set the PHP limit at 8MB.

    So, it is not something “unallowed”. It is just a small tweak necessary for some WordPress functionality to work. However, some hosts avoid enabling this by default for users so this needs to be done manually.

    I hope this explains.

    Thanks

    #1005354

    MarinaWinkler
    Participant

    Now cornerstone makes the changes, but gives me:

    Fatal error: Allowed memory size of 75497472 bytes exhausted (tried to allocate 130968 bytes) in /var/www/ud01_137/html/wp/wp-includes/query.php on line 1703

    when I try to exit it…

    #1005377

    Rahul
    Moderator

    Hey there,

    I had no problem saving and exiting cornerstone. Would you mind clearing your browser cache or use a different browser (safari) for that matter?

    Thanks

    #1005493

    MarinaWinkler
    Participant

    Hi Rahul, I cleared the browser cache, and still get:

    Fatal error: Allowed memory size of 75497472 bytes exhausted (tried to allocate 80 bytes) in /var/www/ud01_137/html/wp/wp-includes/functions.php on line 330

    its not when I save sth. in cornerstone, but when I click the home button in cornerstone and try to leave cornerstone to get back to dashboard…