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

Uncaught TypeError: Cannot read properties of undefined (reading 'ip') #2707

Open
2 tasks done
koblack opened this issue Aug 13, 2024 · 4 comments
Open
2 tasks done

Comments

@koblack
Copy link
Contributor

koblack commented Aug 13, 2024

Please complete the following tasks.

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

Tell us about your environment

Web Browser: Google Chrome 127.0.6533.120
ruTorrent: Master: fda24a6

What were you trying to do?

The error occurs when I try to add a comment to peer

image

What us the error message?

JS error: [ : 9718] Uncaught TypeError: Cannot read properties of undefined (reading 'ip')

Give us the stack trace.

webui.js?v=436:2451 Uncaught TypeError: Cannot read properties of undefined (reading 'ip') from TypeError: Cannot read properties of undefined (reading 'ip')
    at Object.beforeShow (<anonymous>:9718:21)
    at Object.show (http: //xxx/ruTorrent/js/objects.js?v=436:172:26)
    at eval (eval at <anonymous> (http: //xxx/ruTorrent/js/objects.js?v=436:340:86), <anonymous>:1:18)
    at HTMLAnchorElement.<anonymous> (http: //xxx/ruTorrent/js/objects.js?v=436:340:86)
    at HTMLAnchorElement.dispatch (http: //xxx/ruTorrent/js/jquery.js?v=436:2:39997)
    at v.handle (http: //xxx/ruTorrent/js/jquery.js?v=436:2:37968)
@stickz
Copy link
Collaborator

stickz commented Aug 20, 2024

How can I restimulate this problem? I don't have the Add comment... option in my context menu.

@Novik
Copy link
Owner

Novik commented Aug 20, 2024

@stickz
You should install geoip plugin for this.
https://github.com/Novik/ruTorrent/tree/master/plugins/geoip

@stickz
Copy link
Collaborator

stickz commented Aug 20, 2024

Thanks @Novik. Unfortunately this plugin no longer works with the latest versions of PHP. I'm using Micdu70's forked version instead. https://github.com/Micdu70/geoip2-rutorrent

Due to the attribution requirement for the database, there are currently no plans to replace the default geoip ruTorrent plugin.
https://dev.maxmind.com/geoip/geolite2-free-geolocation-data#license

@koblack
Copy link
Contributor Author

koblack commented Aug 20, 2024

How can I restimulate this problem? I don't have the Add comment... option in my context menu.

@stickz do you have the necessary dependencies installed like php-sqlite3?
I also checked the version from Micdu70 and the error also occurs.


edit...
@TrimmingFool the error started occurring after commit b6ec025 sTable: Update DOM asynchronously

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

No branches or pull requests

3 participants