• I’m getting very disturbing error messages in the League Manager after updating to the last release today. I’m unable to add new matches to tournaments that I added after the upgrade. When I try, I get this error message:

    Warning: Invalid argument supplied for foreach() in /home/baba/public_html/wp-content/plugins/leaguemanager/admin/show-league.php on line 22

    I also get two other error messages when adding games to tournaments that are already in the system before I upgraded.

    Warning: mysql_real_escape_string() expects parameter 1 to be string, array given in /home/baba/public_html/wp-includes/wp-db.php on line 785
    (which was repeated four times)

    and

    WordPress database error: [You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1]
    SELECT <code>custom</code> FROM wp_leaguemanager_matches WHERE <code>id</code> =
    
    Warning: mysql_real_escape_string() expects parameter 1 to be string, array given in /home/baba/public_html/wp-includes/wp-db.php on line 785
    WordPress database error: [You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1]
    SELECT <code>custom</code> FROM wp_leaguemanager_matches WHERE <code>id</code> =
    
    Warning: mysql_real_escape_string() expects parameter 1 to be string, array given in /home/baba/public_html/wp-includes/wp-db.php on line 785
    WordPress database error: [You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1]
    SELECT <code>custom</code> FROM wp_leaguemanager_matches WHERE <code>id</code> =
    
    Warning: mysql_real_escape_string() expects parameter 1 to be string, array given in /home/baba/public_html/wp-includes/wp-db.php on line 785
    WordPress database error: [You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1]
    SELECT <code>custom</code> FROM wp_leaguemanager_matches WHERE <code>id</code> =
    
    Warning: mysql_real_escape_string() expects parameter 1 to be string, array given in /home/baba/public_html/wp-includes/wp-db.php on line 785

    We are using Baseball, one-point rule, championship (because we have pool play and bracket play). It was working before this upgrade, although the format doesn’t really match our single-elimination bracket play.

    Thanks!
    Karen

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter farrelldoc

    (@farrelldoc)

    Anyone???

    Well, I suspect that if you upgrade to the 3.6.4 version, you might be ok with your update. Can you tell us which version of the plugin your using right now? And which version of WP?

    I do see that 3.6.6 has been released as well, but haven’t managed to look at it yet to see what changes have been made.

    John

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: LeagueManager] Can't add or edit matches, SQL error messages on every function’ is closed to new replies.