WordPress.org

Ready to get started?Download WordPress

Forums

Paginated Gallery
[resolved] WP_DEBUG notices (1 post)

  1. cubecolour
    ɹoʇɐɹǝpoɯ
    Posted 1 year ago #

    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/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.