Compatibility Issue with PHP 8.0

I am using free version of Perth theme, on my website. When i update php server to 8.0 latest version , it throughs following error message.

Fatal error : Uncaught ArgumentCountError: Too few arguments to function WP_Widget::__construct(), 0 passed in C:\Apache24\htdocs\fencingaround\wp-includes\class-wp-widget-factory.php on line 61 and at least 2 expected in C:\Apache24\htdocs\fencingaround\wp-includes\class-wp-widget.php:162 Stack trace: #0 C:\Apache24\htdocs\fencingaround\wp-includes\class-wp-widget-factory.php(61): WP_Widget->construct() #1 C:\Apache24\htdocs\fencingaround\wp-includes\widgets.php(115): WP_Widget_Factory->register('Perth_Services…’) #2 C:\Apache24\htdocs\fencingaround\wp-content\themes\perth\functions.php(109): register_widget('Perth_Services…’) #3 C:\Apache24\htdocs\fencingaround\wp-includes\class-wp-hook.php(303): perth_widgets_init(’’) #4 C:\Apache24\htdocs\fencingaround\wp-includes\class-wp-hook.php(327): WP_Hook->apply_filters(NULL, Array) #5 C:\Apache24\htdocs\fencingaround\wp-includes\plugin.php(470): WP_Hook->do_action(Array) #6 C:\Apache24\htdocs\fencingaround\wp-includes\widgets.php(1809): do_action(‘widgets_init’) #7 C:\Apache24\htdocs\fencingaround\wp-includes\class-wp-hook.php(303): wp_widgets_init(’’) #8 C:\Apache24\htdocs\fencingaround\wp-includes\class-wp-hook.php(327): WP_Hook->apply_filters(NULL, Array) #9 C:\Apache24\htdocs\fencingaround\wp-includes\plugin.php(470): WP_Hook->do_action(Array) #10 C:\Apache24\htdocs\fencingaround\wp-settings.php(578): do_action(‘init’) #11 C:\Apache24\htdocs\fencingaround\wp-config.php(90): require_once(‘C:\Apache24\htd…’) #12 C:\Apache24\htdocs\fencingaround\wp-load.php(50): require_once(‘C:\Apache24\htd…’) #13 C:\Apache24\htdocs\fencingaround\wp-blog-header.php(13): require_once(‘C:\Apache24\htd…’) #14 C:\Apache24\htdocs\fencingaround\index.php(17): require(‘C:\Apache24\htd…’) #15 {main} thrown in C:\Apache24\htdocs\fencingaround\wp-includes\class-wp-widget.php on line 162

There has been a critical error on this website.

Learn more about troubleshooting WordPress.

Can you please suggest any solution.

Thanks

Hi,

I am sorry for the delayed response.

Seems likely there is PHP 8.0+ incompatibility issue with Perth theme. I’ll pass this to our development team investigate further and fix it whenever possible.

Meanwhile, I’d recommend switching to Sydney theme instead.

Regards,
Kharis
aThemes Support