Error "The preview was unresponsive after loading

Hi
Something changed on my server’s php files and now I am getting the dreaded "The preview was unresponsive after loading. "

I remember fixing this in the past by adding extra milliseconds to php execution times.
I have:
-compressed images used the Smush plugin
-I have added the hearbeat plugin to reduce AJAX calls.
-added compression between server and web browser via hosting company

…still happening.

At this time would like to take a look at all relevant PHP settings. Can you please direct me which settings need to be modified and to what the recommended amounts would be.

Thanks

Hi There,

Thanks for writing in! Could you please install the following plugin (https://wordpress.org/plugins/wp-serverinfo/1) and then head over to Dashboard -> WP-Serverinfo and check the following information.

PHP version
PHP Max Script Execute Time
Memory Limit

We do recommend PHP v5.6.32 or higher, max script execution time 120 or higher and memory limit 256MB or higher (512MB recommended) to run Cornerstone smoothly.

Also try disabling your 3rd party plugins to see if you’re experiencing any plugin conflict.

Let us know how it goes.
Thanks!

Hello
I have a similar plugin. Here is the output:

v5.5.29
GD: bundled (2.1.0 compatible)
Magic Quotes GPC: Off
Memory Limit: 1,024.0 MiB
Max Upload Size: 1,024.0 MiB
MYSQL

v5.6.38
Maximum No. Connections: 100
Maximum Packet Size: 256.0 MiB
Data Disk Usage: 1.4 GiB
Index Disk Usage: 2.0 MiB
PHP Max Script Execute Time: 480 ms

Hey @flashfog,

Please give us WP Admin and FTP access in a Secure Note so we could check what’s happening.

Thanks.

Hi
I posted a secure note to the previous post.
I am not sure why I can’t post a secure note to every post? Here is what i see https://www.screencast.com/t/hPFsbiBWXw5

anyway, thank you!

for reference, this is my hosting plan

VPS-1000HA-S
$2999/mo.
$44.99/mo 33% OFF!

4GB† RAM
75GB Storage
4TB Bandwidth

https://www.inmotionhosting.com/vps-hosting-t

Hey There,

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. So even if you PHP memory in the server is 1GB, WordPress will only set to 40MB. ​We recommend that you increase your WordPress memory allocated to PHP. To increase it, 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. */

And also make sure that you are using the correct PHP version. WordPress 4.7 requires at least 7.0 (https://wordpress.org/about/requirements/). This could possibly be the cause of the issue. In most cases you cannot update your PHP version yourself and need to contact your host about this. The upgrade process is an easy process and should be something your host can do for you without affecting your website or charging you for it. Here’s a letter you can send to your hosting company:

Dear host,

I'm interested in running the open-source WordPress <https://wordpress.org/> web software and 
I was wondering if my account supported the following:

- PHP 7 or greater
- MySQL 5.6 or greater
- The mod_rewrite Apache module
- HTTPS support

Looking forward to your reply.

Hope this helps. Kindly let us know.

Hi
It took one attempt (had to refresh) but it loaded! Thank you very much

Oh no! i think I claimed victory too soon;

I am getting a can’t save message; so not really able to edit; https://www.screencast.com/t/q5fnlENW

Also, I lost all I had added via cornerstone to products on a woocommerce store. I suspect this is from updating the php version?

Below summary of what was done on the server;

  • installed a PHP switcher onto server; set to PHP 7,
  • PHP memory limit upgraded from 512M to 2048M
  • Extended max execution time to 240

Hi there,

It’s an internal server error, unfortunately, there are no details about it. Would you mind providing your FTP login credentials as well? You only provided your admin login credentials.

Thanks!

Hi I posted them to this discussion. thanks

Hi There,

On which browser that you’re testing usually? I have created a test page using Chrome browser and it seems to be working fine now (see secure note).

Is it possible to create a staging environment by cloning your live site, update X & Cornerstone to the latest versions and test your issues again.

You can refer to our migration guide here (https://theme.co/apex/forum/t/cornerstone-content-builder-migration/126/1).

Thanks!

Hi
New Page creation works. Here is what is not working;

  • When I open pages that I had been working on, changes won’t save
    (I will include links to those on a secure note). I am getting a can’t save message; video here https://www.screencast.com/t/q5fnlENW2
  • Woocommerce products lost all content added via cornerstone. I suspect this is from updating the php version?

THANKS

Hi There,

Thanks for writing in!
I am getting this error when trying to edit the page.

Fatal error: Out of memory (allocated 874512384) (tried to allocate 733184 bytes) in /home/smasha5/public_html/testwordpress/wp-includes/wp-db.php on line 1889

Please confirm if you have increased your PHP memory in the config.php file. If not please do it adding following line to your config file.

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

Also please update your theme to latest version, it may fix your issue.

Thanks

Hello
I checked with my hosting;

He took a look at;
_home/smasha5/public_html/testwordpress/wp-config.php

and saw that our current settings are:
define( ‘WP_MEMORY_LIMIT’, ‘256M’ );
define( ‘WP_MAX_MEMORY_LIMIT’, ‘512M’ );

So I don’t think this is the cause.

I updated the theme and cleared browser cache, also no fix.

I disabled all plugins except CS and still won’t work.

ALSO
When I try to edit the page from the view mode I get an error; [see video here]

Note i have no cache plugins in use right now.

HELP!

Hello There,

Could you please provide which page you have edited and encountered the error? I visited some of your pages, click the “Edit Page” and I could not replicate the issue. I also edited the page in Cornerstone and I was able also.

By the way, please be advised that we have released X 6.0.4 and Cornerstone 3.0.4. It is now available in automatic updates. You can now update to this latest version. This latest release contains fixes for several issues so be sure to check out the changelog (http://theme.co/changelog/).

Tip: After doing the updates, always remember to clear all caches (if you are using WP Rocket, WP SuperCache or W3 Total Cache) when updating so that the code from the latest release is always in use. This will help you to avoid any potential errors.

Please let us know how it goes.

HI
I want to make sure we are on the same page as to what the problems are. Lets enumerate them and refer to each problem by number; that way we are not prone to confusion.

Problem #1)
When i hit the edit button ( this button: ) for a page, such as this one, i get this message.

Fatal error: Out of memory (allocated 876609536) (tried to allocate 839680 bytes) in /home/smasha5/public_html/testwordpress/wp-includes/wp-db.php on line 1889

I was adviced to fix problem # 1 like this:

Please confirm if you have increased your PHP memory in the config.php file. If not please do it adding following line to your config file.

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

It turned out that this was already correctly set. In the conversation that ensued (above) you can see all kinds of details on our server specs, etc.

Problem #2) -Most serious!-
Since I can no longer edit the way described in Problem #1, I must go through the Pages tab on the WP dashboard, then hit “edit with Cornerstone” option for that page and load the CS editor (it may take up to 8 attempts).

Once I reopen a page that I had been working on, for example this one, I can see the content on the editor perfectly, just as you have shown me you too can do . However it is the changes that won’t save. Here is a little video that shows what i see.

Can you please see if you can replicate problem #2

One way to confirm that you can indeed save changes, is, for example, by adding a new section at the top, with just a black background and a gap element (say 300 px?). Please let me know how that went.

Problem #3)
Woocommerce products lost extensive custom content added via cornerstone. I suspect this is from updating the php version?

I post all 3 problems in one thread because I believe they are related, because they all started at exactly the same time. This happened when trying to fix the “The preview was unresponsive after loading” problem, as reported on the very first message of this thread.

Note i have no cache plugins in use right now. I confirm I am on Version 3.0.4 of Cornerstone.

I really need to get back to being able work, and really appreciate the help.

THANK YOU

Hello There,

Thank you for the very detailed information. I went ahead and updated X to the latest version which is 6.0.4. I can confirm that the issue is still present after the update. I would love to get this resolved. Regretfully the given ftp details is no longer working. Could you please give us the updated ftp details so that we can investigate the theme files and hopefully get this resolved once and for all.

Thank you in advance once again.

Hi thanks so much for zeroing in on my issue! I updated the secure note regarding ftp

Were you able to login with the updated ftp info? also, just curious… how does ftp login help with the diagnosis? Thanks!