WordPress.org

Ready to get started?Download WordPress

Forums

mb.miniAudioPlayer - an HTML5 audio player for your mp3 files
[resolved] mb.miniaudioplayer Throws error on "Insert the Code" click (6 posts)

  1. nicolej
    Member
    Posted 1 year ago #

    Hi,

    I think this plugin is great but today I found a problem.

    The media files are appearing as links. I attempted to turn them back into a player by following the same procedure described in the video. When I click "Insert the code" I receive the following message:

    Notice: Undefined index: plugin_version in C:\domains\MyAuthorWebsiteWP\wp-content\plugins\wp-miniaudioplayer\maptinymce\maplayertinymce.php on line 3 Notice: Undefined index: includes_url in C:\domains\MyAuthorWebsiteWP\wp-content\plugins\wp-miniaudioplayer\maptinymce\maplayertinymce.php on line 4 Notice: Undefined index: plugins_url in C:\domains\MyAuthorWebsiteWP\wp-content\plugins\wp-miniaudioplayer\maptinymce\maplayertinymce.php on line 5 Notice: Undefined index: charset in C:\domains\MyAuthorWebsiteWP\wp-content\plugins\wp-miniaudioplayer\maptinymce\maplayertinymce.php on line 6 Notice: Undefined index: exclude_class in C:\domains\MyAuthorWebsiteWP\wp-content\plugins\wp-miniaudioplayer\maptinymce\maplayertinymce.php on line 7 Notice: Undefined index: donate in C:\domains\MyAuthorWebsiteWP\wp-content\plugins\wp-miniaudioplayer\maptinymce\maplayertinymce.php on line 14

    The lines in maplayertinymce.php are
    $plugin_version = $_GET['plugin_version'];
    $includes_url = $_GET['includes_url'];
    $plugins_url = $_GET['plugins_url'];
    $charset = $_GET['charset'];
    $exclude_class = $_GET['exclude_class'];
    ...
    $donate = $_GET['donate'];

    I don't think that anything in my WP Network has changed since last Friday.

    I'm using WP 3.5 with a Multi-site install.

    The webpage in question is: http://www.myauthorwebsite.net/tim-forbes/gallery/

    All 6 of the mp3 files were working beautifully on Friday morning. Maybe the problem isn't with the player files but I would appreciate any advice.

    Thank you!

    http://wordpress.org/extend/plugins/wp-miniaudioplayer/

  2. pupunzi
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,
    the problem is due to the update of the jquery.js to version 1.9;
    I'm going to fix this, but on your site there are other plugins that have problems with the new release of jQuery like jquery.tooltip and jquery.bigframe; it means that even if you update the mb.player to the newer version you'll still have problems...
    You should include the jquery.mb.browser just after the jquery inclusion on your wordpress theme; that should solve all your problems:
    http://pupunzi.open-lab.com/2013/01/17/jquery-mb-browser-reintroduce-the-removed-browser-object-in-jquery-1-9/

    Bye,
    Matteo

  3. nicolej
    Member
    Posted 1 year ago #

    Hi Matteo,

    Thank you for responding so soon! Much, much appreciated. We will try the new plugin. Yes, there is at least one other plugin - Collapsing Categories - which we found broken yesterday. I'm thinking the jquery fix from your other plugin will do the trick. I will get back to this thread today to hopefully mark as resolved.

    Cheers!
    Nicole

  4. nicolej
    Member
    Posted 1 year ago #

    Hello again,

    It didn't work for me. There's a chance I didn't put your files in the correct place. .../themes/my-custom-theme/js/ Is it correct to put them in that js folder?

    Thank you,
    Nicole

  5. pupunzi
    Member
    Plugin Author

    Posted 1 year ago #

    As I told you, on your WP you have other plugins that are still incompatible with query 1.9 that cause javascript conflicts. Looking at the javascript console your page fires an error:
    'undefined' is not a function (evaluating 'jQuery('.gallery a').tooltip({track:true, delay:0, showURL: false})')

    And that is related to the tooltip or gallery plugin, not to the miniaudioplayer one...
    You should try to deactivate the other and see if the player works.

    If you are trying to use the query.mb.browser js file you should put it in the theme folder and call it in the functions.php file where the others are called.
    Something like:

    wp_enqueue_script( 'mbBrowser', get_template_directory_uri() .'/js/jquery.mb.browser.js', true);

    Bye,
    Matteo

  6. nicolej
    Member
    Posted 1 year ago #

    Thank you!

    Everything is as it should be now. You pretty much rock. Your plugin is fantastic. The blue matched the website so perfectly it's scary. It's now ready to go live after this hiccup.

    Cheers!
    Nicole

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic