I upgraded my Pro template on a site and now Cornerstone makes problems

I cant edit my content anymore. In error console i also get:
https://[my site url]/wp-json/themeco/data/document?_locale=user 500 (Internal Server Error)

We have decided to roll back from a backup and we will rethink if Pro is the way to go in the future. This was a scaring experience that we was not able to edit our site suddenly.

We did go through all these steps… but it didn’t work:

Hello @mestmobil,

Thanks for writing to us.

I tried to access your site dashboard but the given login details are not working I would suggest you please recheck and send us again. As per your given error, it seems that the Rest API is not working properly I would suggest you please set the WordPress permalink as Post Name and recheck it. If it doesn’t work for you please contact your hosting provider and please ask your web host to support WordPress Rest API or whitelist the URL.

Thanks

Thx for looking at it. I had to roll back to a previous backup, since we had urgent changes in the website and we couldn’t edit it. We will try and look into the WP REST API… but we are already calling wp-json for other purposes without issues.

However we are going from PRO ver. 4.1.5 to the newest. And i don’t know if that info helps.

On this site unfortunately there is no staging option, so I have to somehow get a staging up and running, so we can test your solution and update the site in the future. To be continued…

Hello @mestmobil,

Yes, you can whitelist the URL given and if the issue persists please let us know your staging server details so that we can check it on our end.

Thanks

The error was in a totally different place…
I had this javascript in my head tag and it caused the problem:

if (location.protocol != 'https:')
{
 location.href = 'https:' + window.location.href.substring(window.location.protocol.length);
}

I removed it and now all is good

Hey @mestmobil,

It is good to know that you have resolved your issue already. Thanks for letting us know.

Cheers.

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