Novik/ruTorrent

Files right click theWebUI.dirs[theWebUI.dID] is undefined

Csaba27 opened this issue · 8 comments

Please complete the following tasks.

  • Web browser cache cleared
  • Web browser and ruTorrent version provided

Tell us about your environment

Web browser: latest firefox and chrome

What were you trying to do?

Click files section and rigth click and throws error

What us the error message?

Firefox:
S error: [https://***/rutorrent/ line 2 > injectedScript : 2818] TypeError: theWebUI.dirs[theWebUI.dID] is undefined

Chrome:
JS error: [ : 2818] Uncaught TypeError: Cannot read properties of undefined (reading 'isDirectory')

Give us the stack trace.

Firefox:
TypeError: theWebUI.dirs[theWebUI.dID] is undefined from plugin.ui.handleTorrentFilesMenu@https:///rutorrent/ line 2 > injectedScript:2818:23
plugin.ui.init/theWebUI.createFileMenu@https://***/rutorrent/ line 2 > injectedScript:2987:31
flsSelect@https://
/rutorrent/js/webui.js?v=429:1295:19
onselect@https:///rutorrent/js/webui.js?v=429:53:40
dxSTable.prototype.selectRow@https://
/rutorrent/js/stable.js?v=429:1129:8

Chrome:
Uncaught TypeError: Cannot read properties of undefined (reading 'isDirectory') from TypeError: Cannot read properties of undefined (reading 'isDirectory')
at plugin.ui.handleTorrentFilesMenu (:2818:51)
at theWebUI.createFileMenu (:2987:31)
at Object.flsSelect (https:///rutorrent/js/webui.js?v=429:1295:19)
at dxSTable.onselect (https://
/rutorrent/js/webui.js?v=429:53:40)
at dxSTable.selectRow (https:///rutorrent/js/stable.js?v=429:1129:8)
at dxSTable.handleClick (https://
/rutorrent/js/stable.js?v=429:265:8)
at HTMLTableSectionElement. (https:///rutorrent/js/common.js?v=429:166:64)
at HTMLTableSectionElement.dispatch (https://
/rutorrent/js/jquery.js?v=429:2:39997)
at v.handle (https://***/rutorrent/js/jquery.js?v=429:2:37968)

  1. Can you be more specific about what caused this to happen? Simply right clicking on a file does not cause this problem to happen for me. I tried a torrent with folders as well.

  2. Did you clear your web browser cache when upgrading versions?

  1. There are only problems with 2 webuis, even though there are 6 on the server, there are only problems with these two. I am thinking about what data can be send to you for detect the problem. If you want I can send you access, to login and check it.
  2. Yes the web browser cache already cleared

Interesting, the problem solved, I deleted the /share/users/[exampleuser]/ settings and tmp directories, now i can click files section

share/users/exampleuser/settings .dat files caused the problem, I already deleted them.

Do you know which version of ruTorrent those old settings files are from? This is likely a version upgrade issue.

There were 4.2 versions, but as soon as a new version came out, I immediately upgraded it, but there were no errors immediately after the version update.