Novik / ruTorrent

Yet another web front-end for rTorrent
Other
2.01k stars 408 forks source link

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

Open koblack opened 1 month ago

koblack commented 1 month ago

Please complete the following tasks.

Tell us about your environment

Web Browser: Google Chrome 127.0.6533.120 ruTorrent: Master: fda24a638d46dd0473788957579006150cccb8bd

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 commented 3 weeks ago

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

Novik commented 3 weeks ago

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

stickz commented 3 weeks ago

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 commented 3 weeks ago

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 b6ec0255ee315de4c8776759922c85b7a9111f7d sTable: Update DOM asynchronously