I copied this from a post, as I believe it constitutes an issue.

I think it must be possible to link a Sport Player to a Sport Team but I can't figure out how to do that exactly, I can create a season -> league -> team and link them together.. but not the player. Any help on this?

Another problem I've encountered, I've added the season->league->sport teams and when I go to create content -> match the combobox says I have not added any teams yet.. ?

Comments

Alun’s picture

T0mba,
In order to add a player to a team, you need to go to the team, click edit, and a tab called players will appear, which will allow you to add the players to the team there.

With the other issue, how many leagues / seasons do you have set up, and what version of Leaguesite are you running?
Thanks
Alun

defacto-studio’s picture

When I click "Save and enter Players in match" its:

"
    * user warning: Column 'nid' in where clause is ambiguous query: SELECT wislanode.title, wislaleaguesite_player.player_id FROM wislanode LEFT JOIN wislaleaguesite_player ON wislanode.nid = wislaleaguesite_player.nid WHERE nid = 18 OR nid = 10; in /home2/dealer/main/pkg/defacto/web/html/__wisla/modules/leaguesite/leaguesite_player/leaguesite_player.admin.inc on line 411.
    * warning: Invalid argument supplied for foreach() in /home2/dealer/main/pkg/defacto/web/html/__wisla/modules/leaguesite/leaguesite_player/leaguesite_player.admin.inc on line 477.

"

When I want to do new scoring type its:

"
Fatal error: Cannot use object of type mysqli_result as array in /home2/dealer/main/pkg/defacto/web/html/__wisla/modules/leaguesite/leaguesite_league/leaguesite.scoring.admin.inc on line 114
">

When You delete socre type and add new then its problem with Leagues, when you Configure one of Leagues, name, number of weeks was deleted and we need to create new League, not only change score type.

When I want to add mach, ma main season and league have no teams, its new called: "season - score type name - Friendly" and then there are teams.

Alun’s picture

Thanks for the errors defacto,
The first error is something I need to fix, its been posted about with a fix on this post: #914468: List of player not work

I'll have to have a look at whats causing the scoring type problem. I could be using something not compatible with mysqli, along with the other issues.

Thanks
Alun

Alun’s picture

Hi defacto, I have committed the fix for the mysqli error. You need to change this line (line 114 of leaguesite.scoring.admin.inc)
from

db_query("INSERT INTO {leaguesite_relation} (sid, lid, sport_id, relation_type) VALUES (%d, %d, %d, 'friendly');", $seasons['sid'], -1, $sport_id);

to this

db_query("INSERT INTO {leaguesite_relation} (sid, lid, sport_id, relation_type) VALUES (%d, %d, %d, 'friendly');", $season['sid'], -1, $sport_id);

Hopefully that should stop that error- i'll have a look at the others as I go through.
Thanks
Alun

Alun’s picture

defacto, the fix I committed should have helped with the score type issues - deleting a score type causes all sorts of errors if a league is currently using that score type - probably explaining the other errors you are outlining.
Can you please let me know if you still have them after setting up a new scoring type and supply error messages?
Also I will need to know your Leaguesite version.
Many thanks
Alun

Alun’s picture

Status: Active » Fixed

Closing this due to inactivity - I assume the error stopped.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.