Opened 5 years ago
Closed 4 years ago
#52708 closed defect (bug) (fixed)
Loopback requests do not work on the local development environment
| Reported by: | johnbillion | Owned by: | johnbillion |
|---|---|---|---|
| Priority: | normal | Milestone: | 6.1 |
| Component: | Build/Test Tools | Version: | |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: |
Description
Within the local development environment, loopback requests do not work because localhost:8889 does not resolve. This means the following are broken:
- WP-Cron event spawning
- Theme editor
- Plugin editor
- Multisite network upgrades
The error can be seen on the Site Health screen, by attempting to edit a PHP file with the theme or plugin editor, or by running npm run env:cli cron test. The error is:
cURL error 7: Failed to connect to localhost port 8889: Connection refused
Attachments (2)
Change History (11)
#1
@
5 years ago
- Summary Loopback requestss do not work on the local development environment → Loopback requests do not work on the local development environment
#4
@
4 years ago
I tested with the provided patch by @sandrasanzdev on my local using
npm run env:cli cron test
But still getting the same issue.
Error: WP-Cron spawn failed with error: cURL error 7: Failed to connect to localhost port 8889: Connection refused
#5
@
4 years ago
@hasanuzzamanshamim Thanks for testing :) I saw it fixed in the admin panel and forgot to run the test. Uploaded a fix in 52708-loopback-local-3.diff that passes the test too.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Fix loopback requests on local environment