Broken images
Broken Images after cloning
**Steps to fix when images are broken after cloning a site.**
This happens because NSCloner does an initial Search & Replace, and replaces the links to the images that belong to Content-hub which shouldn’t change.
- Go to WPMigrate: https://bupadentalstg.boylenplus.com/wp-admin/network/settings.php?page=wp-migrate-db-pro#migrate/1
- Select the Saved Profile: `Fix Broken Images`: https://bupadentalstg.boylenplus.com/wp-admin/network/settings.php?page=wp-migrate-db-pro#migrate/1
- Multisite section
- Select the Subsite affected
- Database section
- Tables:
Select only 2 tables:
wp_12_postmeta, wp_12_posts where 12 corresponds to the ID of the site. The ID can be looked up here: https://bupadentalstg.boylenplus.com/wp-admin/network/sites.php - Backup: Select this option Backup only tables selected for migration
- Post Types: All Post Types
- Tables:
- Custom Find & Replace section
- Replace 2 bits
- content-hub.XXX.bupadentalstg.boylenplus.com/wp-content/uploads/sites/YYY/sites/3/
- XXX = name of site
- YYY = ID of site
- Replace 2 bits
- Click PREVIEW CHANGES
- On the next screen, Click APPLY