Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
Hi jthorson!
I am trying the registration process and i discovered a problem.
When i register a team with my admin account, the team is registred with no problems.
When i am trying to create a new team with another account (not admin), all to seems to work well, but the team doesn't appear in the teams list!
Do you see what is the problem ?
Comment | File | Size | Author |
---|---|---|---|
#6 | jthorsonscreenshot.jpg | 120.9 KB | MasterChief |
Comments
Comment #1
jthorson CreditAttribution: jthorson commentedPlease verify that you are using the latest version of the software.
There were two related issues which were preventing teams from appearing in the team list ... for example, see #1085868: Create Team with authenticated user not showing up in league team list.
Comment #2
jthorson CreditAttribution: jthorson commentedJust for clarities sake (and to avoid having to dig through the queue), this problem can arise if you are not using the latest -Dev version of the Date module ... and is indirectly related to #1075530: Adding (or editing) a team after enabling 'ult_registration' results in mysqli_real_escape_string() warning.
Comment #3
MasterChief CreditAttribution: MasterChief commentedHi again jthorson!
I am using the latest version of ULT and 6.x-2.x-dev of Date.
So it's another problem and i check my logs i don't have an error message :(
An idea for this problem ?
Comment #4
jthorson CreditAttribution: jthorson commentedCan you attach a screenshot of your ult_team content type from admin/content/node-type/ult-team/fields?
Comment #5
jthorson CreditAttribution: jthorson commentedComment #6
MasterChief CreditAttribution: MasterChief commentedI am attaching the screenshot :)
If you want me to do some tests i am on irc #drupal
Comment #7
jthorson CreditAttribution: jthorson commentedK ... you've got all the correct fields ... In the database, what is the value of the 'field_ult_teamparent' column for that particular team?
Comment #8
MasterChief CreditAttribution: MasterChief commentedI checked the database and the value of field_ult_teamparent_nid is 6.
Comment #9
jthorson CreditAttribution: jthorson commentedCan you provide an export of your ult_teamlist view?
Comment #10
MasterChief CreditAttribution: MasterChief commentedHere the export of ult_teamlist view :
Comment #11
jthorson CreditAttribution: jthorson commentedThe module has only been tested with Views 2 ... if you want to use View3 (alpha), I'm afraid you're on your own from a debugging point of view, as I don't have any experience with it.
From a support perspective, I'm willing to support the 'recommended' version of integrated modules ... but it's difficult to develop integration for modules as complex as views, especially if there is no developer documentation (which is the case for D6 and Views 3).
Comment #12
MasterChief CreditAttribution: MasterChief commentedHi jthorson i found what is the problem and it's not views!
The value of field_ult_teamparent_nid is 6 but it must be 670 on my install !!!
The problem is when i register in another league the value stay at 6, maybe the value is cut or another thing ?
I see another strange thing and i think it's linked, when i check a team create by an authenticated user i don't see the field League/Division on the team page.
I tried to enter 670 and the team appears in the list, so the value is wrong :(
Comment #13
jthorson CreditAttribution: jthorson commentedWell ... that would certainly explain the symptoms ... whatever is truncating the value in your database would likely also interfere with the cck field validation; which would result in the field not being displayed on the team page.
As for why the field is being truncated, I don't even have a guess ... my suggestion would be to install the devel module, go into the code where the node is initially saved, and add a "dpm($node);" line directly before the node_save command ... if the field value is correct there, but isn't correct inside the database; then you've got me stumped.
As for where you would need to add this debug code, it depends on which ULT modules you have installed. Can you provide the list of ULT modules which are active, so that I can direct you to the appropriate file/line number? (Alternatively, what is the sequence of links that you are clicking on in order to create the team ... is it "Registration"->"Click here to add a new team", or simply an "Add Team" tab at the top of the league page?)
Comment #14
MasterChief CreditAttribution: MasterChief commentedI activated all modules except ult waivers.
I am clicking in a division on registration => click here to add a new team
Comment #15
jthorson CreditAttribution: jthorson commentedI can't see anything that could be causing your symptom ... The code automatically sets the 'team parent' value when it builds the form, and I depend on Drupal's internal functionality to store the value ... There's really nowhere that I can see how the code could break in the way you describe.
As far as troubleshooting, install the devel module and add some debug statements.
ult_main.module (around line 326)
Add a line after $parentnid = check_plain(arg(2));
Or use a hook_form_alter routine to add a custom validation handler, and use it to make sure the proper team_parent value is getting passed on when the form is submitted ...
Or maybe you have another module that is interfereing ... disable all other modules (except those required by ULT) and see if the problem persists ...
Other than that ... without direct access to your site/code, I don't know how I can help further.
Comment #16
MasterChief CreditAttribution: MasterChief commentedI add the line for devel and the value display is right.
When it's not an admin the league/division value doesn't want to be save correctly, if i am going with an admin account on the same team just click edit team info and save => it works!
the field_ult_teamparent field is a select list maybe it's the problem ?
EDIT :
I just install the new version and now it works you changed something which fixed the problem in your 7th may commits, what i don't know but something was the problem. Really strange, do you see what you done made an effect on this ?
Comment #17
jthorson CreditAttribution: jthorson commentedNope ... I haven't changed anything that would affect this ... it's more likely that something was corrupted (code, a view, whatever), and in installing the most recent version corrected it.
In any case, glad to hear it's working!
Comment #18
MasterChief CreditAttribution: MasterChief commentedMe too because i was going to be totally crazy lmao :)