Tagged: cornerstone
-
AuthorPosts
-
May 23, 2016 at 9:26 am #1005249
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?
May 23, 2016 at 9:27 am #1005253Hi,
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
May 23, 2016 at 9:28 am #1005256This reply has been marked as private.May 23, 2016 at 9:33 am #1005266Hey marina,
Let us know how the memory increase goes and we can start debugging further.
Thanks
May 23, 2016 at 9:44 am #1005277Hi, can I access this wp-config.php somehow out of wordpress dashboard? I can’t really find it under my ftp folders…
May 23, 2016 at 9:47 am #1005281Ah I just found it 🙂 and it seems to work now after editing it! Thanks so much!
May 23, 2016 at 9:48 am #1005282Hey 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
May 23, 2016 at 9:59 am #1005296This reply has been marked as private.May 23, 2016 at 10:16 am #1005338This reply has been marked as private.May 23, 2016 at 10:16 am #1005340Hi 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
May 23, 2016 at 10:17 am #1005342This reply has been marked as private.May 23, 2016 at 10:20 am #1005349Hey 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
May 23, 2016 at 10:20 am #1005354Now 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…
May 23, 2016 at 10:28 am #1005377Hey 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
May 23, 2016 at 11:27 am #1005493Hi 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…
-
AuthorPosts