Hi!
One of my clients was forced to update to new Pro due to WP issues. Some layouts appears to be empty. When those URLs are visited, the defaults layouts get loaded.
Details in the secure note.
What can be done to get the layouts back?
Thanks!
Hi!
One of my clients was forced to update to new Pro due to WP issues. Some layouts appears to be empty. When those URLs are visited, the defaults layouts get loaded.
Details in the secure note.
What can be done to get the layouts back?
Thanks!
If you see the elements in the post meta of __cornerstone_data
for the given post then it’s probably an HTML parsing issue that I can help you with.
If it’s empty and it wasn’t empty before, then it’s part of the post type change issue. I was able to fix a One site with a raw SQL migration that will be an option in the next release, which will bypass WordPress and thus WordPress plugins. I’ll give you notes on how to do the alternative migration, but you’ll need to rollback to Pro5 data if the data is gone. It’s really disappointing splitting a post type into numerous types causes so many issues with plugins, because it’s an otherwise super useful update.
Hi @charlie!
Unfortunately, I don’t have access to PHPMyAdmin for that site at this moment. I will get it.
I Activated the Under Construction plugin, activated the stock theme, deleted Pro 6 and uploaded Pro 5. Then I applied the fix on the line 260 and activated it. Unfortunately, the whole site was broken and even the WP backend wasn’t loading properly. Some black bars started to appear all over the backend.
I then restored the server backup to day before, but the newly installed Under construction plugin is still activated somehow, even after restoring the files and the database from the server.
When I go to the wp-admin, it reloads on my attempt to log-in. I cannot get in and and I cannot get the site back.
Is there anything else I could try?
This website has millions of daily visits and every second lost is very bad. I wasn’t expecting all safe measures to fail.
Thanks!
EDIT: after restoring another day into past, The Under Construction plugin is gone, and I was able to log-in. This must be a caching issue. Single and Archive Layouts are still an issue.
EDIT2: I just noticed that updating to Pro 6 on the staging copy went well so I am now downloading templates from there and creating new ones on the live site and applying them to places where they are missing.
EDIT3: Unfortunately, many images are lost on posts and the Media Library is broken.
Im aware that I am bumping the thread back in queue, but I need to report what is going on with my struggle to get the site back.
I just restored the server backup to the point where Pro is 5.1.5 and WordPress is 6.1.1. To my surprise, the layouts are broken even there! I’ve never seen anything like that. A restore usually gets the prior state back as it was. Any idea what might be going on?
Thanks!
Final edit:
I managed to restore a much older backup and now I got both the image gallery and the layouts working on Pro 5.1.5+WP 6.1. I also applied the fix on the line 260. Now the original question remains about successfully updating Pro. Thanks!
Hello @Misho,
Can we clone your site to a staging server or maybe we may have permission to clone the site to our local testing server so we can check for updates on why it is not working? I am thinking of cloning your site locally and doing the updates to WordPress 6.2 and Pro 6.1.10 versions.
Cheers.
Hi!
This site has a lot of personal information of sensitive nature. You can clone it but please use precautions and delete it once you are done.
Unfortunately, all safety measures with this website have failed. Reverting Pro and applying the fix before updating to WP has failed. Restoring the server backup to the time when WP 6.1 was active failed as well: pages were broken.
I managed to restore a very old backup causing a lot of data loss. That resorted the front-end, but Cornerstone is still broken and pages are undatable. I need to get to the bottom of this issue and find out how is this possible. What can cause Cornerstone and the website to fall apart so severely, even after restoring it. Does this mean that Siteground server backups are failing? It has never happened until now, with any Pro website.
Hey Misho
It’s possible the backup is not restoring properly if your content is gone. WP import and export software is hit or miss in my experience. Was this through their UI? Do you have a raw database dump of that site? Even if the pages were broken did you have data in postmeta?
It’s possible you might be in an in between state if the backup to 5 was not working for layouts too. See the bottom of this guide about a downgrade. If the migration from 5 to 6 is not going well we offer another solution there too, but you need to be in a working pro5 state first.
Thanks @charlie!
Cornerstone was still broken but I re-uploaded 5.1.5 and that solved it. So this now seems as fully operational Pro 5. Thanks for the docs link. I can attempt performing the update.
If I understood it well, the idea is to edit the wp-config.php
file by adding define("CS_MIGRATE_UNTYPED_USE_RAW_UPDATE", true);
to it? It is not 100% clear to me because wp-settings.php
is also mentioned but I don’t understand in what context.
Thanks!
Okay great!
Yeah adding that early in the file is what you want to do. For more context and I’ll update the docs too to make this clearer. They’ll be a line in wp-config
that you need to be before. The migration runs very early in the process so that the rest of the request can work properly with the new post types. Definitely run in a staging if you are having issues too.
// This is definition is created before the wp-settings line
define("CS_MIGRATE_UNTYPED_USE_RAW_UPDATE", true);
/** Sets up WordPress vars and included files. */
require_once ABSPATH . 'wp-settings.php';
This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.