Debug Objects
[resolved] Disabling debug objects causes fatal error (3 posts)

  1. ksnyde
    Posted 3 years ago #

    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.


  2. ksnyde
    Posted 3 years ago #

    BTW, I did look through my git repositories to make sure nothing had changed and it definitely has NOT changed.

  3. Frank Bueltge
    Plugin Author

    Posted 3 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Debug Objects
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic