Restored backup broke Cornerstone

Hello, we tried updating to Pro 6.1.10 and it removed layouts on a few of our websites, so we went back to 5.1.5 using a backup. Now Cornerstone won’t load on any of these sites with the following error:

caught (in promise) TypeError: Cannot read properties of undefined (reading ‘0’)
at app.ed2523f.js:23:95799
at Np (app.ed2523f.js:23:90195)
at npe (app.ed2523f.js:23:95728)
at app.ed2523f.js:23:96713
at app.ed2523f.js:1:651
at app.ed2523f.js:129:8071
at async s0e (app.ed2523f.js:129:8037)

We thought about downloading 5.1.15 again in case some files were missing, but we couldn’t find your versions archives. Any help would be appreciated since this is hindering our team, thank you!

Hi @magikweb,

Thanks for reaching out.
I would suggest you deactivate and delete the Pro completely, and then reinstall it by downloading it from your Themeco Account.

Hope it helps.
Thanks

How can I download 5.1.15?

Hi @magikweb,

You can find the Previous Version in your Themeco Account.

Screenshot 2023-04-10 210924

Hope it helps.
Thanks

5.1.5 worked! Thank you!

For the 6.1.10 update (from 5.1.5), is there a guide we need to follow to avoid losing the layouts?
It’s weird that some sites were totally OK while others lost their layouts.

Hey Magik,

I suggest that you find a backup for Pro 5 because it might affect some database data. If the layout content is gone. You’ll need to do the following.

1.) Restore the Pro5 version.
2.) define("CS_MIGRATE_UNTYPED_USE_RAW_UPDATE", true); Add that to wp-config.php after the php tags and before wp-settings. This is available in Pro 6.2.0+
3.) Upload or update to Pro 6.
4.) If your layout content is fine, great you are done. You can remove the line in #2.
5.) If you are not okay. Restore Pro5 and talk to Themeco or investigate what is wrong after migrating to Pro 6.

Hope that helps.

Thank you, we will try that and get back to you with the results!

Hey Magik,

Great and let us know how it goes.

Thank you.

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