[Plugin: Audio Player] [Plugin: Audio-Player] 1 Pixel Out Needs to Update Plugin to Fix Variables
-
https://sm-wordpress.com/plugins
You can view this plugin working properly on the newest version of wordpress today 2.9, but it doesn’t appear that www.remarpro.com has the most recent version on file, as you can download 2.0 beta 6 from the plugins website.
https://wpaudioplayer.comMy website where the plugin has been modified per my requested fix, and working VERY SIMPLY by linking to MP3 files. By linking I mean a regular
<a href="website/musicfile.mp3"></a>
Plugin Fixed: Audio-Player
Error Shown:
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 531Reason: 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.
Fix:
Line 119-120
Previously:
$this->pluginPath = WP_CONTENT_DIR . “/plugins/” . plugin_basename(dirname(__FILE__));
$this->pluginURL = WP_CONTENT_URL . “/plugins/” . plugin_basename(dirname(__FILE__));Now:
$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.
I am requesting the author to post a reply here when the code has been fixed officially on the site and hopefully updated onto www.remarpro.com for others to find more easily the most current version.
- The topic ‘[Plugin: Audio Player] [Plugin: Audio-Player] 1 Pixel Out Needs to Update Plugin to Fix Variables’ is closed to new replies.