[wp-trac] [WordPress Trac] #54547: Fatal error when updating to 5.9 Beta 1 using WP-CLI on LocalWP

WordPress Trac noreply at wordpress.org
Wed Dec 1 10:02:36 UTC 2021


#54547: Fatal error when updating to 5.9 Beta 1 using WP-CLI on LocalWP
-----------------------------+---------------------
 Reporter:  nielslange       |       Owner:  (none)
     Type:  defect (bug)     |      Status:  new
 Priority:  normal           |   Milestone:  5.9
Component:  Upgrade/Install  |     Version:
 Severity:  blocker          |  Resolution:
 Keywords:                   |     Focuses:
-----------------------------+---------------------

Old description:

> **Steps to reproduce**
>
> 1. Create a fresh test site using [LocalWP](https://localwp.com/).
> 2. Open site shell and run the command `wp core update
> --version=5.9-beta1`.
>
> **Expected behavior**
>
> No error should occur, and the WordPress should be updated to version 5.9
> Beta 1.
>
> **Current behavior**
>
> The following fatal error occurs:
>

>   Fatal error: Uncaught Error: Class 'WpOrg\Requests\Iri' not found in
> /Users/nielslange/Local Sites/wp59/app/public/wp-
> includes/Requests/Requests.php on line 682
>
>   Error: Class 'WpOrg\Requests\Iri' not found in /Users/nielslange/Local
> Sites/wp59/app/public/wp-includes/Requests/Requests.php on line 682
>
> This is the call stack:
>
> || # || Time || Memory || Function || Location ||
> || 1 || 0.0002 || 413128 || {main}( ) || .../plugins.php:0 ||
> || 2 || 0.0002 || 420008 || require_once( '/Users/nielslange/Local
> Sites/wp59/app/public/wp-admin/admin.php' ) || .../plugins.php:10 ||
> || 3 || 0.1128 || 3948296 || do_action( ) || .../admin.php:385 ||
> || 4 || 0.1128 || 3948672 || WP_Hook->do_action( ) || .../plugin.php:470
> ||
> || 5 || 0.1128 || 3948672 || WP_Hook->apply_filters( ) || .../class-wp-
> hook.php:327 ||
> || 6 || 0.1128 || 3949800 || wp_update_plugins( ) || .../class-wp-
> hook.php:303 ||
> || 7 || 0.1169 || 4023152 || wp_remote_post( ) || .../update.php:404 ||
> || 8 || 0.1169 || 4023152 || WP_Http->post( ) || .../http.php:179 ||
> || 9 || 0.1169 || 4023528 || WP_Http->request( )        .../class-wp-
> http.php:614 ||
> || 10 || 0.1170 || 4028984 || WpOrg\Requests\Requests::request( ) ||
> .../class-wp-http.php:394 ||
> || 11 || 0.1170 || 4030440 || WpOrg\Requests\Requests::set_defaults( ) ||
> .../Requests.php:452 ||

New description:

 **Steps to reproduce**

 1. Create a fresh test site using [LocalWP](https://localwp.com/).
 2. Open site shell and run the command `wp core update
 --version=5.9-beta1`.

 **Expected behavior**

 No error should occur, and the WordPress should be updated to version 5.9
 Beta 1.

 **Current behavior**

 The following fatal error occurs:


   Fatal error: Uncaught Error: Class 'WpOrg\Requests\Iri' not found in
 /Users/nielslange/Local Sites/wp59/app/public/wp-
 includes/Requests/Requests.php on line 682

   Error: Class 'WpOrg\Requests\Iri' not found in /Users/nielslange/Local
 Sites/wp59/app/public/wp-includes/Requests/Requests.php on line 682

 This is the call stack:

 || # || Time || Memory || Function || Location ||
 || 1 || 0.0002 || 413128 || {main}( ) || .../plugins.php:0 ||
 || 2 || 0.0002 || 420008 || require_once( '/Users/nielslange/Local
 Sites/wp59/app/public/wp-admin/admin.php' ) || .../plugins.php:10 ||
 || 3 || 0.1128 || 3948296 || do_action( ) || .../admin.php:385 ||
 || 4 || 0.1128 || 3948672 || WP_Hook->do_action( ) || .../plugin.php:470
 ||
 || 5 || 0.1128 || 3948672 || WP_Hook->apply_filters( ) || .../class-wp-
 hook.php:327 ||
 || 6 || 0.1128 || 3949800 || wp_update_plugins( ) || .../class-wp-
 hook.php:303 ||
 || 7 || 0.1169 || 4023152 || wp_remote_post( ) || .../update.php:404 ||
 || 8 || 0.1169 || 4023152 || WP_Http->post( ) || .../http.php:179 ||
 || 9 || 0.1169 || 4023528 || WP_Http->request( )        .../class-wp-
 http.php:614 ||
 || 10 || 0.1170 || 4028984 || WpOrg\Requests\Requests::request( ) ||
 .../class-wp-http.php:394 ||
 || 11 || 0.1170 || 4030440 || WpOrg\Requests\Requests::set_defaults( ) ||
 .../Requests.php:452 ||

 Thanks for your reply, @SergeyBiryukov. The problem indeed only happens
 when using WP-CLI. When using the [WordPress Beta
 Tester](https://wordpress.org/plugins/wordpress-beta-tester/), I could
 update to 5.9 Beta 1, as expected.

--

Comment (by nielslange):

 Replying to [comment:2 SergeyBiryukov]:
 > Hi there, thanks for the ticket!
 >
 > This appears to be an issue with WP-CLI incorrectly deleting files on
 case-insensitive filesystems when an update changes the case of a file,
 e.g. from `Requests\IRI.php` to `Requests\Iri.php`.
 >
 > See #54504 and the upstream issue for more details: https://github.com
 /wp-cli/core-command/issues/195
 >
 > Moving to the milestone for more visibility, though at this point the
 changes are required in WP-CLI and not in core.

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


More information about the wp-trac mailing list