Title: [Plugin: Audio Player] WP_DEBUG &#8211; Old user level code
Last modified: August 19, 2016

---

# [Plugin: Audio Player] WP_DEBUG – Old user level code

 *  [Jandal](https://wordpress.org/support/users/jandal/)
 * (@jandal)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/plugin-audio-player-wp_debug-old-user-level-code/)
 * Hello doryphores,
 * I’m currently experiencing the WSoD (White Screen of Death) on one of my WP installs
   and I’m trying to reduce the number of issues that could cause it. I am running
   a large number of plugins and yours happens to be one of them.
 * I’m running my local WP install in
 * `define('WP_DEBUG', true);`
 * mode, this can be added to wp-config.php and I’m turning on 1 plugin at a time.
   I found the following issue/s;
 * * The add_submenu_page function needs updating. I’m receiving errors on the dashboard.
 * Solution:
 *     ```
       function addAdminPages() {
       			global $wp_version;
       			//$pageName = add_options_page("Audio player options", "Audio Player", 8, $this->optionsPageName, array(&$this, "
       			$pageName = add_options_page("Audio player options",  "Audio Player", 'manage_options', $this->optionsPageName, array(&$this, "outputOptionsSubpanel"));
       			add_action("admin_head-" . $pageName, array(&$this, "addAdminHeaderCode"), 12);
       			// Use the bundled jquery library if we are running WP 2.5 or above
       			if (version_compare($wp_version, "2.5", ">=")) {
       				wp_enqueue_script("jquery", false, false, "1.2.3");
       			}
       		}
       ```
   
 * If you could please check your plugin with WP_DEBUG mode on and resolve any messages
   that come up for the next release, this would be amazing.
 * Thank you for your time and creating a great plugin.
    Thanks, =-)
 * [http://wordpress.org/extend/plugins/audio-player/](http://wordpress.org/extend/plugins/audio-player/)

The topic ‘[Plugin: Audio Player] WP_DEBUG – Old user level code’ is closed to new
replies.

 * ![](https://s.w.org/plugins/geopattern-icon/audio-player.svg)
 * [Audio Player](https://wordpress.org/plugins/audio-player/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/audio-player/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/audio-player/)
 * [Active Topics](https://wordpress.org/support/plugin/audio-player/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/audio-player/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/audio-player/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [Jandal](https://wordpress.org/support/users/jandal/)
 * Last activity: [15 years, 3 months ago](https://wordpress.org/support/topic/plugin-audio-player-wp_debug-old-user-level-code/)
 * Status: not resolved