Cornerstone 500 Error

Hi,

I have a critical problem with trying to use Cornerstone on my site. I have enabled WP_DEBUG with the following message : -

Notice: Constant WP_MEMORY_LIMIT already defined in /home/sites/staustellgolf.co.uk/public_html/wp-config.php on line 101

Notice: Constant WP_MAX_MEMORY_LIMIT already defined in /home/sites/staustellgolf.co.uk/public_html/wp-config.php on line 102

Fatal error: Out of memory (allocated 140509184) (tried to allocate 1191936 bytes) in /home/sites/staustellgolf.co.uk/public_html/wp-content/plugins/cornerstone/includes/elements/mixins_includes/_graphic.php on line 61

Can you help me to resolve this issue or at least point me in the right direction?

Kind Regards

Roy

Hi Roy,

Please check yor wp-config.php file located at the root directory of your site and make sure there is only one nstance of

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

and

define( 'WP_MAX_MEMORY_LIMIT', '1024M' );

and make sure to add it before this line of code

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

Thanks

Hi,

Thanks for your reply.

I have done that: -

define( ‘WP_MEMORY_LIMIT’, ‘512M’ );
define( ‘WP_MAX_MEMORY_LIMIT’, ‘1024M’ );

But I still get this message: -

Notice: Constant WP_MEMORY_LIMIT already defined in /home/sites/staustellgolf.co.uk/public_html/wp-config.php on line 101

Notice: Constant WP_MAX_MEMORY_LIMIT already defined in /home/sites/staustellgolf.co.uk/public_html/wp-config.php on line 102

Fatal error: Out of memory (allocated 140509184) (tried to allocate 1191936 bytes) in /home/sites/staustellgolf.co.uk/public_html/wp-content/plugins/cornerstone/includes/elements/mixins_includes/_graphic.php on line 61

Is there anything else I can do?

Kind Regards

Roy

Hi Roy,

The error means you have already set WP_MEMORY_LIMIT and WP_MAX_MEMORY_LIMIT

Can you provide us your ftp login details in Secure Note so we can take a closer look

Thanks

I sent ftp details in secure note, hope you got it?

Hi Roy,

The login provided doesn’t seem to work.

Kindly check again and let us know

Thanks

Hi,

I still could not login.

Please check

Hi, sorry have been away for a while - I see you still cannot get access?

I have changed the password and resent in a secure note

Regards

roy

Hey Roy,

We could not login to your server. Please do not set a time limit for the access because we do not know what time we can answer your thread.

Also, since you’ve added the code and it does not take effect, it most probably means that your host does not allow that you increase your memory limit. Please try a different host. You can check out the suggestions of an X user at https://michaelbourne.ca/choose-best-wordpress-host/

Thanks.

Hi,

I still think that Cornerstone has something to do with the error I am getting. This is what I get only when I try to edit a page using Cornerstone : -

Notice: Constant WP_MEMORY_LIMIT already defined in /home/sites/staustellgolf.co.uk/public_html/wp-config.php on line 101

Notice: Constant WP_MAX_MEMORY_LIMIT already defined in /home/sites/staustellgolf.co.uk/public_html/wp-config.php on line 102

Fatal error: Out of memory (allocated 140509184) (tried to allocate 1191936 bytes) in /home/sites/staustellgolf.co.uk/public_html/wp-content/plugins/cornerstone/includes/elements/mixins_includes/_cart.php on line 98

I seem to only have got this problem since I updated to the new version of Cornerstone…?

Can you help?

It is vital for me to get the site working with Cornerstone so I can edit the site for my client…

Kind Regards

Roy

I have an update - I deactivated the plugin “Wordfence Security” and Cornerstone has started to work again!

This is a relief as I can now edit my site.

If this plugin was the fault, can you advise a security plugin that will work with X and not crash the site?

Regards

Roy

Hi Roy,

Based on the error message that you have mentioned, it seems that the Wordfence Security plugin requires more memory in order for your site to work.

If you have added the code to the wp-config.php file and it has not take effect, it is possible that your hosting set some restriction. It would be best to get in touch with your hosting provider and ask them to increase your PHP memory limit. Once they’ve done that, try enabling the plugin again and load the page in Cornerstone.

Hope this helps.

Many thanks for your help

Will try this…

Regards

Roy

You are most welcome. :slight_smile:

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.