Hi guys, sry for disturbing you, but for the first time in ages I’m having some problems with local that I can’t fix.
I just discovered this problem accidentally.
Having exported my sites from local, then clean installed Sonoma, reinstalled local, and pulled in my exports.
I’m getting a problem that I can’t seem to solve with the site shell and the wp search-replace replace command.
see screenshot
It seems that what happened is that I have been cloning breakdance websites on the old local; but without me noticing it, somehow the new clones relate to the content from the first installation, though it should have changed the path.
So now I’m getting “insecure” mixed content, and as I said wp search-replace in the shell does not fix it.
Etc. wp search-replace ‘http://’ ‘https://’ does not fix these paths (fixed many hundreds paths though, but these exact ones are stuck as http.
Btw. I had some problems with the ssl certificated earlier today, but solved it:
by killing off other apps running on port 80.
Then using keychain accesss to approve of the ssl certificates.
You might need to include more of the URL in your S&R jobs. I often find I need to do this as just doing HTTP to HTTPS doesn’t always catch everything.
You also have different domains in there some of them are xi.local and some are xi-2.local. If you’re still having trouble you might utilize a plugin for help.
Instead of cloning what about if you do a re-import?
The steps would look like this:
Locate the site files on your machine, and save a copy of them to your desktop. If you click Go to Site Folder under your site name it should take you right to where they are located.
Once you have those copied, completely delete the site from Local
Before that you could try toggling your Router Mode to see if that helps clear anything help as well.
Preferences>Advanced>Router Mode
You could change it to Localhost, save and restart, and then try changing back to Site Domains if you prefer HTTPS to see if it helps clean anything help.
And I will just try all you mentioned, though I think I have tested some of it out.
But the problem is the sites must have been broken on my old installation as well.
Not certain, because they where working and now they are not (everything worked on ventura, on the iMac I just replaced), but back in that local installation I still had the original sites running, so they might have drawn from each other - I only exported the last version.
I did import these sites into local today …
it’s really weird because Search and Replace plugin does not find these strings either.
Sadly that did not work either … even tried exporting it into “xl.local” instead of xl-2.local", the http seems locked … also tried importing it into just localhost, instead of ssl, not working either.
Perhaps I should try to push the site onto a host and see if I can change the path in another environment … but it’s really weird these paths seems hidden to both the wp-cli commands and the search and replace plugin.