ruTorrent icon indicating copy to clipboard operation
ruTorrent copied to clipboard

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

Open koblack opened this issue 1 year ago • 4 comments

Please complete the following tasks.

  • [X] Web browser cache cleared
  • [X] Web browser and ruTorrent version provided

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)

koblack avatar Aug 13 '24 20:08 koblack

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

stickz avatar Aug 20 '24 14:08 stickz

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

Novik avatar Aug 20 '24 14:08 Novik

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

stickz avatar Aug 20 '24 14:08 stickz

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

koblack avatar Aug 20 '24 17:08 koblack

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Feb 25 '25 01:02 stale[bot]