• Resolved bkjproductions

    (@bkjproductions)


    Using latest version of plugin, latest version of WP, and Elementor.

    When WP Debug is ON, debug.log says:

    Undefined index: widget_name in
    /wp-content/plugins/quick-adsense/includes/widgets.php on line 22
    

    In the code I am unsure what ‘widget_name’ is— is it a widget that has been “named” in the Appearance: Widgets settings of WordPress? Or is it the name of Quick Adsense itself? It should be coming along for the ride via the $args.

    I wonder if Elementor is using the widget in a different way, somehow, than is expected by this plugin?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter bkjproductions

    (@bkjproductions)

    Follow-up: Inspecting the $args value as it comes in from public function widget($args, $instance) on or about line 17, there is no element named ‘widget_name’ in the array. Maybe it is supposed to be widget_id rather than widget_name.

    Dumping $args, this is what it contains:

    [widget_id] => wp-widget-adswidget1-quick-adsense
        [before_widget] => 
        [after_widget] => 
        [before_title] => <h5>
        [after_title] => </h5>
    Plugin Author Namith Jawahar

    (@namithjawahar)

    Please upgrade to version 2.8

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Undefined index: widget_name’ is closed to new replies.