The torrent node editing (preview or saving) gives error
Referencing to the file used in the Torrent file field is not allowed.
where 'Torrent file' is the name of my field of "Torrent" type.
In case of two torrent files, the above error appears twice.
This error is raised by row 424 of filefield/filefield_widget.inc of filefield-6.x-3.1 module:
if ($references['filefield'] == 0) {
form_error($element, t('Referencing to the file used in the %field field is not allowed.', array('%field' => $element['#title'])));
}
This error did not appear with 9.2-alpha3.
Don't know really what to debug.
Comments
Comment #1
liquixis commentedIt seems that it's a FileField issue.
#441280: Editing node causes Referencing to the file used in the field is not allowed (and also #466104: Referencing to the file used in the field is not allowed (?))
I'll try to fix it anyway, but I don't promise....
Comment #2
liquixis commentedComment #3
liquixis commentedComment #4
liquixis commentedhttp://drupal.org/node/441280#comment-1827898
Comment #5
ask commentedThanks, the patched filefield library works (!) after update to bittorrent-HEAD version from CVS.
Found the bittorrent-HEAD buggy sometimes. Am I right that it's no need to report those bugs before the 6.x-10-dev is published?
Is there any IRC channel for developers of the module?
Comment #6
liquixis commentedYes, you are right, also I have to notice that 10.x release will never be published, because of some problems with version numbers:
#502164: Cannot create module branch "DRUPAL-6--10" in CVS
#498130: Correct version numbers
Currently I am the only developer of the module. bradfordcp currently busy with other projects ( http://drupal.org/node/440838 ).
Comment #7
ask commentedOk, I see... But it does not seem to be a problem just to stay in 9.x versions numbering if they wouldn't manage to 'rollback' those versions for you (which is not the case if they really use the native CVS server).
Anyway, thanks for your efforts in moving the project forward. I also plan to join the development process with active contributions to this module later this winter, after changing the job.
Comment #9
quicksketchI'm reopening this issue because the patch in #441280: Editing node causes Referencing to the file used in the field is not allowed will not be applied. I think this is a fundamental problem with BitTorrent module, since no other module extending FileField requires this patch.
Comment #10
VitSSS commentedI found problem. Mistake in function bt_torrent_elements()
work code:
Sorry. I'm mistake...
Comment #11
mchelenSubscribing.
Comment #12
ddorian commentedany update on this? Because patch (http://drupal.org/node/441280#comment-1827898) doesn't work on Filefield 3.2 Im using Bittorrent 9.2-alpha6
Comment #13
ianchov commentedAny new info...
Curently the error is here..
Comment #14
ianchov commentedThe "derivative"" patch is working....
Comment #15
Elvys commentedComment #16
Elvys commentedHi,
how did you made it work?
I've just replaced the code with the patch but the "Referencing to the file used in the field is not allowed" message still appears...
does this code have something to do with it?
I don't know where to put it, I have no clue about PHP...
Thanx in advance!
Comment #17
mchelenThe patch from #4 applies ok to filefield 6.x-3.7 but the error still appears.