I have two sites running on Local. One of them is doing fine. The other was doing fine but now it is loading extremely slowly. Like according to chrome dev tools it took 4.8 minutes to load. And a lot of the assets aren’t being loaded, such as most of the images and the styles.css file.
Also I already turned on faster docker option, and I’m not using xDebug which seems to be the thing a lot of people have had problems with.
EDIT: okay so I shut down Local and then spun stuff back up. When I opened it up it had to do the whole check on virtual box, host machine, etc all over again, don’t know why. But maybe that’s a clue.
EDIT EDIT: When I switch from nginix to apache it gives me a 500 Server error. The htacess file should just the be default one created by Local though.
EDIT EDIT EDIT: Other weird stuff. On nginx it gives me a 500 error on the wp-admin but lets me get to adminer (which it wouldn’t let me on Apache). Also when it gives me the 500 error on the wp-admin it changes the url over to localhost:8888 which is, of course the default host for MAMP which I was previously running but am no longer running.
Also I thought I had faster docker containers enabled but no matter how many times I hit apply, as soon as I go to a different page and come back it is just shows it reverted to disabled.
I’ve also turned on dev mode because that helps with caching correct?
EDIT EDIT EDIT EDIT: I found further weirdness. the images that won’t appear show their url in chrome dev tools as localhostlocalhost/wp-content/uploads/2.jpg
If I put in the same url that Local has tagged as my sitedomain, jackalopelocal.local then add wp-content/uploads/3.jpg then I get the proper image.
So it seems to me that it has something to do with the site url settings in my db.
Originally when I imported they were localhost:8888
Since the wp-config created by Local has localhost as the db host I put that in the site url.
I didn’t find the weird image url problem till after I had made this change. but I’m pretty sure the weird localhostlocalhost repeat in the url has something to do with the database site url. I’m going to reference this against my working website and see if that fixes the issue.
I just tried my other website and it’s working fine so there’s something screwy with this other one.
Log file is attached. local-by-flywheel.log (45.6 KB)