• Resolved pforce

    (@pforce)


    Hi
    I really need some help pls.
    Since the last NG Update I get these errors displayed on https://niocara.com (just scroll down a little bit on the main home screen) and on the following pictures it misses the orange frames, compared to the same pictures at https://niocara.com/pictures/

    Notice: Undefined index: widget_id in /home/www/niocara.com/wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/widget/package.module.widget.php on line 147

    Notice: Undefined index: show in /home/www/niocara.com/wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/widget/package.module.widget.php on line 147

    Notice: Undefined index: width in /home/www/niocara.com/wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/widget/package.module.widget.php on line 147

    Notice: Undefined index: height in /home/www/niocara.com/wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/widget/package.module.widget.php on line 147

    Notice: Undefined index: width in /home/www/niocara.com/wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/widget/package.module.widget.php on line 147

    Notice: Undefined index: height in /home/www/niocara.com/wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/widget/package.module.widget.php on line 147

    Notice: Undefined index: show in /home/www/niocara.com/wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/widget/package.module.widget.php on line 147

    I’m on latest WordPress 5.2.3 PHP 7.3.9. MySQL version 5.5.5 Memeory Limit 128 MB
    never had these problem before
    Thanks for any help

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi @pforce,

    I am sorry to hear of the issue. Let’s try to manually re-install NextGen Gallery by deactivating and removing the plugin ( no worries about the exxisting galleries and settings – these would be safe ) then download a fresh copy of NextGen Gallery plugin and install&activate it new.

    Hope this helps

    Thread Starter pforce

    (@pforce)

    Hi mihai-imagely, (@mihaiimagely)
    i did what you recommended in both ways, once directly and then again via download, both installations went through, but no change .
    Therefore I went via FTP to /package.module.widget.php
    and here is the command line 147 that causes the error:

    147
    $params = array(‘slug’ => ‘widget-‘ . $args[‘widget_id’], ‘source’ => $source, ‘display_type’ => NGG_BASIC_THUMBNAILS, ‘images_per_page’ => $instance[‘items’], ‘maximum_entity_count’ => $instance[‘items’], ‘template’ => $template, ‘image_type’ => $instance[‘show’] == ‘original’ ? ‘full’ : ‘thumb’, ‘show_all_in_lightbox’ => FALSE, ‘show_slideshow_link’ => FALSE, ‘show_thumbnail_link’ => FALSE, ‘use_imagebrowser_effect’ => FALSE, ‘disable_pagination’ => TRUE, ‘image_width’ => $instance[‘width’], ‘image_height’ => $instance[‘height’], ‘ngg_triggers_display’ => ‘never’, ‘widget_setting_title’ => $title, ‘widget_setting_before_widget’ => $before_widget, ‘widget_setting_before_title’ => $before_title, ‘widget_setting_after_widget’ => $after_widget, ‘widget_setting_after_title’ => $after_title, ‘widget_setting_width’ => $instance[‘width’], ‘widget_setting_height’ => $instance[‘height’], ‘widget_setting_show_setting’ => $instance[‘show’], ‘widget_setting_widget_id’ => $widget_id);

    Thread Starter pforce

    (@pforce)

    additionally, after I deleted it showed:
    Notice: the_widget was called incorrectly. Widgets must be registered using register_widget() before they can be displayed. More information: Debugging in WordPress (this message was added in version 4.9.0.) in /home/www/niocara.com/wp-includes/functions.php on line 4773
    german original msg:
    Notice: the_widget wurde fehlerhaft aufgerufen. Widgets müssen unter Verwendung von register_widget() registriert werden, bevor sie angezeigt werden können. Weitere Informationen: Debugging in WordPress (engl.) (Diese Meldung wurde in Version 4.9.0 hinzugefügt.) in /home/www/niocara.com/wp-includes/functions.php on line 4773

    Hi @pforce,

    Thanks for trying the re-installation step. Let’s now try to re-insert the gallery shortcode in the page ( sometimes if using older and deprecated shortcode structures – some new missing parameters may show up as undefined if the debug mode is ON )

    For this purpose, please edit the page, delete the gallery shortcode/block from it and then add it new using the visual mode ( the Insert Gallery Window ). Update the page and check again.

    These are just simple notices that aren’t affecting the functionality anyhow and you can respectively simply disable the WP debug mode from wp-config.php file to hide them all.

    Hope this helps

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Problem: Notice: Undefined index: widget_id’ is closed to new replies.