Undefined index error in version 2.0.0
-
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 ); }
The topic ‘Undefined index error in version 2.0.0’ is closed to new replies.