I have a site that loads fine on the host machine running Local.
On another machine using the localsite.io address, it loads fine under Brave browser. Under Safari, however, it only ever half-loads the page (all text and the small images only) and it hangs.
On iOS devices, running any browser (Brave, Safari, DuckDuckGo) the site only half-loads the page.
The loading never times out. The browsers just sit and spin forever, no matter how long you wait.
EDIT: I forgot to mention that this is only when viewing a page. When editing it, everything loads.
What steps can be taken to replicate the issue? Feel free to include screenshots, videos, etc
Create a LocalWP site
Connect and view on localhost
Connect and view on remote device via localsite.io address
System Details
Local Version:
Version 9.0.5+6706
Operating System (OS) and OS version:
Host: macOS Catalina 10.15.7
Remote Clients: macOS Sonoma 14.5, iOS 15
Local Logs
The local logs are full of these statements:
2024/03/25 12:01:35 [warn] 91004#0: *1062 a client request body is buffered to a temporary file /Users/USERNAME/Library/Application Support/Local/run/router/nginx/client_body_temp/0000000005, client: ::1, server: WEBSITE.local, request: “POST /wp-admin/admin-ajax.php HTTP/1.1”, host: “WEBSITE.local”
Am I right in thinking that this issue is happening over a Live Link connection? (I assume that’s what you mean by a localsite.io address)
From the error log you provided, it seems like there is an issue with the client sites making a request to the wp-admin/admin-ajax.php endpoint.
Is there some kind of plugin or custom functionality that is making POST requests for every request? I would assume something like an analytics plugin, or maybe some kind of form?
Basically, that warning is indicating that something is trying to be uploaded on each request, and it’s larger than the temporary space that the Nginx service allocates. On traditional servers or even your host machine, that likely isn’t a problem, but for the Live Links service, I think that temporary space is a bit smaller.
Anyway, that might indicate an opportunity to make the site more performant by avoiding an expensive POST request on every page load.
Another oddity that happens only on the Live Link connection: while editing any page (using the Divi editor) most of the images appear with broken image icons. This doesn’t happen on the machine on which Local is running.
Is there a way to avoid the tunnel and just connect direct across the LAN? Just entering the IP address of the machine running Local I get a 404 page with “The site you requested does not have an associated route in Local.”
I’m not sure if the LAN option will work, I haven’t tested it myself but if you search around the forums there might be some users who have had success and shared their details. If you’re just trying to find an alternative to Live Links for viewing your progress you could use a Flywheel Demo which are free for two weeks. Demo Site