Support » Plugin: WP-Paginate » Undefined index error in version 2.0.0

  • Resolved Darko Demić

    (@darkodelta)


    Hi, I get this error after updating to version 2.0.0. Version that was installed before was 1.3.1 and worked just fine. With this version this error pops on top of the page that is rendered.

    Does anyone have and idead what could be cause?

    Notice: Undefined index: position in /home/mint/public_html/dev/wp-content/plugins/wp-paginate/wp-paginate.php on line 182

    Notice: Undefined index: position in /home/mint/public_html/dev/wp-content/plugins/wp-paginate/wp-paginate.php on line 182

    Notice: Undefined index: position in /home/mint/public_html/dev/wp-content/plugins/wp-paginate/wp-paginate.php on line 185

    Notice: Undefined index: position in /home/mint/public_html/dev/wp-content/plugins/wp-paginate/wp-paginate.php on line 185

    Notice: Undefined index: everywhere in /home/mint/public_html/dev/wp-content/plugins/wp-paginate/wp-paginate.php on line 188

    Notice: Undefined index: everywhere in /home/mint/public_html/dev/wp-content/plugins/wp-paginate/wp-paginate.php on line 191

    Code on these lines is this function:

    public function init_pagination() {						
    												
                if ($this->options['position'] === 'above' || $this->options['position'] === 'both')
    				      add_filter( 'loop_start', array(&$this, 'add_pagination_to_page_top'));
    						
                if ($this->options['position'] === 'below' || $this->options['position'] === 'both')
    				    add_filter( 'loop_end', array(&$this, 'add_pagination_to_page_bottom'));
    						
                if ($this->options['everywhere'] && ($this->options['position'] === 'below' || $this->options['position'] === 'both'))
    							add_filter( 'wp_link_pages', 'add_pagination_to_page_bottom', 10, 2 );
    						
                if ($this->options['everywhere'] && ($this->options['position'] === 'above' || $this->options['position'] === 'both'))
    							add_filter( 'wp_link_pages', 'add_pagination_to_page_top', 10, 2 );
    																		
    					}
Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author AlanP57

    (@alanp57)

    These are notices rather than error messages. They do not cause WordPress to stop running. You should check to see if you have WordPress debugging turned on. If that is the case, turn if off so these notices will not show up on your site.

    You can go to WP Paginate Settings and click the Save Changes buttons so these new options are saved and then the undefined index notices should go away.

    Yeah I have debugging on during development.

    Saving changes in plugin settings did fix the notices.
    My bad for not thinking about it, or reading code a bit more. To much work lately.

    Thank you very much Alan,
    Have a Good day!

    Plugin Author maxfoundry

    (@maxfoundry)

    Hey Darko,

    Glad it is all worked out. A rating is always really helpful is you will. Just click here.

    But you can’t just release a plugin with a lot of error messages!
    Fix the plugin to run without error messages. Of course you should have error mess on in a dev env!

    Plugin Author AlanP57

    (@alanp57)

    ekandreas,

    These are not error messages. They are notices and they are not usually visible when WordPress debugging is turned off.

    Plugin Author maxfoundry

    (@maxfoundry)

    @ekandreas. please contact me a support at maxfoundry dot com.

    this issue has nothing to do with our plugin. you have posted in the forums 2x and made a review.

    so seems to me that a review before you gave us more than 4 hours to respond is not warranted especially when the issue is that you have WordPress debugging turned on.

    thanks and we’ll get you straightened out on this. but next time maybe a little more patience with plugin developers would be nice before rating. we give timely, excellent service. working off a 2 star review is tough. and not necessary in this situation.

    Plugin Author AlanP57

    (@alanp57)

    Version 2.0.1 has been released which should deal with all the unknown index notices.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Undefined index error in version 2.0.0’ is closed to new replies.