Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
2 tasks done
Csaba27 opened this issue Jan 18, 2024 · 9 comments
Closed
2 tasks done

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

Csaba27 opened this issue Jan 18, 2024 · 9 comments
Labels

Comments

@Csaba27
Copy link

Csaba27 commented Jan 18, 2024

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)

@stickz
Copy link
Collaborator

stickz commented Jan 18, 2024

  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?

@Csaba27
Copy link
Author

Csaba27 commented Jan 18, 2024

  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

@Csaba27
Copy link
Author

Csaba27 commented Jan 18, 2024

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

@stickz
Copy link
Collaborator

stickz commented Jan 20, 2024

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

@Csaba27
Copy link
Author

Csaba27 commented Jan 21, 2024

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.

@w4hnsinn
Copy link

w4hnsinn commented Jun 7, 2024

This was caused (for me, v.4.2.9) by clicking "View > As List" in the Files tab of a torrent with several files selected. I have no clue what that option does, so I wanted to check it out.

Teach me to assume there are non-app-breaking options in the right-click menu..

Will try to delete the .dat files that @Csaba27 indicated and report back after.

//edit:
can confirm that the above fix works.
Specifically, I only deleted
/share/users/(myusername)/settings/WebUISettings.dat

@Csaba27
Copy link
Author

Csaba27 commented Jun 7, 2024

I've deleted the .dat files, that helped with the problem, thanks

@jevenski
Copy link
Contributor

jevenski commented Oct 10, 2024

This is a third-party plugin issue: filemanager. It only occurs when the file list tab is set to "List View" and right-clicking on any of the files in the file list. Disabling that plugin will take this error away, so the conclusion can be confirmed.

Removing "WebUISettings.dat" file might not be the best solution, because this will wipe all the user defined UI settings and restore everything to default. As a workaround, disabling the filemanager plugin and set file list back to "Tree View" is a better solution.

@stickz
Copy link
Collaborator

stickz commented Oct 11, 2024

Please open an issue reports with the third party plugin. This issued is not related to the base ruTorrent.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants