Opened 10 years ago

Closed 10 years ago

#4268 closed Bug (fixed)

Javascript problem when adding a new torrent

Reported by: splash Owned by:
Priority: Normal Milestone: 2.32
Component: Web Client Version: 2.31
Severity: Normal Keywords:


I compiled transmission 2.31 on my ARM NAS - linux flavour and I am having a problem with the web interface when I am trying to add a new torrent. The modal window shows up, I can add the torrent fine when I click the submit button nothing happens. If I refresh the page, I can see that the torrent has been added and is downloading. Using Firebug on Mozilla 3.6 this is what I get:

b.handleError is not a function
jquery.form.min.js (line 11)

This is the line that I used to configure transmission at compilation in case it helps:

./configure --prefix=/share/Public/transmission --disable-nls --disable-gtk --enable-lightweight LIBCURL_CFLAGS=-I/share/Public/transmission/opt/include LIBCURL_LIBS=-L/share/Public/transmission/opt/lib -lcurl OPENSSL_CFLAGS=-I/share/Public/transmission/opt/include/ OPENSSL_LIBS=-lcrypto

Other then that everything seems to work fine.

Change History (9)

comment:1 Changed 10 years ago by gunzip

i can confirm this behavior with both Firefox/4.0.1 and Google Chrome 11 in Linux Debian.

as splash says, the torrent is added but doesn't display until you 'Refresh' the page.

comment:2 Changed 10 years ago by splash

IE 8 debugger is a bit more helpfull ...

Object doesn't support this property or method     jquery.form.min.js, line 11 character 4896.

comment:3 Changed 10 years ago by bulljit

I can't seem to reproduce this in OSX, but I suspect it has to do with updating jQuery > 1.5 which doesn't play nice with the older jquery.form.js.

Can you guys try to update to the latest version of jquery.form and see if this resolves the issue?

comment:4 Changed 10 years ago by livings124

Done r12450

comment:5 Changed 10 years ago by splash

@bulljit - I can confirm that on OSX the problem doesn't exist. I tried upgrading jquery.form to the latest version but once back on Windows with Mozilla 4.0.1, IE 9.0, Chrome the problem still persists. @livings124 - I downloaded the jquery.form from the trunk replaced the old one but again using all the above browsers couldn't get it to work. With IE9 debugger, I managed to get this

SCRIPT438: Object doesn't support property or method 'handleError' 
jquery.form.min.js, line 11 character 4945

comment:6 Changed 10 years ago by livings124

Is that with r12450 or r12451? r12451 updated the min version of jquery.form

comment:7 Changed 10 years ago by gunzip

@bulljit: after updating jquery.form.js and jquery.form.min.js both Firefox and Chrome are working normally again, i.e., you don't have to manually refresh the page anymore to get the display. you called that one right, and from what i can see both files needed updating.

@splash: if you do a re-test make sure to clear out your browsers cache.

comment:8 Changed 10 years ago by splash

Working fine with r12451. Thanks.

comment:9 Changed 10 years ago by livings124

  • Milestone changed from None Set to 2.32
  • Resolution set to fixed
  • Status changed from new to closed

Thanks for solving that one!

Note: See TracTickets for help on using tickets.