• Hello,

    I think this problem has already been spoken but i’m not english and i don’t understand very well. Sorry if i do mistakes…

    I have 2 errors with PHPLeague.

    (1) When i click the cup icon on my admin page, i have 3 messages as :

    Warning: Missing argument 2 for wpdb::prepare(), called in wp-content/plugins/phpleague/assets/js/tinymce/window.php on line 35 and defined in wp-includes/wp-db.php on line 992

    Warning: Missing argument 2 for wpdb::prepare(), called in wp-content/plugins/phpleague/assets/js/tinymce/window.php on line 38 and defined in wp-includes/wp-db.php on line 992

    Warning: Missing argument 2 for wpdb::prepare(), called in wp-content/plugins/phpleague/assets/js/tinymce/window.php on line 43 and defined in wp-includes/wp-db.php on line 992

    (2)In my website, when i want to see my page, the shortcodes about “table” and “fixtures” are ok but the shortcode about “fixture”

    [phpleague type=fixture id=1]

    displays an error message :

    Warning: Missing argument 2 for PHPLeague_Database::is_fixture_exists(), called in wp-content/plugins/phpleague/libs/phpleague-front.php on line 257 and defined in wp-content/plugins/phpleague/libs/phpleague-database.php on line 479

    If someone knows how to correct this, it will be very nice!

    Thank you!

    https://www.ads-software.com/plugins/phpleague/

Viewing 4 replies - 1 through 4 (of 4 total)
  • any sugestions????

    Bro, i got the solution.
    Search “prepare()” or your line error
    this is my code with error

    $leagues  = $wpdb->get_results($wpdb->prepare("SELECT id, name, year FROM $wpdb->league ORDER BY year DESC, name ASC"));

    and this is whiout error

    $leagues  = $wpdb->get_results($wpdb->prepare("SELECT id, name, year FROM $wpdb->league ORDER BY year DESC, name ASC", null));

    hope help

    Where is this, i cannot locate it

    Where is this, i cannot locate it

    I did some grep. the code located at two diff location

    1. phpleague/assets/js/tinymce/window.php on line 35
    2. phpleague/inc/widgets/ranking.php on line 105

    just a note, appending the null on second missing parameters does seem to suppress the error but I’m not sure if it a real solution. You might need to wait for the plugin developer to reply.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Missing argument : Prepare and Fixture’ is closed to new replies.