Title: Disabling debug objects causes fatal error
Last modified: August 20, 2016

---

# Disabling debug objects causes fatal error

 *  Resolved [ksnyde](https://wordpress.org/support/users/ksnyde/)
 * (@ksnyde)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/disabling-debug-objects-causes-fatal-error/)
 * I was having a javascript issue with debug-objects (the problem was likely caused
   outside of debug-objects) and on a whim I thought I’d just disable debug-objects
   and then re-enable it. Sort of the CTRL-ALT-DEL of WordPress. Anyway, tragedy
   struck immediately. I disabled the plugin through the admin interface and now
   I can’t load either admin or frontend interface because it’s giving me the following
   fatal error:
 * Fatal error: Call to undefined function add_submenu_page() in [FILE_PATH] on 
   line 97.
 * Now this reference is to a plugin that I have developed and not changed in months.
   Line 97 is:
 * add_submenu_page ( LG_TRANSACTIONAL_MENU , $plural ,$plural,”manage_options”,”
   edit.php?post_type={$this->custom_type_slug_name}”);
 * I’m completely confused. Any help at all to get me pointed in the right direction
   would be hugely useful.
 * [http://wordpress.org/extend/plugins/debug-objects/](http://wordpress.org/extend/plugins/debug-objects/)

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

 *  Thread Starter [ksnyde](https://wordpress.org/support/users/ksnyde/)
 * (@ksnyde)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/disabling-debug-objects-causes-fatal-error/#post-3234358)
 * BTW, I did look through my git repositories to make sure nothing had changed 
   and it definitely has NOT changed.
 *  Plugin Author [Frank Bueltge](https://wordpress.org/support/users/bueltge/)
 * (@bueltge)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/disabling-debug-objects-causes-fatal-error/#post-3234402)
 * Hm, not easy to help you. Debug Objects read only data, no changes on core or
   objects. Maybe the core was change in the include of the function add_submenu_page()
   and you must change the hook, in there work this function.

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

The topic ‘Disabling debug objects causes fatal error’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/debug-objects_d0d0d1.svg)
 * [Debug Objects](https://wordpress.org/plugins/debug-objects/)
 * [Support Threads](https://wordpress.org/support/plugin/debug-objects/)
 * [Active Topics](https://wordpress.org/support/plugin/debug-objects/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/debug-objects/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/debug-objects/reviews/)

## Tags

 * [fatal error](https://wordpress.org/support/topic-tag/fatal-error/)

 * 2 replies
 * 2 participants
 * Last reply from: [Frank Bueltge](https://wordpress.org/support/users/bueltge/)
 * Last activity: [13 years, 4 months ago](https://wordpress.org/support/topic/disabling-debug-objects-causes-fatal-error/#post-3234402)
 * Status: resolved