WordPress.org

Ready to get started?Download WordPress

Forums

AVH Extended Categories Widgets
[resolved] Missing argument 2 for wpdb::prepare() (5 posts)

  1. dexpositoromero
    Member
    Posted 1 year ago #

    Delivering the following message:

    Warning: Missing argument 2 for wpdb::prepare(), called in /home/content/92/10109692/html/wp-content/plugins/extended-categories-widget/libs/avh-db.php on line 62 and defined in /home/content/92/10109692/html/wp-includes/wp-db.php on line 990

    http://wordpress.org/extend/plugins/extended-categories-widget/

  2. gerobe
    Member
    Posted 1 year ago #

    Here is a fix, that worked for me. Change line 62 in avh-db.php from

    return $wpdb->prepare('SHOW COLUMNS FROM ' . $table);

    into

    return $wpdb->prepare('SHOW COLUMNS FROM ' . $table,null);

  3. dexpositoromero
    Member
    Posted 1 year ago #

    Appreciated!
    Anyway, I have uninstalled it... I don't even know why I was using it in first place :^P

  4. eugeberzal
    Member
    Posted 1 year ago #

    This worked for me. Thanks so much. I hope that the author fixes the plugin anyway. Regards

  5. Brian KD
    Member
    Posted 1 year ago #

    Thanks! :) Worked for me too. Bests,
    -Brian

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.