Title: [Plugin: WP-Paginate] PHP Fatal Error when using Ajax?
Last modified: August 20, 2016

---

# [Plugin: WP-Paginate] PHP Fatal Error when using Ajax?

 *  [jungalist](https://wordpress.org/support/users/jungalist/)
 * (@jungalist)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/plugin-wp-paginate-php-fatal-error-when-using-ajax/)
 * When clicking on a page number, the Ajax progress indicator pops up, but the 
   next page does not appear and my PHP log records: PHP Fatal error: Call to a 
   member function get() on a non-object in \httpdocs\wp-includes\query.php on line
   27
 * However, if I click on the next or previous link, the whole page reloads and 
   it properly pages
 * If I go into the paginate_loop function in wp-paginate.php and I edit the class
   of the a tags so the no longer say ‘page’ then the page links work, but they 
   cause a full postback instead of just loading the pager itself.
 * I am not even sure if the Ajax bit is native functionality for wp-paginate as
   I have inherited this code, but it seems to be. I would like to have this paging
   working without the full postback.
 * Any pokes in the right right direction would be appreciated.
 * [http://wordpress.org/extend/plugins/wp-paginate/](http://wordpress.org/extend/plugins/wp-paginate/)

The topic ‘[Plugin: WP-Paginate] PHP Fatal Error when using Ajax?’ is closed to 
new replies.

 * ![](https://ps.w.org/wp-paginate/assets/icon-128x128.png?rev=1566512)
 * [WP-Paginate](https://wordpress.org/plugins/wp-paginate/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-paginate/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-paginate/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-paginate/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-paginate/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-paginate/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [jungalist](https://wordpress.org/support/users/jungalist/)
 * Last activity: [14 years, 1 month ago](https://wordpress.org/support/topic/plugin-wp-paginate-php-fatal-error-when-using-ajax/)
 * Status: not resolved