Plugin Fixed: Audio-Player (http://wpaudioplayer.com/)
Summary: Audio Player plugin was outdated on WordPress.org, and although the newer version 2 was posted on the authors website, the plugin was using an incorrect PHP variable to detect the plugins directory, causing issues for anyone who doesn’t leave plugins in the default directory. After contacting the author of the plugin, he updated the plugin and also posted it on wordpress.org to make it easier to access. Thankfully this means future updates of the plugin will all work for SM-Wordpress Core Group members. Detail on this issue is posted below.
Warning: include(HIDDEN TO PROTECT MY SERVER/plugins/audio-player/php/options-panel.php) [function.include]: failed to open stream: No such file or directory in HIDDEN TO PROTECT MY SERVER on line 531
Warning: include() [function.include]: Failed opening ‘HIDDEN TO PROTECT MY SERVER/plugins/audio-player/php/options-panel.php’ for inclusion (include_path=’.:/usr/local/php5/lib/php’) in HIDDEN TO PROTECT MY SERVER/plugins/audio-player/audio-player.php on line 531
Reason: Your code uses the WP_CONTENT_DIR to find the plugin directory, rather then the WP_PLUGIN_DIR. Since my wordpress install does not have the plugins folder inside the content folder, your plugin breaks on my site.
$this->pluginPath = WP_CONTENT_DIR . “/plugins/” . plugin_basename(dirname(__FILE__));
$this->pluginURL = WP_CONTENT_URL . “/plugins/” . plugin_basename(dirname(__FILE__));
$this->pluginPath = WP_PLUGIN_DIR . “/” . plugin_basename(dirname(__FILE__));
$this->pluginURL = WP_PLUGIN_URL . “/” . plugin_basename(dirname(__FILE__));
You may also need to change the PRE2.6 section at the top to use WP_PLUGIN_XXX instead of content, or maybe both I’m not sure. Please use the proper variables in the future so I don’t have to fix your plugin on my sites after updates! Thanks.