Title: Bug in plugin: error when saving changes to Pages
Last modified: August 21, 2016

---

# Bug in plugin: error when saving changes to Pages

 *  [fogcity](https://wordpress.org/support/users/fogcity/)
 * (@fogcity)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/bug-in-plugin-error-when-saving-changes-to-pages/)
 * i am seeing errors from this plugin when editing Pages. only happens when this
   plugin is loaded and points to specific lines within your validate_plugin_settings()
   function. the change below seems to fix. can you incorporate same or similar 
   in future updates?
 * change this:
 *     ```
       public function validate_plugin_settings(){
       			if(!empty($_POST)){
       ```
   
 * to this:
 *     ```
       public function validate_plugin_settings(){
       			if(!empty($_POST)){
       if (!isset ($_POST[$this->db_prefix.'reset'])) return;
       if (!isset ($_POST[$this->db_prefix.'total_instances'])) return;
       ```
   
 * [https://wordpress.org/plugins/page-scroll-to-id/](https://wordpress.org/plugins/page-scroll-to-id/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [malihu](https://wordpress.org/support/users/malihu/)
 * (@malihu)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/bug-in-plugin-error-when-saving-changes-to-pages/#post-4802798)
 * Thanks for the feedback. I’ll examine further and add such fix on the next update.
 *  Thread Starter [fogcity](https://wordpress.org/support/users/fogcity/)
 * (@fogcity)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/bug-in-plugin-error-when-saving-changes-to-pages/#post-4802814)
 * Update: this error may only occur if the filter is set to “a”. in chich case 
   you are possibly running this on all links on all admin pages? in any case it
   would seem smart to not allow dumb settings or prevent them from causing errors.
 *  Plugin Author [malihu](https://wordpress.org/support/users/malihu/)
 * (@malihu)
 * [12 years ago](https://wordpress.org/support/topic/bug-in-plugin-error-when-saving-changes-to-pages/#post-4802867)
 * I’ve just tested this in WP 3.9 and can’t see any errors. The plugin code does
   not run on admin pages. By filter you mean the ‘Selector(s)’ field in plugin 
   settings?

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Bug in plugin: error when saving changes to Pages’ is closed to new replies.

 * ![](https://ps.w.org/page-scroll-to-id/assets/icon-256x256.png?rev=1401043)
 * [Page scroll to id](https://wordpress.org/plugins/page-scroll-to-id/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/page-scroll-to-id/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/page-scroll-to-id/)
 * [Active Topics](https://wordpress.org/support/plugin/page-scroll-to-id/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/page-scroll-to-id/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/page-scroll-to-id/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [malihu](https://wordpress.org/support/users/malihu/)
 * Last activity: [12 years ago](https://wordpress.org/support/topic/bug-in-plugin-error-when-saving-changes-to-pages/#post-4802867)
 * Status: not resolved