Opened 4 years ago
Closed 2 years ago
#52708 closed defect (bug) (fixed)
Loopback requests do not work on the local development environment
Reported by: | johnbillion | Owned by: | johnbillion |
---|---|---|---|
Milestone: | 6.1 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Build/Test Tools | Keywords: | has-patch |
Focuses: | Cc: |
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
@
4 years ago
- Summary changed from Loopback requestss do not work on the local development environment to Loopback requests do not work on the local development environment
#4
@
3 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
@
3 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.
This ticket was mentioned in Slack in #core by sandrasanzdev. View the logs.
3 years ago
Note: See
TracTickets for help on using
tickets.
Fix loopback requests on local environment