WordPress.org

Ready to get started?Download WordPress

Forums

PHPLeague
Missing argument : Prepare and Fixture (5 posts)

  1. BobiBob
    Member
    Posted 1 year ago #

    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!

    http://wordpress.org/plugins/phpleague/

  2. francolpm
    Member
    Posted 12 months ago #

    any sugestions????

  3. francolpm
    Member
    Posted 12 months ago #

    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

  4. dyrer
    Member
    Posted 11 months ago #

    Where is this, i cannot locate it

  5. chaoskaizer
    Member
    Posted 11 months ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags