Stuck at Cornerstone loading screen

When i try to edit a page using Cornerstone it gets stuck on loading screen. Same happens when i try to edit templates with X theme.

Wordpress, Theme and all plugins are up to date.

Thats what the console says:

SyntaxError: invalid range in character class cs-vendor.js:5172:545
[1087]</</<
http://www.jaimefrancespsicologo.com/wp-content/plugins/cornerstone/assets/dist-app/js/cs-vendor.js:5172:546
[1087]</</<
http://www.jaimefrancespsicologo.com/wp-content/plugins/cornerstone/assets/dist-app/js/cs-vendor.js:5166:610
[1087]</<
http://www.jaimefrancespsicologo.com/wp-content/plugins/cornerstone/assets/dist-app/js/cs-vendor.js:5166:555
[1087]<
http://www.jaimefrancespsicologo.com/wp-content/plugins/cornerstone/assets/dist-app/js/cs-vendor.js:5166:542
r
http://www.jaimefrancespsicologo.com/wp-content/plugins/cornerstone/assets/dist-app/js/cs-vendor.js:3194:1
r/<
http://www.jaimefrancespsicologo.com/wp-content/plugins/cornerstone/assets/dist-app/js/cs-vendor.js:3195:8
[1224]</<
http://www.jaimefrancespsicologo.com/wp-content/plugins/cornerstone/assets/dist-app/js/cs-vendor.js:8342:1166
o.prototype.exports
http://www.jaimefrancespsicologo.com/wp-content/plugins/cornerstone/assets/dist-app/js/cs-vendor.js:19:7
o.prototype._reify
http://www.jaimefrancespsicologo.com/wp-content/plugins/cornerstone/assets/dist-app/js/cs-vendor.js:22:26
o.prototype.reify
http://www.jaimefrancespsicologo.com/wp-content/plugins/cornerstone/assets/dist-app/js/cs-vendor.js:21:18
o.prototype.exports
http://www.jaimefrancespsicologo.com/wp-content/plugins/cornerstone/assets/dist-app/js/cs-vendor.js:18:79
o.prototype._reify
http://www.jaimefrancespsicologo.com/wp-content/plugins/cornerstone/assets/dist-app/js/cs-vendor.js:22:26
o.prototype.reify
http://www.jaimefrancespsicologo.com/wp-content/plugins/cornerstone/assets/dist-app/js/cs-vendor.js:21:18
o.prototype.exports
http://www.jaimefrancespsicologo.com/wp-content/plugins/cornerstone/assets/dist-app/js/cs-vendor.js:18:79
requireModule
http://www.jaimefrancespsicologo.com/wp-content/plugins/cornerstone/assets/dist-app/js/cs-vendor.js:6:101
_extractDefaultExport
http://www.jaimefrancespsicologo.com/wp-content/plugins/cornerstone/assets/dist-app/js/cs-vendor.js:10525:116
l
http://www.jaimefrancespsicologo.com/wp-content/plugins/cornerstone/assets/dist-app/js/cs-vendor.js:10494:13
n
http://www.jaimefrancespsicologo.com/wp-content/plugins/cornerstone/assets/dist-app/js/cs-vendor.js:2524:7
resolve
http://www.jaimefrancespsicologo.com/wp-content/plugins/cornerstone/assets/dist-app/js/cs-vendor.js:1021:38
p</e.prototype.resolve/a<
http://www.jaimefrancespsicologo.com/wp-content/plugins/cornerstone/assets/dist-app/js/cs-vendor.js:905:16
p</e.prototype.resolve
http://www.jaimefrancespsicologo.com/wp-content/plugins/cornerstone/assets/dist-app/js/cs-vendor.js:900:195
p</e.prototype.resolve
http://www.jaimefrancespsicologo.com/wp-content/plugins/cornerstone/assets/dist-app/js/cs-vendor.js:909:46
r</e.prototype.factoryFor
http://www.jaimefrancespsicologo.com/wp-content/plugins/cornerstone/assets/dist-app/js/cs-vendor.js:875:7
s/<
http://www.jaimefrancespsicologo.com/wp-content/plugins/cornerstone/assets/dist-app/js/cs-vendor.js:880:108
s
http://www.jaimefrancespsicologo.com/wp-content/plugins/cornerstone/assets/dist-app/js/cs-vendor.js:880:84
c/<
http://www.jaimefrancespsicologo.com/wp-content/plugins/cornerstone/assets/dist-app/js/cs-vendor.js:891:68
c
http://www.jaimefrancespsicologo.com/wp-content/plugins/cornerstone/assets/dist-app/js/cs-vendor.js:890:8
u</e.prototype.create
http://www.jaimefrancespsicologo.com/wp-content/plugins/cornerstone/assets/dist-app/js/cs-vendor.js:894:21
s/<
http://www.jaimefrancespsicologo.com/wp-content/plugins/cornerstone/assets/dist-app/js/cs-vendor.js:883:101
s
http://www.jaimefrancespsicologo.com/wp-content/plugins/cornerstone/assets/dist-app/js/cs-vendor.js:880:84
r</e.prototype.lookup
http://www.jaimefrancespsicologo.com/wp-content/plugins/cornerstone/assets/dist-app/js/cs-vendor.js:868:238
lookup
http://www.jaimefrancespsicologo.com/wp-content/plugins/cornerstone/assets/dist-app/js/cs-vendor.js:2317:144
_getHandlerFunction/<
http://www.jaimefrancespsicologo.com/wp-content/plugins/cornerstone/assets/dist-app/js/cs-vendor.js:2087:20
x</e.prototype.fetchHandler
http://www.jaimefrancespsicologo.com/wp-content/plugins/cornerstone/assets/dist-app/js/cs-vendor.js:2783:237
get
http://www.jaimefrancespsicologo.com/wp-content/plugins/cornerstone/assets/dist-app/js/cs-vendor.js:2796:124
N</n.prototype.applyToState
http://www.jaimefrancespsicologo.com/wp-content/plugins/cornerstone/assets/dist-app/js/cs-vendor.js:2834:43
L
http://www.jaimefrancespsicologo.com/wp-content/plugins/cornerstone/assets/dist-app/js/cs-vendor.js:2837:733
transitionByIntent
http://www.jaimefrancespsicologo.com/wp-content/plugins/cornerstone/assets/dist-app/js/cs-vendor.js:2876:344
B
http://www.jaimefrancespsicologo.com/wp-content/plugins/cornerstone/assets/dist-app/js/cs-vendor.js:2861:367
handleURL
http://www.jaimefrancespsicologo.com/wp-content/plugins/cornerstone/assets/dist-app/js/cs-vendor.js:2877:39
_doURLTransition
http://www.jaimefrancespsicologo.com/wp-content/plugins/cornerstone/assets/dist-app/js/cs-vendor.js:2075:83
handleURL
http://www.jaimefrancespsicologo.com/wp-content/plugins/cornerstone/assets/dist-app/js/cs-vendor.js:2075:8
startRouting
http://www.jaimefrancespsicologo.com/wp-content/plugins/cornerstone/assets/dist-app/js/cs-vendor.js:2069:80
startRouting
http://www.jaimefrancespsicologo.com/wp-content/plugins/cornerstone/assets/dist-app/js/cs-vendor.js:964:586
didBecomeReady
http://www.jaimefrancespsicologo.com/wp-content/plugins/cornerstone/assets/dist-app/js/cs-vendor.js:983:209
c</e.prototype.invoke
http://www.jaimefrancespsicologo.com/wp-content/plugins/cornerstone/assets/dist-app/js/cs-vendor.js:800:153
c</e.prototype.flush
http://www.jaimefrancespsicologo.com/wp-content/plugins/cornerstone/assets/dist-app/js/cs-vendor.js:789:147
l</e.prototype.flush
http://www.jaimefrancespsicologo.com/wp-content/plugins/cornerstone/assets/dist-app/js/cs-vendor.js:803:13
f</e.prototype.end
http://www.jaimefrancespsicologo.com/wp-content/plugins/cornerstone/assets/dist-app/js/cs-vendor.js:815:7
f</e.prototype._run
http://www.jaimefrancespsicologo.com/wp-content/plugins/cornerstone/assets/dist-app/js/cs-vendor.js:854:113
f</e.prototype._join
http://www.jaimefrancespsicologo.com/wp-content/plugins/cornerstone/assets/dist-app/js/cs-vendor.js:853:338
f</e.prototype.join
http://www.jaimefrancespsicologo.com/wp-content/plugins/cornerstone/assets/dist-app/js/cs-vendor.js:824:8
st.join
http://www.jaimefrancespsicologo.com/wp-content/plugins/cornerstone/assets/dist-app/js/cs-vendor.js:1749:75
st.bind/<
http://www.jaimefrancespsicologo.com/wp-content/plugins/cornerstone/assets/dist-app/js/cs-vendor.js:1753:8
i
http://www.jaimefrancespsicologo.com/wp-includes/js/jquery/jquery.js:2:27444
fireWith
http://www.jaimefrancespsicologo.com/wp-includes/js/jquery/jquery.js:2:28213
ready
http://www.jaimefrancespsicologo.com/wp-includes/js/jquery/jquery.js:2:30004
K
http://www.jaimefrancespsicologo.com/wp-includes/js/jquery/jquery.js:2:30366

Thx for your attention,
Jaime.

Hi Jaime,

Please double check the following:

  1. Ensure everything is up to date according to our version compatibility list here. Please follow the best practices when updating your theme and plugins. Click here for more information.
  2. If you’re using a CDN, please clear the CDN’s cache and disable optimization services.
  3. Test for a plugin conflict. You can do this by deactivating all third-party plugins, and see 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.
  4. Remove custom CSS and Javascript from the options or Child Theme and test the case.
  5. Reset your htaccess file by renaming it to .htaccess-bak. Then in WP Admin Menu, go to Settings > Permalinks and just click the Save Changes button.
  6. Increase the PHP Memory Limit of your server. Click here for more detailed information and how to increase the PHP memory limit.

If this didn’t help, then please provide us with WordPress Dashboard login details in a “Secure Note” so we can investigate this issue.

Thanks.

All done. Cant make it work.

I have updated the Secure Note.

Thanks.

Hello @Akep1234,

Thanks for sharing the login details.

Upon login I created a test page in draft mode and tried to edit the page in Cornerstone. However, I am getting following error message:

Uncaught SyntaxError: Invalid regular expression: /[À-Ãƞ][€-¿]|[Ã -ï][€-¿]{2}|[ð-÷][€-¿]{3}/: Range out of order in character class
```
I suggest you to please take a look at following ticket as this seems to be a issue with hosting company. 

https://theme.co/apex/forum/t/contents-of-page-appear-to-be-invisible/37770/22?u=paul.r

Please let us know how it goes.

Thanks.

Hi,

Thats the response of my hosting provider:

"Hola Jaime,

te he desactivado el ModSecurity por si hubiera alguna regla de seguridad que interfiera con el theme al ejecutar algĂșn cambio, serĂ­a lo Ășnico en que pudiera interferir el hosting con el theme.

Un saludo"

That didnt fix anything. The problem is still there. Any idea?

Hi @Akep1234

There is an encoding error related to this file:

/cornerstone/assets/dist-app/js/cs-vendor.js

This is how that exact line should appear:

but this is how it appears on your website:

that’s a different set of character, that’s what you need to report to your web host, that’s something related to how the server loads this file, something wrong with the encoding of this file on the server.

Thanks.

Hi guys,

More info from my web host support:
"Hola Jaime,

en el servidor no ha habido ningĂșn cambio de codificaciĂłn, cuando aparece SyntaxError es que hay algĂșn error en el cĂłdigo, (error de sintaxis) y hace ademĂĄs por lo que me comentas al js, eso el servidor no lo modifica, en todo caso como te comentaba, pudiera ser que una regla de seguridad le afectara, pero me comentas que incluso desactivado el error persiste."

I have been able to load a previous backup of my web. All works perfectly fine till i update Cornerstone. With Cornerstone 3.0.4. all works perfect. That seems to be the problem, but dont know why and how to fix it. Seems like last version of Cornerstone crashes with my web.

I need help with this. My web is in a stable version for now, in case u want to do any test.

Thanks.

Hi Jaime,

While the issue: SyntaxError: invalid range in character class cs-vendor.js:5172:545: is gone now,

The version of X (6.2.5) and Cornerstone (3.0.4) you have is not compatible. this will lead to another issue like it has now: Uncaught TypeError: Cannot read property 'action' of undefined

I advise that you re-install the X theme to make sure, it is clean (from corrupted files).

You can follow the Manual X Update Via FTP guide provided here, so you can avoid deactivating the X theme. The guide says for updating but the same method can be followed for re-installing.

You can download a clean copy of x.zip file from the Apex Dashboard.

After you reinstall the X theme, deactivate and delete your Cornerstone (3.0.4), then navigate to X > Validation wait for a few seconds and X will reinstall an updated version of Cornerstone for you.

Another thing, all your X extensions are outdated, please update those as well.

To update the Extensions to the version that is supported by the theme:

- Ensure your theme is validated so Extensions can be installed automatically
- Deactivate and delete the extensions, from the plugins panel.
- On the X > Validation > Extensions locate and install the extensions that you need.
- Visit "Plugins" panel in your Dashboard to activate the newly installed version.

Because all of the plugin settings are stored in the database, and because version 2.x will migrate settings from older versions, its safe to use this method of deleting the previous version. But always keep a backup of your entire site just to be safe.

You can check what are the latest supported versions from here.

Remember to clear all your caching features (plugin, server-side, CDN, and browser’s cache) after updating so that the code from the latest release is always in use. This will help you to avoid any potential errors.

If the issue persists after this updates, please contact your hosting and ask how you can upgrade the PHP version to 7.0 or 7.1.

Let us know how it goes,
Cheers!

Hi guys,

After testing all the things u asked and a lot more, finally i upgraded the PHP version to 7.0 and everything its working fine!

Seems like the problem is solved.

Thanks!

1 Like

Glad to hear that :slight_smile:

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