Critical Bug with new version of Cornerstone

Updated theme to the latest version.

Using cornerstone Version 3.4.6 - everything works fine but we get this notice on console:

wp-polyfill.min.js:1 @babel/polyfill is loaded more than once on this page. This is probably not desirable/intended and may have consequences if different versions of the polyfills are applied sequentially. If you do need to load the polyfill more than once, use @babel/polyfill/noConflict instead to bypass the warning.

However using latest version of cornerstone - we cannot access any pages, and the page is stuck whilst loading. We also get these errors on console:

Uncaught Error: only one instance of babel-polyfill is allowed
    at Object.<anonymous> (cs-vendor.js:35)
    at Object.1.2 (cs-vendor.js:38)
    at c (cs-vendor.js:32)
    at e (cs-vendor.js:33)
    at cs-vendor.js:34
cs-vendor.js:12 Uncaught Error: Could not find module `ember-resolver` imported from `tco-app/resolver`
    at cs-vendor.js:12
    at l (cs-vendor.js:12)
    at o.findDeps (cs-vendor.js:24)
    at l (cs-vendor.js:12)
    at o.findDeps (cs-vendor.js:24)
    at l (cs-vendor.js:12)
    at requireModule (cs-vendor.js:6)
    at cs.js:4203
cs.js?ver=3.5.5:113 Preview timeout
(anonymous) @ cs.js?ver=3.5.5:113
e.invoke @ cs-vendor.js?ver=3.5.5:1053
e.flush @ cs-vendor.js?ver=3.5.5:1046
e.flush @ cs-vendor.js?ver=3.5.5:1057
e._end @ cs-vendor.js?ver=3.5.5:1111
e.end @ cs-vendor.js?ver=3.5.5:1067
e._runExpiredTimers @ cs-vendor.js?ver=3.5.5:1118
jquery-migrate.min.js?ver=1.4.1:2 JQMIGRATE: Migrate is installed, version 1.4.1
cs-vendor.js?ver=3.5.5:35 Uncaught Error: only one instance of babel-polyfill is allowed
    at Object.<anonymous> (cs-vendor.js?ver=3.5.5:35)
    at Object.1.2 (cs-vendor.js?ver=3.5.5:38)
    at c (cs-vendor.js?ver=3.5.5:32)
    at e (cs-vendor.js?ver=3.5.5:33)
    at cs-vendor.js?ver=3.5.5:34
    at cs.js?ver=3.5.5:113
    at e.invoke (cs-vendor.js?ver=3.5.5:1053)
    at e.flush (cs-vendor.js?ver=3.5.5:1046)
    at e.flush (cs-vendor.js?ver=3.5.5:1057)
    at e._end (cs-vendor.js?ver=3.5.5:1111)
(anonymous) @ cs-vendor.js?ver=3.5.5:35
1.2 @ cs-vendor.js?ver=3.5.5:38
c @ cs-vendor.js?ver=3.5.5:32
e @ cs-vendor.js?ver=3.5.5:33
(anonymous) @ cs-vendor.js?ver=3.5.5:34
(anonymous) @ cs.js?ver=3.5.5:113
e.invoke @ cs-vendor.js?ver=3.5.5:1053
e.flush @ cs-vendor.js?ver=3.5.5:1046
e.flush @ cs-vendor.js?ver=3.5.5:1057
e._end @ cs-vendor.js?ver=3.5.5:1111
_boundAutorunEnd @ cs-vendor.js?ver=3.5.5:1063
characterData (async)
a @ cs-vendor.js?ver=3.5.5:1035
e._scheduleAutorun @ cs-vendor.js?ver=3.5.5:1123
e._end @ cs-vendor.js?ver=3.5.5:1111
_boundAutorunEnd @ cs-vendor.js?ver=3.5.5:1063
characterData (async)
a @ cs-vendor.js?ver=3.5.5:1035
e._scheduleAutorun @ cs-vendor.js?ver=3.5.5:1123
e._end @ cs-vendor.js?ver=3.5.5:1111
_boundAutorunEnd @ cs-vendor.js?ver=3.5.5:1063
characterData (async)
a @ cs-vendor.js?ver=3.5.5:1035
e._scheduleAutorun @ cs-vendor.js?ver=3.5.5:1123
e._end @ cs-vendor.js?ver=3.5.5:1111
_boundAutorunEnd @ cs-vendor.js?ver=3.5.5:1063
characterData (async)
a @ cs-vendor.js?ver=3.5.5:1035
e._scheduleAutorun @ cs-vendor.js?ver=3.5.5:1123
e._end @ cs-vendor.js?ver=3.5.5:1111
_boundAutorunEnd @ cs-vendor.js?ver=3.5.5:1063
characterData (async)
a @ cs-vendor.js?ver=3.5.5:1035
e._scheduleAutorun @ cs-vendor.js?ver=3.5.5:1123
e._end @ cs-vendor.js?ver=3.5.5:1111
_boundAutorunEnd @ cs-vendor.js?ver=3.5.5:1063
characterData (async)
a @ cs-vendor.js?ver=3.5.5:1035
e._scheduleAutorun @ cs-vendor.js?ver=3.5.5:1123
e._ensureInstance @ cs-vendor.js?ver=3.5.5:1121
e.schedule @ cs-vendor.js?ver=3.5.5:1082
(anonymous) @ cs-vendor.js?ver=3.5.5:2265
x @ cs-vendor.js?ver=3.5.5:2837
z @ cs-vendor.js?ver=3.5.5:2836
C @ cs-vendor.js?ver=3.5.5:2837
(anonymous) @ cs-vendor.js?ver=3.5.5:2856
(anonymous) @ cs.js?ver=3.5.5:130
i @ jquery.js?ver=1.12.4-wp:2
fireWith @ jquery.js?ver=1.12.4-wp:2
x @ jquery.js?ver=1.12.4-wp:4
c @ jquery.js?ver=1.12.4-wp:4
XMLHttpRequest.send (async)
send @ jquery.js?ver=1.12.4-wp:4
ajax @ jquery.js?ver=1.12.4-wp:4
(anonymous) @ cs.js?ver=3.5.5:123
(anonymous) @ cs-vendor.js?ver=3.5.5:2856
e @ cs-vendor.js?ver=3.5.5:2856
requestHTML @ cs.js?ver=3.5.5:115
generateIframe @ cs.js?ver=3.5.5:106
e._run @ cs-vendor.js?ver=3.5.5:1112
(anonymous) @ cs-vendor.js?ver=3.5.5:1102
setTimeout (async)
setTimeout @ cs-vendor.js?ver=3.5.5:1035
e.debounce @ cs-vendor.js?ver=3.5.5:1101
e.debounce @ cs-vendor.js?ver=3.5.5:252
generateIframeDebounce @ cs.js?ver=3.5.5:95
(anonymous) @ cs.js?ver=3.5.5:113
e.invoke @ cs-vendor.js?ver=3.5.5:1053
e.flush @ cs-vendor.js?ver=3.5.5:1046
e.flush @ cs-vendor.js?ver=3.5.5:1057
e._end @ cs-vendor.js?ver=3.5.5:1111
e.end @ cs-vendor.js?ver=3.5.5:1067
e._runExpiredTimers @ cs-vendor.js?ver=3.5.5:1118
cs-vendor.js?ver=3.5.5:12 Uncaught Error: Could not find module `ember-resolver` imported from `tco-app/resolver`
    at cs-vendor.js?ver=3.5.5:12
    at l (cs-vendor.js?ver=3.5.5:12)
    at o.findDeps (cs-vendor.js?ver=3.5.5:24)
    at l (cs-vendor.js?ver=3.5.5:12)
    at o.findDeps (cs-vendor.js?ver=3.5.5:24)
    at l (cs-vendor.js?ver=3.5.5:12)
    at requireModule (cs-vendor.js?ver=3.5.5:6)
    at cs.js?ver=3.5.5:4203
    at cs.js?ver=3.5.5:113
    at e.invoke (cs-vendor.js?ver=3.5.5:1053)

