WordPress.org

Forums

Audio Player
WP_DEBUG - Old user level code (1 post)

  1. Jandal
    Member
    Posted 4 years ago #

    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/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic