I would use https://interconnectit.com/products/search-and-replace-for-wordpress-databases/ for a better search and replace.
Though I also recommend using Local by Flywheel instead of MAMP for WP local sites, since it comes with wp-cli and easily lets you change PHP versions 🙂
Thanks, Mika. Those both look great… actually downloaded & setup Local by Flywheel and I’m liking it so far.
One thing that’s weird, though… I’ve deactivated AND removed both the DreamSpeed and DreamObjects plugins in my local install. I’ve use the “Search and Replace” plugin to look for instances of “cdn.thervgeeks.com” and replaced them with my local dev URL. But when I view the local site, the images aren’t showing… and references to the images are still using img tags that look like this:
<img src="https://i1.wp.com/thervgeeks.dev/wp-content/uploads/2017/02/icicles.jpg?resize=500%2C392" alt="" class="alignright size-medium wp-image-5648" srcset="https://i1.wp.com/thervgeeks.dev/wp-content/uploads/2017/02/icicles.jpg?resize=800%2C628 800w, https://i1.wp.com/thervgeeks.dev/wp-content/uploads/2017/02/icicles.jpg?resize=768%2C603 768w, https://i1.wp.com/thervgeeks.dev/wp-content/uploads/2017/02/icicles.jpg?resize=600%2C471 600w, https://i1.wp.com/thervgeeks.dev/wp-content/uploads/2017/02/icicles.jpg?resize=100%2C78 100w, https://i1.wp.com/thervgeeks.dev/wp-content/uploads/2017/02/icicles.jpg?resize=258%2C202 258w, https://i1.wp.com/thervgeeks.dev/wp-content/uploads/2017/02/icicles.jpg?resize=612%2C480 612w, https://i1.wp.com/thervgeeks.dev/wp-content/uploads/2017/02/icicles.jpg?w=2208 2208w, https://i1.wp.com/thervgeeks.dev/wp-content/uploads/2017/02/icicles.jpg?w=3312 3312w" sizes="(max-width: 500px) 100vw, 500px" width="20" height="27">
So it’s as if something is still triggering things to look for images on the DreamSpeed CDN… instead of just local.
Odd… right? Or am I missing something?
-
This reply was modified 7 years ago by TheRVgeeks.
DOH! I think I figured it out… I had JetPack Photon enabled… so even though I had run the search & replace to change the links in the database, Photon was continuing to serve the files from the CDN. Disabling Photon… and VOILA! The images work again.
Thought you’d want to know in case anyone ever has the same problem!