WordPress.org

Support

Support » Plugins and Hacks » [Resolved] [Plugin: Paginated Gallery] WP_DEBUG notices

[Resolved] [Plugin: Paginated Gallery] WP_DEBUG notices

  • When WP_DEBUG is enabled, activating this plugin causes any page with galleries to get some debug notices shown eg:

    Notice: Undefined index: galleryPage in .../wp-content/plugins/paginated-gallery/paginated-gallery.php on line 104
    
    Notice: Undefined index: id in .../wp-content/plugins/paginated-gallery/paginated-gallery.php on line 138

    replace line 104

    $currentPage = intval($_GET['galleryPage']);

    with

    if (isset($_GET ['galleryPage'])) {
    	$currentPage = intval($_GET ['galleryPage']);
    	}

    replace line 138

    $id = $options['id'];

    with

    $id = intval( isset ($options['id']) );

    These changes seem to fix the notices

    http://wordpress.org/extend/plugins/paginated-gallery/

  • The topic ‘[Resolved] [Plugin: Paginated Gallery] WP_DEBUG notices’ is closed to new replies.