Skip to content

Bug after upgrade ruTorrent 4.3.4 (probably > 4.x) - RESOLVED - It is the best idea ? #1

@DavidFirefox

Description

@DavidFirefox

Hello,
Thanks for your work and plugin 🥇

(I not a programmer)
I have logoff 1.3

I'm just update my ruTorrent 3.x to the 4.3.4, I try to add logoff plugin and I have 2 issues in init.php :

  • line 2 : eval(getPluginConf("logoff"));
    Error in Apache log : AH01071: Got error 'PHP message: PHP Fatal error: Uncaught Error: Call to undefined function getPluginConf() in <directory>/plugins/logoff/init.php:2\nStack trace:\n#0 <directory>/php/getplugins.php(521): require_once()\n#1 {main}\n thrown in <directory>/plugins/logoff/init.php on line 2',
    I replaced it by eval(FileUtil::getPluginConf($plugin["name"]));
    I'm not sure if name is the correct value ? but it work and $plugin["logoff"]) don't work

  • line 4 : $me = getUser();
    Error in Apache log : AH01071: Got error 'PHP message: PHP Fatal error: Uncaught Error: Call to undefined function getUser() in <directory>/plugins/logoff/init.php:4\nStack trace:\n#0 <directory>/php/getplugins.php(521): require_once()\n#1 {main}\n thrown in <directory>/plugins/logoff/init.php on line 4'
    I replaced by $me = $_SERVER['REMOTE_USER'];
    It work well, and the logout popup show my login name !

Is it the best patch ?
Could you update the plugin ?

Thanks in advance
David

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions