Cannot edit homepage ? Caching problem?

Hello,

We are having an issue editing our homepage. All other pages on the site can be edited with cornerstone, but as soon as we go to edit the homepage in Cornerstone - we get the following:

“The preview was unresponsive after loading. This is most often related to a plugin conflict or aggressive page cacheing.”

We have tried the following…

  • Resetting .htaccess
  • Increasing Memory Limit
  • Upgrading PHP

Please see credentials in a private message and we look forward to any help. Thank you

Hi There @fbaradmin

Thanks for writing in! Upon further investigating your issue, I see that your PHP Max Script Execute Time is set to 30 seconds which could be a possible cause.

Could you please try following this guide (https://www.simplified.guide/php/increase-max-execution-time) and see if you can increase it to 120 or a higher value like 300 and see if that resolves your issue.

Once you increase the value, you can veirify it by head over to your WordPress Dashboard -> WP Serverinfo area. Then re-test loading your homepage and see if that helps.

Thanks!

Thanks, but unfortunately that did not help…any other suggestions? We verified and it is increased, but not working.

Hi there,

Please also provide us with the FTP details of your site so that we can check this further,

For the meantime, please also increase the memory limit of your site.

To do this, please edit your wp-config.php file and insert these lines:


    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. */

In case the issue persists, please try to get in touch with your hosting provider and confirm to them that your PHP memory limit is increased.

That was already in our wp-config. just added FTP creds to the secure note :slight_smile:

Hello @fbaradmin,

I have logged in and fixed your child theme because you are using legacy child theme. I have relocated your file framework/views/global/_header.php to framework/legacy/cranium/headers/views/global/_header.php

I have seen that you added a custom JS in the header. I went ahead and install “Insert Headers and Footers” plugin and moved the custom JS link as well. I added it in Settings > Insert Headers and Footers instead. In this way, it will be easy for you to manage any custom code for the header or footer.

And then lastly, I found out that you have added this lines in one of the raw content element in your homepage which have caused the issue.

<link href="lightbox/dist/lity.css" rel="stylesheet">
<script src="lightbox/vendor/jquery.js"></script>
<script src="lightbox/dist/lity.js"></script>

This lines were incorrectly and does not give the correct file path. It have cause issues preventing the Cornerstone preview from loading. I have removed it and now your homepage is editable again.

Please check your site now.

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