#54562 closed defect (bug) (duplicate)
5.9-beta1 Fatal Error: Class 'WpOrg\Requests\Proxy\HTTP' not found
Reported by: | alexeydemidov | Owned by: | hellofromTonya |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | blocker | Version: | 5.9 |
Component: | HTTP API | Keywords: | has-patch |
Focuses: | Cc: |
Description
Our /wp-admin/ broke after installing 5.9-beta1
Fatal error: Uncaught Error: Class 'WpOrg\Requests\Proxy\HTTP' not found in /var/www/develop/public/wp-includes/class-wp-http.php:381 Stack trace: #0 /var/www/develop/public/wp-includes/class-wp-http.php(632): WP_Http->request() #1 /var/www/develop/public/wp-includes/http.php(162): WP_Http->get() #2 /var/www/develop/public/wp-content/plugins/<...redacted...> wp_remote_get()
We have WP_PROXY_HOST and WP_PROXY_PORT defined in wp-config.php
Replacing WpOrg\Requests\Proxy\HTTP with WpOrg\Requests\Proxy\Http at wp-includes/class-wp-http.php:381 fixed the issue.
Change History (22)
#2
@
3 years ago
@costdev We update it manually by importing unpacked .zip content into our git repo which is automatically deployed to our dev server. All filesystems involved are case-sensitive.
#3
@
3 years ago
- Milestone changed from Awaiting Review to 5.9
- Summary changed from 5.9-beta1 fails with Uncaught Error: Class 'WpOrg\Requests\Proxy\HTTP' not found in class-wp-http.php:381 to 5.9-beta1 Fatal Error: Class 'WpOrg\Requests\Proxy\HTTP' not found
@alexeydemidov Thank you for confirming. Milestoning this ticket for 5.9.
This ticket was mentioned in PR #2001 on WordPress/wordpress-develop by costdev.
3 years ago
#4
- Keywords has-patch added
This PR changes WpOrg\Requests\Proxy\HTTP
to WpOrg\Requests\Proxy\Http
.
Trac ticket: https://core.trac.wordpress.org/ticket/54562
#5
follow-up:
↓ 7
@
3 years ago
A search for WpOrg\\Requests\\([A-Z]{2,})
throughout Core returns 3 instances.
All of these occur in docblocks within the Requests library and are not changed by the PR.
The PR has passed CI and is ready for final review and commit.
#6
@
3 years ago
Hi there!
@costdev thanks for the PR. It looks good to me and ready to marge.
Let's wait for other dev feedback then we mark it commit
#7
in reply to:
↑ 5
@
3 years ago
Can you please update docblocks in this Patch otherwise we will get a new ticket for docblocks changes?
Replying to costdev:
All of these occur in docblocks within the Requests library and are not changed by the PR.
#9
@
3 years ago
@costdev Please update docblocks in wp-includes/Requests/Proxy/Http.php file
#11
@
3 years ago
- Keywords commit added
- Owner set to hellofromTonya
- Status changed from new to reviewing
The Requests files are not maintained by Core, but rather are a dependency that is managed in the Requests library itself. The docblock changes should be reported upstream by opening an issue here https://github.com/WordPress/Requests/issues.
The fix in the PR is approved. I'll revert the Requests docblock changes before committing.
hellofromtonya commented on PR #2001:
3 years ago
#13
Committed fix only (without docblock changes) in changeset https://core.trac.wordpress.org/changeset/52315.
#15
@
3 years ago
- Keywords commit removed
- Milestone changed from 5.9 to 6.0
- Resolution fixed deleted
- Status changed from closed to reopened
Re-opening and moving to 6.0 along with #54504.
This ticket was mentioned in Slack in #core by mike. View the logs.
2 years ago
#18
@
2 years ago
- Milestone changed from 6.0 to Future Release
If I understand correctly, it looks like this change / bug is linked to the Requests 2.0 update (#54504), which was moved to Future Release.
Going to go ahead and move this one from 6.0 to Future Release as well.
If I misunderstand, or something changes, please feel free to move it back.
#20
@
2 years ago
@SergeyBiryukov can you clarify if this is still something that needs to land in 6.1? It looks like the Requests update is still in Future Release
.
#21
@
2 years ago
- Milestone 6.1 deleted
- Resolution set to duplicate
- Status changed from reopened to closed
Been thinking more about this fatal error report and the status of this ticket. IMO this ticket can be closed. Why?
The fatal error was introduced in 5.9 alpha cycle and did not ship with 5.9.0. The root cause of the fatal error was due to an issue in the filesystem and upgrader revealed with Requests library update. When Requests v2.0.0 library was reverted [52328], the fatal error was also resolved.
What about the original root cause? Work continues in #54504.
#54504 also mentions the fatal errors and the root cause issues. Thus, IMO this ticket can be closed as a duplicate of #54504.
Hi @alexeydemidov, thanks for reporting this issue and welcome to Trac!
Can you please confirm the method you used to upgrade to 5.9-beta1?