Home Page Edit Issue

Hello,
Recently I lost the ability to edit my homepage through the WP default edit method. It gives me an error “There has been a critical error on your website”. However, If I use “edit with cornerstone” it seems to be OK I am able to make my edits.
Are you able to help with this issue or suggest a resolution?
Thanks,
Ankur

Hello Ankur,

Thanks for writing in!

Please go to Tools > Site Health. Noticed that your PHP version is only 7.0. You may need to update it to at least 7.2 or greater. Please make sure that you have meet the minimum requirements to run WordPress. You can check it here:

Meanwhile, please enable your debug mode. You can do this by opening wp-config.php and adding

define('WP_DEBUG', true);

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

When you revisit the editing page, you should have some error output describing the issue in more detail.

Hope this helps. Kindly let us know.

Hi Ruenel,
I have updated the PHP to 7.3 and added the debug code as well. It still shows the same error. Are you able to review it and let me know if its an error with the Theme or something else I need to look into.
All other pages seem to be editing fine, except for the homepage.
Thanks,
Ankur

Ok, the detailed error is :
PHP Fatal error: Out of memory (allocated 193986560) (tried to allocate 159744 bytes)…
line 1989 on wp-dp.php

Hello @akalra83,

The error means that you have exhausted your PHP memory limit. ​We recommend that you increase your memory allocated to PHP. To increase it, please edit your wp-config.php file and insert these lines:

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

You can add it before the line
/*That's all, stop editing! Happy Blogging. */

If this is not helping, please provide us your FTP details so we can investigate further.

We would loved to know if this has work for you. Thank you.

Hi, that did not fix the issue. are you able to use the login details provided?

Hey @akalra83,

Just to be clear, you are not having a problem with Cornerstone. The issue with the WordPress Editor and that cause of that is a third-party plugin or combination of third-party plugins. I knew that because I deactivated all 3rd party plugins in your site and the issue was fixed.

I’m not sure what exact plugin or combination of plugins is causing the issue. Please do a plugin conflict test. You can do this by deactivating all third party plugins, and seeing if the problem remains. If it’s fixed, you’ll know a plugin caused the problem, and you can narrow down which one by reactivating them one at a time.

It could be that your server couldn’t handle the plugin or set of plugins. Please contact your web host and the plugin developers once you discovered the plugin causing the issue.

Please note that I should not have deactivated your plugins because that disrupts the operation of a website. But, I had no choice. I did that to prevent further back and forth message and testing what works. Please do the basic troubleshooting next time before posting the problem here in the forum. You can read the troubleshooting steps in our Common Issues article here: https://theme.co/docs/common-issues

Hope that helps.

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