[wp-trac] [WordPress Trac] #54546: Fatal error receive while updating WP 5.8.2 to WP 5.9.

WordPress Trac noreply at wordpress.org
Thu Dec 2 06:17:38 UTC 2021


#54546: Fatal error receive while updating WP 5.8.2 to WP 5.9.
-------------------------------+---------------------
 Reporter:  apeksha10          |       Owner:  (none)
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  5.9
Component:  Upgrade/Install    |     Version:  trunk
 Severity:  normal             |  Resolution:
 Keywords:  reporter-feedback  |     Focuses:
-------------------------------+---------------------

Comment (by apeksha10):

 Replying to [comment:4 hellofromTonya]:
 > Requests library:
 >
 > - Requests pre-2.0.0:
 >    * the "cURL" class was called `Requests_Transport_cURL` and was in a
 file named `wp-includes/Requests/Transport/cURL.php`.
 >    * [https://github.com/WordPress/wordpress-develop/blob/5.8/src/wp-
 includes/Requests/Transport/cURL.php#L443 Line 443] in `cURL.php` file
 throws a new `Requests_Exception()` error
 > - Requests 2.0.0:
 >    * the "cURL" class was renamed to `WpOrg\Requests\Transport\Curl` and
 its file renamed to `wp-includes/Requests/Transport/Curl.php`.
 >    * `Requests_Exception` class was removed in this version
 >    * [https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-
 includes/Requests/Transport/Curl.php#L492 The cURL error] was changed to
 throw a new `Exception`
 >
 > [52244] #54504 updated the Requests library to 2.0.0.
 >
 > Look at the fatal error:
 > {{{
 > Fatal error: Uncaught Error: Class 'Requests_Exception' not found in
 C:\Users\User\Local Sites\first-localhost\app\public\wp-
 includes\Requests\Transport\cURL.php on line 443
 > }}}
 > It's indicating the error happened in `cURL.php` file on line 443. That
 file was renamed in Requests 2.0.0 and line 443 is from the older version,
 not the new version (i.e. in 5.9.0 Beta 1).
 >
 > Look at the 2nd error:
 > {{{
 > Error: Class 'Requests_Exception' not found in C:\Users\User\Local Sites
 \first-localhost\app\public\wp-includes\Requests\Transport\cURL.php on
 line 443
 > }}}
 > That class was removed in newer version (i.e. in 5.9.0 Beta 1).
 >
 > At `Upgrading database...` the old files should have been removed and
 new files installed. Did this happen?
 >
 > @apeksha10 if you're able to, can you check if the cURL file is named
 `cURL.php` or `Curl.php`? Look here: `C:\Users\User\Local Sites\first-
 localhost\app\public\wp-includes\Requests\Transport\Curl.php`. Is it named
 `cURL.php` or `Curl.php`?

 The file name is Curl.php [Curl.php]

 https://www.screencast.com/t/BWNZ2gfUsE

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/54546#comment:18>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list