WordPress.org

Ready to get started?Download WordPress

Forums

WP-PageNavi
[resolved] WP_DEBUG notice core.php on line 17 (3 posts)

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

    I'm developing a site and checking it with WP_DEBUG on.

    When wp-pagenavi is active on the site I was getting getting debug notices like:

    Notice: Undefined offset: in /home/sites/... .../wp-content/plugins/wp-pagenavi/core.php on line 17

    line 17 of core.php is

    $args[ $key ] = $argv[ $i ];

    My fix was to change line 17 to

    $args[ $key ] = isset( $argv[ $i ]) ? $argv[ $i ] : "";

    After making that change, the notices no longer appear

    http://wordpress.org/extend/plugins/wp-pagenavi/

  2. scribu
    Member
    Plugin Author

    Posted 1 year ago #

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

    Great! - thanks scribu

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic