Cornerstone preview not working (Pro 2.0)

Hi X’ers,

I’m running Pro 2.0 on a multisite and Cornerstone isn’t loading the preview properly. Domains are mapped with the Domain Mapping plugin from WPMUDEV. Using W3 Total Cache for caching. This is from the Google console:

Object { error: true, message: “Xfr request made by preview timed out”, ts: “ts15200156080461”, params: {…}, … }

Object { state: {…}, intent: {…}, router: {…}, data: {}, resolvedModels: {…}, queryParams: {}, promise: {…}, error: undefined, params: {…}, handlerInfos: […], … }
cs.js:617:9
TypeError: stack is undefined
[Meer info]
cs-vendor.js:19456:1
Fout bij brontoewijzing: request failed with status 404
Bron-URL: https://www.sitename.nl/wp-content/themes/pro/cornerstone/assets/dist-app/css/cs.css?ver=3.0.0
Brontoewijzings-URL: cs.css.map
[Meer info]
Fout bij brontoewijzing: request failed with status 404
Bron-URL: https://www.sitename.nl/wp-content/themes/pro/cornerstone/assets/dist-app/js/cs.js?ver=3.0.0
Brontoewijzings-URL: cs.map
[Meer info]
Fout bij brontoewijzing: request failed with status 404
Bron-URL: https://www.sitename.nl/wp-content/themes/pro/cornerstone/assets/dist-app/js/cs-vendor.js?ver=3.0.0
Brontoewijzings-URL: cs-vendor.map

Any idea how to solve this?

Thanks,
Menno

Hey there,

Would you mind providing us with login credentials so we can take a closer look? Please provide following information:

Set it as Secure Note

  • Link to your site
  • WordPress Admin username / password
  • FTP credentials

All the best!

Hi Alexander,

Thanks for your response, just added a secure note.

Cheers, Menno

Hi There,

Upon checking, I see that your memory is set to 256MB, could you please try adding the following code into your wp-config.php file.

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

You can add it before the line:

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

Also I see that you’re using the latest version of PHP which is v7.2.2. If possible try switching to v7.1.x to avoid incompatibility issues.

Thanks!

Hi Mldashana,

Thanks. I added the lines and switched back to PHP 7.1. The preview is showing but i takes very long… We’re running on a VPS. Also sometimes only the header and footer are loading and the content is missing in the preview…

Also get this message often:

Hi there,

I’ve checked your site and I’ve not encountered any of the errors you’ve mentioned. I tried a handful of pages on both the main and sub site. Have you cleared the cache recently? That could have make it start working again after an update.

Hi Alexander,

On the child site i get these errors:

cs-vendor.js?ver=3.0.1:19456 Uncaught TypeError: Cannot read property ‘indexOf’ of undefined

Uncaught ReferenceError: ajaxurl is not defined

Also Cornerstone loads the page, then reloads and takes 24 seconds (!).

Hi again,

I’ve tried performing some more actions on your child site. I’ve tried editing existing pages, creating a test page, performing different actions in the builder, saving, and re-loading. I’ve still not encountered the issues you’re describing (including the increased load time)

I believe this could be related to the cache being stale. Another idea is that you could try testing for a plugin conflict. You can do this by deactivating all third party plugins, and seeing if the problem remains. This includes network activated plugins. 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.

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