Support » Plugin: Audio Player » [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.


    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.

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