WordPress.org

Forums

HTML5 jQuery Audio Player
[resolved] Warning: Missing argument 2 for wpdb::prepare (23 posts)

  1. HSuthy
    Member
    Posted 2 years ago #

    I am getting the following message:

    Warning: Missing argument 2 for wpdb::prepare(), called in /home/bourneco/public_html/wp-content/plugins/html5-jquery-audio-player-pro/player/songs/add-song.php on line 70 and defined in /home/bourneco/public_html/wp-includes/wp-db.php on line 990

    http://wordpress.org/extend/plugins/html5-jquery-audio-player/

  2. betme88
    Member
    Posted 2 years ago #

    i have the sam problem, when upgrade to wp 3.5 this morning

    Agen Poker

  3. droidzone
    Member
    Posted 2 years ago #

    Same thing here. I'm getting in all my plugins:

  4. Maeve Lander
    Member
    Plugin Author

    Posted 2 years ago #

    Thanks for reporting guys... will fix this up right away and release an update.

    Find out more: http://make.wordpress.org/core/2012/12/12/php-warning-missing-argument-2-for-wpdb-prepare/

  5. droidzone
    Member
    Posted 2 years ago #

    Yea, add any even senseless argument after the first argument, and it's fine.

  6. johnq1
    Member
    Posted 2 years ago #

    I have the lastest version and I have this same error.

    Warning: Missing argument 2 for wpdb::prepare(), called in /home/hildesho/public_html/wp-content/plugins/html5-jquery-audio-player-pro/playlist/manage-playlists.php on line 315 and defined in /home/hildesho/public_html/wp-includes/wp-db.php on line 990

  7. johnq1
    Member
    Posted 2 years ago #

    When I make this change: $wpdb->prepare( "SELECT * FROM table WHERE ID = %d AND name = %s", $id, $name );

    I then get this warning

    Warning: Invalid argument supplied for foreach() in /home/hildesho/public_html/wp-content/plugins/html5-jquery-audio-player-pro/playlist/manage-playlists.php on line 317

    Any advise?

  8. johnq1
    Member
    Posted 2 years ago #

    Here is line 317

    <?php foreach( $results as $result ): ?>

  9. droidzone
    Member
    Posted 2 years ago #

    Maybe that's the wrong line?

  10. Maeve Lander
    Member
    Plugin Author

    Posted 2 years ago #

    Guys the fix will be implemented really soon and I will release an update that solves this problem. It's not just 1 line that is a quick update, its more complex than that, and also there are some other issues with 3.5 core so please just sit tight and wait for the update - really not much point in trying a DIY fix on this... working on it as quick as I can.

  11. khildreth
    Member
    Posted 2 years ago #

    Same problem here. Hope you can get the update done soon. Thanks

  12. Maeve Lander
    Member
    Plugin Author

    Posted 2 years ago #

    Ok guys update has been released for both Free and Pro versions. Please update and these issues with the core upgrade to 3.5 should be fixed. Please post back here with any further problems using the plugin with 3.5

    Thanks.

  13. HSuthy
    Member
    Posted 2 years ago #

    I'm still getting the same error message, even after upgrading the plugin and reinstalling 3.5. It has wiped all of the songs from my playlist and won't let me re-upload them. Help!

  14. Maeve Lander
    Member
    Plugin Author

    Posted 2 years ago #

    Yikes! That's not good! I did pretty extensive testing and this didn't happen for me.... I'm hoping this is an isolated issue. Anyone else got this problem too?

    @HSuthy, if possible please can you email me privately with your site details so I can take a closer look and work out what happened? Sorry!

  15. HSuthy
    Member
    Posted 2 years ago #

    Hi EnigmaWeb, where so I find your email address?

  16. khildreth
    Member
    Posted 2 years ago #

    All of my songs are still there, but when I go to edit them, the playlist field is empty. The error message is gone, though.
    screenshot:
    http://www.noizepro.com/proofs/html5player.jpg

  17. johnq1
    Member
    Posted 2 years ago #

    The error message is gone for the Pro version and the player appeared until I added three songs to a playlist. Now when I go to the page where I placed the player it does not show up. I tried placing the code again on the page but no player.

  18. Maeve Lander
    Member
    Plugin Author

    Posted 2 years ago #

    Please can you send a link to the affected site and if you want me to look into it properly contact me privately with some temporary login details so I can check it in more detail. Thanks.

    http://www.enigmaweb.com.au/contact/

  19. becky.rogness
    Member
    Posted 2 years ago #

    The error disappeared for me after your update, but my songs won't play in IE or Firefox. Any ideas? http://www.ichooselife.org/

  20. Maeve Lander
    Member
    Plugin Author

    Posted 2 years ago #

    @becky.rogness

    Checked your site - plugin's working fine but this is a mime type issue on Firefox and earlier IE versions. Please check FAQs for solution to this one.

    Thanks

  21. Maeve Lander
    Member
    Plugin Author

    Posted 2 years ago #

    Hi all... now marking this thread resolved because the original issue of Warning: Missing argument 2 for wpdb::prepare error has now been fixed in latest version of the plugin.

    Please move any discussions on other topics to their own threads so we can all keep track of things. Thanks. :-)

  22. fyuniardo
    Member
    Posted 2 years ago #

    Hi, im using 3.5 and i just bought the plugin, unfortunately i cant add my song to the playlist.

    i can manage the playlist but cant manage/add the song to the playlist
    the ADD button seems not working
    (when i press the add song button it doesnt make any updates)

    pls help..

  23. Maeve Lander
    Member
    Plugin Author

    Posted 2 years ago #

    Hi fyuniardo, please can you post a link to your site where you have the player embedded so I can check it and see if anything obvious pops out?

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • HTML5 jQuery Audio Player
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.