[wp-trac] [WordPress Trac] #51629: [php8] TypeError: call_user_func_array(): non-static method WP_Feed_Cache::create() cannot be called statically (was: [php8] TypeError: call_user_func_array())

WordPress Trac noreply at wordpress.org
Sun Oct 25 19:41:06 UTC 2020


#51629: [php8] TypeError: call_user_func_array(): non-static method
WP_Feed_Cache::create() cannot be called statically
--------------------------+---------------------
 Reporter:  bph           |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  5.6
Component:  Feeds         |     Version:  trunk
 Severity:  normal        |  Resolution:
 Keywords:  php8          |     Focuses:
--------------------------+---------------------
Changes (by SergeyBiryukov):

 * keywords:   => php8
 * component:  General => Feeds
 * milestone:  Awaiting Review => 5.6


Old description:

> Fatal error: Uncaught TypeError: call_user_func_array(): Argument #1
> ($function) must be a valid callback, non-static method
> WP_Feed_Cache::create() cannot be called statically in
> /home/customer/www/icodeforapurpose.com/public_html/wp-
> includes/SimplePie/Registry.php:214
>
> **StackTrace**
>
> #0 /wp-includes/class-simplepie.php(1412):
> SimplePie_Registry->call('Cache', 'get_handler', Array)
> #1 /wp-includes/feed.php(821): SimplePie->init()
> #2 /wp-includes/widgets.php(1513): fetch_feed('https://wordpre...')
> #3 /wp-content/plugins/wordpress-beta-
> tester/src/WPBT/WP_Beta_Tester.php(288):
> wp_widget_rss_output('https://wordpre...', Array)
> #4 /wp-content/plugins/wordpress-beta-
> tester/src/WPBT/WP_Beta_Tester.php(256):
> WP_Beta_Tester->parse_development_feed('5.6')
> #5 /wp-admin/includes/template.php(1389):
> WP_Beta_Tester->beta_tester_dashboard('', Array)
> #6 /wp-admin/includes/dashboard.php(256):
> do_meta_boxes(Object(WP_Screen), 'normal', '')
> #7 /wp-admin/index.php(177): wp_dashboard()
> #8 {main} thrown in /wp-includes/SimplePie/Registry.php on line 214

New description:

 `Fatal error: Uncaught TypeError: call_user_func_array(): Argument #1
 ($function) must be a valid callback, non-static method
 WP_Feed_Cache::create() cannot be called statically in
 /home/customer/www/icodeforapurpose.com/public_html/wp-
 includes/SimplePie/Registry.php:214 `

 {{{
 **StackTrace**

 #0 /wp-includes/class-simplepie.php(1412):
 SimplePie_Registry->call('Cache', 'get_handler', Array)
 #1 /wp-includes/feed.php(821): SimplePie->init()
 #2 /wp-includes/widgets.php(1513): fetch_feed('https://wordpre...')
 #3 /wp-content/plugins/wordpress-beta-
 tester/src/WPBT/WP_Beta_Tester.php(288):
 wp_widget_rss_output('https://wordpre...', Array)
 #4 /wp-content/plugins/wordpress-beta-
 tester/src/WPBT/WP_Beta_Tester.php(256):
 WP_Beta_Tester->parse_development_feed('5.6')
 #5 /wp-admin/includes/template.php(1389):
 WP_Beta_Tester->beta_tester_dashboard('', Array)
 #6 /wp-admin/includes/dashboard.php(256): do_meta_boxes(Object(WP_Screen),
 'normal', '')
 #7 /wp-admin/index.php(177): wp_dashboard()
 #8 {main} thrown in /wp-includes/SimplePie/Registry.php on line 214
 }}}

--

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


More information about the wp-trac mailing list