[wp-trac] [WordPress Trac] #61114: PHP 8+ Fatal Error in WP_Upgrader due to TypeError in array_keys() Call

WordPress Trac noreply at wordpress.org
Mon Oct 14 11:00:03 UTC 2024


#61114: PHP 8+ Fatal Error in WP_Upgrader due to TypeError in array_keys() Call
--------------------------------------+---------------------
 Reporter:  verygoode                 |       Owner:  (none)
     Type:  defect (bug)              |      Status:  new
 Priority:  normal                    |   Milestone:  6.7
Component:  Upgrade/Install           |     Version:  2.8
 Severity:  critical                  |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+---------------------

Comment (by da5f656f):

 I believe that this issue is exacerbated by Cloudflare's new "Speed Brain"
 feature which is auto-default on all free plans since September 25.

 This user documents how Speed Brain caused errors with deleting posts and
 media:
 https://community.cloudflare.com/t/cloudflare-speed-brain-feedback-
 wordpress-delete-trash-errors/722992/2

 "Today we are very excited to share the latest leap forward in speed:
 Speed Brain. It relies on the Speculation Rules API to prefetch the
 content of the user's likely next navigations."
 https://blog.cloudflare.com/introducing-speed-brain/

 This could indicate that these specific issues are more likely to occur
 when using Chrome/Edge and Cloudflare's free plan.

 I tested this on a live and staging site, same server (WordPress 6.6.2,
 PHP 8.2.18.) I received errors when updating plugins on the staging site.
 Turned off Speed Brain and was able to update the live site with no
 errors.

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


More information about the wp-trac mailing list