Opened 3 years ago
Closed 3 years ago
#60039 closed defect (bug) (duplicate)
issue with wp-includes/class-wp-widget.php
| Reported by: | bryanlteague | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Widgets | Version: | 6.4.2 |
| Severity: | critical | Keywords: | |
| Cc: | Focuses: |
Description (last modified by )
Running PHP 8.0.3
I receive the following error:
PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function WP_Widget::__construct(), 0 passed in /var/www/html/marketing/wp-includes/class-wp-widget-factory.php on line 62 and at least 2 expected in /var/www/html/marketing/wp-includes/class-wp-widget.php:163
The function call on line 163:
public function __construct( $id_base, $name, $widget_options = array(), $control_options = array() ) {
This needs to be updated to:
public function __construct( $id_base=null, $name=null, $widget_options = array(), $control_options = array() ) {
Change History (1)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Hi there, welcome to WordPress Trac!
Thanks for the report, we're already tracking this issue in #56127.