• Resolved gottfrieds

    (@gottfrieds)


    Since I installed WP 5.4 I get the following error messages:

    [01-Apr-2020 13:13:28 UTC] PHP Notice:  Undefined index: wp_inactive_widgets in
     /mnt/web417/a2/76/52551976/htdocs/waehlt/wp-content/plugins/widget-shortcode/includes/class-widget-shortcode.php on line 185
    [01-Apr-2020 13:13:28 UTC] PHP Notice:  Undefined index: wp_inactive_widgets in
     /mnt/web417/a2/76/52551976/htdocs/waehlt/wp-content/plugins/widget-shortcode/includes/class-widget-shortcode.php on line 186
    [01-Apr-2020 13:13:28 UTC] PHP Notice:  Undefined index: wp_inactive_widgets in
     /mnt/web417/a2/76/52551976/htdocs/waehlt/wp-content/plugins/widget-shortcode/includes/class-widget-shortcode.php on line 187

    It seems to be an error in the construct process of a widget I wrote. This is the construction code:

    add_action( 'widgets_init', 'stbez_load_widget' );
     
    // Creating the widget 
    class stbez_widget extends WP_Widget {
     
    function __construct() {
    parent::__construct(
     
    // Base ID of your widget
    'stbez_widget', 
     
    // Widget name will appear in UI
    __('Stbez Widget', 'stbez_widget_domain'), 
     
    // Widget description
    array( 'description' => __( 'Diese Widget stellt den Stimmbezirk aufgrund von Stra?e und Hausnummer fest.', 'stbez_widget_domain' ), ) 
    );
    }
    

    Where is the error???

    • This topic was modified 4 years, 8 months ago by gottfrieds.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Problem with WP 5.4’ is closed to new replies.