WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Warning: Missing argument 2 for wpdb::prepare().. HELP ! (7 posts)

  1. Thycos
    Member
    Posted 1 year ago #

    Hi guys i need extremly help !
    i've that error on my website now and i didn't change anything, was just working for make a good website and that error comes out when i activated the template...

    Warning: Missing argument 2 for wpdb::prepare(), called in /membri/unitedeuropeantankers/wp-content/themes/welcome_inn/library/tfuse_framework/functions/core.php on line 21 and defined in /membri/unitedeuropeantankers/wp-includes/wp-db.php on line 990

    How i can fix it ? I need a plugin ?! Or i need to change something ?!
    It's really urgent and important i hope you'll help me !
    Thx !

  2. ClaytonJames
    Member
    Posted 1 year ago #

  3. Thycos
    Member
    Posted 1 year ago #

    Yep mate i saw that one, but i dunno how to resolve it. Someone can explain to me better ?

  4. Thycos
    Member
    Posted 1 year ago #

    Guys i solved the problem with that string :

    $wpdb->prepare( "SELECT * FROM table WHERE id = %d", $id );

    but when i put that the errors disappear ofc, but disappear my slider too..! What's the problem ?

  5. Thycos
    Member
    Posted 1 year ago #

    Guys i've this code actualy..

    ($wpdb->prepare("SELECT COUNT(meta_key) FROM $wpdb->postmeta WHERE meta_key = '$meta' AND post_id = $post_id; " ));

    can you write to me the right code how it need to be ?
    please help thx.. !

  6. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    Have you contacted the theme developers for help?

    http://themefuse.com/wp-themes-shop/welcome-inn/

    Commercial themes are not supported on these forums. Further that theme does not comply with the GPL license so it's definitely not supported here.

  7. Thycos
    Member
    Posted 1 year ago #

    Ow Ok Thx !

Topic Closed

This topic has been closed to new replies.

About this Topic