Title: Error when desactivate the plugin
Last modified: June 12, 2019

---

# Error when desactivate the plugin

 *  Resolved [spoonconcept](https://wordpress.org/support/users/pierredieudonne/)
 * (@pierredieudonne)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/error-when-desactivate-the-plugin/)
 * Hello,
 * we can’t desactivate or remove “WP-PageNavi”
 * When we desactivate the plugin, we have errors like
 * Uncaught Error: Call to undefined function wp_pagenavi() in /public_html/wp-content/
   themes/News2-Child/category.php:112 Stack trace: #0 /public_html/wp-includes/
   template-loader.php(78): include() #1 public_html/wp-blog-header.php(19): require_once(‘/
   home/cire8056/…’) #2 public_html/index.php(17): require(‘/…’) #3 {main} thrown
   in /public_html/wp-content/themes/News2-Child/category.php on line 112
 * What can we do to solve this bug ?
 * Thank you.
 * Regard.

Viewing 1 replies (of 1 total)

 *  Plugin Author [Lester Chan](https://wordpress.org/support/users/gamerz/)
 * (@gamerz)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/error-when-desactivate-the-plugin/#post-11663815)
 * That is your theme issue. Your theme has hardcoded to use WP-PageNavi

Viewing 1 replies (of 1 total)

The topic ‘Error when desactivate the plugin’ is closed to new replies.

 * ![](https://ps.w.org/wp-pagenavi/assets/icon.svg?rev=977997)
 * [WP-PageNavi](https://wordpress.org/plugins/wp-pagenavi/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-pagenavi/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-pagenavi/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-pagenavi/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-pagenavi/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-pagenavi/reviews/)

## Tags

 * [desactivate](https://wordpress.org/support/topic-tag/desactivate/)
 * [pagination](https://wordpress.org/support/topic-tag/pagination/)
 * [solve](https://wordpress.org/support/topic-tag/solve/)
 * [uncaught error](https://wordpress.org/support/topic-tag/uncaught-error/)
 * [undefined function](https://wordpress.org/support/topic-tag/undefined-function/)

 * 1 reply
 * 2 participants
 * Last reply from: [Lester Chan](https://wordpress.org/support/users/gamerz/)
 * Last activity: [6 years, 11 months ago](https://wordpress.org/support/topic/error-when-desactivate-the-plugin/#post-11663815)
 * Status: resolved