[wp-trac] [WordPress Trac] #58176: when using php8.0 error: call_user_func_array(): Argument #1 ($callback) must be a valid callback...

WordPress Trac noreply at wordpress.org
Mon Apr 24 14:42:20 UTC 2023


#58176: when using php8.0 error: call_user_func_array(): Argument #1 ($callback)
must be a valid callback...
--------------------------+-----------------------
 Reporter:  urseetaeler   |       Owner:  (none)
     Type:  defect (bug)  |      Status:  reopened
 Priority:  normal        |   Milestone:
Component:  Widgets       |     Version:  6.2
 Severity:  blocker       |  Resolution:
 Keywords:                |     Focuses:
--------------------------+-----------------------
Changes (by urseetaeler):

 * status:  closed => reopened
 * resolution:  invalid =>
 * severity:  normal => blocker


Comment:

 When I eleminated the MiniMeta Widget, with php8.0 another error disabled
 my website:



 {{{
 ArgumentCountError thrown

 Too few arguments to function WP_Widget::__construct(), 0 passed in
 /mnt/web113/a2/26/52367426/htdocs/urseetalnet/newwp/wp-includes/class-wp-
 widget-factory.php on line 62 and at least 2 expected
 }}}

  Renaming this class-wp-widget-factory.php disabled login without showing
 any error.

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


More information about the wp-trac mailing list