Php error while plugin activation

Hello,
we have purchased the plugin. When we try to activate the plugin, the following error is generated:

Fatal error: Uncaught ArgumentCountError: Too few arguments to function WP_Widget::__construct(), 0 passed in path\wp-includes\class-wp-widget-factory.php on line 62 and at least 2 expected in path\wp-includes\class-wp-widget.php:163 Stack trace: #0 path\wp-includes\class-wp-widget-factory.php(62): WP_Widget->__construct() #1 path\wp-includes\widgets.php(123): WP_Widget_Factory->register(‘Groups_Newslett…’) #2 path\wp-content\plugins\groups-newsletters\lib\views\class-groups-newsletters-widget.php(83): register_widget(‘Groups_Newslett…’) #3 path\wp-includes\class-wp-hook.php(324): Groups_Newsletters_Widget::widgets_init(”) #4 path\wp-includes\class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) #5 path\wp-includes\plugin.php(517): WP_Hook->do_action(Array) #6 path\wp-includes\widgets.php(1870): do_action(‘widgets_init’) #7 path\wp-includes\class-wp-hook.php(324): wp_widgets_init(”) #8 path\wp-includes\class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) #9 path\wp-includes\plugin.php(517): WP_Hook->do_action(Array) #10 path\wp-settings.php(700): do_action(‘init’) #11 path\wp-config.php(103): require_once(‘path’) #12 path\wp-load.php(50): require_once(‘path’) #13path\wp-blog-header.php(13): require_once(‘path’) #14 path\index.php(17): require(‘path’) #15 {main} thrown in path\wp-includes\class-wp-widget.php on line 163

It seems to be related to the registration of the widgets. We need help to solve the problem.

Thanks


Comments

One response to “Php error while plugin activation”

  1. Hi Elischa,

    Welcome to our support forum and sorry to hear that you have issues with Groups Newsletter plugin.
    The error reported in your ticket shouldn’t occur and what you get might even relate to a conflict.

    Can you please share some more details on your setup?
    What are the versions currently used in your installation for:

    PHP
    WordPress

    Also, do you use the Classic Widgets or Block-based Widgets? Are there any other plugins that can handle widgets and widgetized areas in general? Do you still get the same error if you temporary switch to one of the default themes, like TwentyTwenty four?
    Can you please share with us a full copy of your debug.log file, either here or directly to my personal email, george at itthinx dot com.

    Kind regards,
    George

Share