So we’ve migrated a website from one host to another and it seems that the site has broken after migration leaving a series of code on the home page. What’s worse is that when we compared the source/target sites, it seems the target site is missing some Custom Post Type data that didn’t get migrated.
These are what’s missing:
The site was developed by someone else–long time passing–and we’re out of luck on where to begin to find the source of the ‘broken’ custom post types not showing up. All of the data (in the database) is there.
When we attempted to look at the frontend after the migration, the site completely broke. The migration was a straightforward SFTP/Dbase backup migration. We know that a lot of the issue is caused by the functions.php. Just to give you a piece of how this thing is coded:
So we are figuring that we will have to rewrite all of this to get things to load properly on the site and have made an attempt to redo how the scripts are to load using
function add_scripts() {
wp_enqueue_script('jquery', get_template_directory_uri() . '/js/node_modules/jquery/dist/jquery.min.js', array('jquery'),'1', true);
wp_enqueue_script('angular', get_template_directory_uri() . '/js/node_modules/angular/angular.min.js', array('jquery'),'1', true);
}
and the like, but we don’t see any of the scripts loading in the frontend (yes, we are loading the correct parent theme, the files are in their respective locations).
So I could use some guidance on how to proceed to find a way to make the site functional. The new host said that they did successfully migrate the site but the site itself is just old and needs to be updated.
Thank you.