Fatal error: Uncaught ArgumentCountError: Too few arguments to function
-
I am a beginner on wordpress i don’t understand this error
i think this happened because i was trying to import a theme from my downloads
`Fatal error: Uncaught ArgumentCountError: Too few arguments to function WP_Widget::__construct(), 0 passed in C:\xampp\htdocs\wordpress\wp-includes\class-wp-widget-factory.php on line 61 and at least 2 expected in C:\xampp\htdocs\wordpress\wp-includes\class-wp-widget.php:162 Stack trace: #0 C:\xampp\htdocs\wordpress\wp-includes\class-wp-widget-factory.php(61): WP_Widget->__construct() #1 C:\xampp\htdocs\wordpress\wp-includes\widgets.php(115): WP_Widget_Factory->register(‘template1_searc…’) #2 C:\xampp\htdocs\wordpress\wp-content\themes\FreelancerThemeRes\functions.php(280): register_widget(‘template1_searc…’) #3 C:\xampp\htdocs\wordpress\wp-settings.php(546): include(‘C:\\xampp\\htdocs…’) #4 C:\xampp\htdocs\wordpress\wp-config.php(96): require_once(‘C:\\xampp\\htdocs…’) #5 C:\xampp\htdocs\wordpress\wp-load.php(50): require_once(‘C:\\xampp\\htdocs…’) #6 C:\xampp\htdocs\wordpress\wp-blog-header.php(13): require_once(‘C:\\xampp\\htdocs…’) #7 C:\xampp\htdocs\wordpress\index.php(17): require(‘C:\\xampp\\htdocs…’) #8 {main} thrown in C:\xampp\htdocs\wordpress\wp-includes\class-wp-widget.php on line 162
There has been a critical error on this website.`
- The topic ‘Fatal error: Uncaught ArgumentCountError: Too few arguments to function’ is closed to new replies.