WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. ksnyde
    Member
    Posted 1 year 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.

    http://wordpress.org/extend/plugins/debug-objects/

  2. ksnyde
    Member
    Posted 1 year ago #

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

  3. Frank
    Member
    Plugin Author

    Posted 1 year 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

About this Topic