Got them again via DM, John Thank you!
I’ve checked that new main.log
file you sent and noticed the following actions in there, that were executed properly (note: I changed your actual site name with “yoursitename” that I pasted below)
[2023-09-25 15:08:06.730] [info] [updateWpConfigUrl]: update urls in wp-config.php. Site:yoursitename-1 from: https://env-yoursitename-staging.kinsta.cloud, to: http://yoursitename-1.local
[2023-09-25 15:08:06.778] [info] [updateWpConfigUrl]: update urls in wp-config.php. Site:yoursitename-1 from: env-yoursitename-staging.kinsta.cloud, to: yoursitename-1.local
[2023-09-25 15:08:06.811] [info] [wpSearchAndReplace] Search and replace. Source: https://env-yoursitename-staging.kinsta.cloud, to: http://yoursitename-1.local
[2023-09-25 15:08:09.511] [info] [containerExec] Command ‘cd /www/kinsta/public/yoursitename-1 && /usr/bin/php8.0 /usr/local/bin/wp --allow-root --skip-themes --skip-plugins search-replace https://env-yoursitename-staging.kinsta.cloud http://yoursitename-1.local --all-tables’ on devkinsta_fpm finished with exit code 0
[2023-09-25 15:08:09.512] [info] [downloadSite] Site successfully downloaded
and also these:
[2023-09-25 15:08:18.092] [info] [updateWpConfigUrl]: update urls in wp-config.php. Site:yoursitename-1 from: http://yoursitename-1.local, to: https://yoursitename-1.local
[2023-09-25 15:08:18.105] [info] [wpSearchAndReplace] Search and replace. Source: http://yoursitename-1.local, to: https://yoursitename-1.local
[2023-09-25 15:08:20.922] [info] [containerExec] Command ‘cd /www/kinsta/public/yoursitename-1 && /usr/bin/php8.0 /usr/local/bin/wp --allow-root --skip-themes --skip-plugins search-replace http://yoursitename-1.local https://yoursitename-1.local --all-tables’ on devkinsta_fpm finished with exit code 0
[2023-09-25 15:08:32.288] [info] [ipc/site/create] Create site completed successfully
So based on the actions above, your staging site URLs in the database (and in the wp-config.php file) have been all replaced with the local domain URL: yoursitename-1.local
.
I’m still unsure and am wondering if the Staging URL to that image and any other files (as shown in the screenshot you sent via DM) may be hard-coded in the files ( cache files ? ) somewhere in your site’s files/subfolders - and were not saved in the database .
If they were saved in the database, the action above (with wp search-replace cli) would have updated the staging URL with your local domain url.
Could you please do the following to check further:
-
Open Docker Desktop and click on the Containers on the left side menu
-
Click the “devkinsta_fpm” name from the containers list (Name column) on the right side
-
Then on that devkinsa_frm container page, click on the “Terminal” tab
-
On that “Terminal” page, please type the following (1 line at a time ):
cd /www/kinsta/public/yoursitename
wp db search env-yoursitename-staging.kinsta.cloud --allow-root
( Note: please change the url with the actual of your staging URL - without http or https , and see if it will return any records in the database with that staging URL ? )
- Also on that same “Terminal” page, please type the following (1 line at a time ) :
cd /www/kinsta/public/yoursitename
grep -lir env-yoursitename-staging.kinsta.cloud
(Note: please change the url with the actual of your staging URL - without http or https, and see if it will find any local site’s files that may contain that staging URL ?)
Please send the results (in plan text) via DM again once you have executed the above.
regards,
Agus