Hello @neodjandre,

Thanks for writing in! Could you please update to the latest versions?
Our latest versions are:

  • X theme 6.5.6
  • Cornerstone 3.5.5

This latest release contains fixes for several issues so be sure to check out the changelog (http://theme.co/changelog/).

_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.-

​We also 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', '256M' );
define( 'WP_MAX_MEMORY_LIMIT', '512M' );

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

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

Hello,

I have updated to the latest versions when I reported this issue. Do you think this could be a PHP memory limit? I will need to change a few server settings as I am running NGINX

this is a problem with Cornerstone 3.5.5 as if I use the old version of Cornerstone everything works fine…

Hello @neodjandre,

Would you mind providing us the url of your site with login credentials so we can take a closer look at your settings? This is to ensure that we can provide you with a tailored answer to your situation.

To do this, you can create a secure note with the following info:
– Link to your site
– WordPress Admin username / password

To know how to create a secure note, please check this out: https://theme.co/apex/forum/t/how-to-get-support/288

Thank you.

hello Ruenel,

Unfortunately this is a production site and cannot provide login details… could you not locate the problem from the console error message? I will try to create a beta site to recreate the issue but this might take some time.

Hello @neodjandre,

The error in your site may only appear when you edit in Cornerstone. We already tried to replicate the issue in our local testing servers and we could not. It is best that you create a staging site so that we can check it there.

Thank you in advance.

hmmm… this is very strange. Our beta site works fine with the same plugins. The production site gives the same error. If we downgrade to Cornerstone 3.4.6 then it works fine on the production site.

Additionally we tried this in Safari browser and getting the same errors in the console, in case it helps:

Uncaught Error: only one instance of babel-polyfill is allowed
[Error] Error: Could not find module ember-resolver imported from tco-app/resolver

Just to clarify, the error only appears when we click on the “Edit Page” button

Hey @neodjandre,

There might be a problem with updating themes and plugins in your WordPress install. Files might have not been overwritten during the update process. Please try manually updating X and Cornerstone. For instructions, please see https://theme.co/apex/forum/t/setup-updating-your-themes-and-plugins/62

You might also be having trouble with Permalinks. I’ve never encountered this issue even in Nginx so there could be something in your server setup causing this. Regretfully, we cannot investigate server setups.

I just wanted to point out that when you visit the Edit Page link in the admin bar, you’re just accessing the link to the page builder.

Also try upgrading your PHP version to see if that helps.

Thanks.

Hello Christian,

We have run several tests and it seems to be an issue with the new version of cornerstone. As I mentioned, cornerstone 3.4.6 works fine for us, so we are using that.

I wonder what critical changes were made from 3.4.6 to 3.5.5

Hello @neodjandre,

You can check our changelog instead:

We recommend that you clone your site and set it up in another server or other 3rd party staging site services so that you can compare.

Thanks.

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