extratio plugin throwing "Use of undefined constant" in /var/log/syslog

das329717

Member
May 25, 2018
928
0
16
Hey, weird error, not sure what's causing it. Syslog output is:

Code:
[Mon Jun 11 22:51:51 2012] [error] [client xx.xx.xx.xx] PHP Notice: Use of undefined constant MAX_RATIO - assumed 'MAX_RATIO' in
/var/www/rutorrent/plugins/extratio/rules.php on line 236, referer: https://www.foo.bar/rutorrent/
Obviously I edited the IP & hostname.

I found the constant "MAX_RATIO" is defined in the conf.php of the "ratio" plugin, which IS enabled according to the rutorrent interface, in the "plugins" tab in the bottom pane.

Bouncing the server and refreshing the page had no affect.

Ideas? Thanks in advance,
 

das329717

Member
May 25, 2018
928
0
16
For example, rtorrent user can't read ratio/conf.php. Check permissions.
[/quote]

Thank you, I appear to have fixed the problem. I have a multi-user setup, and in /var/www/rutorrent/share/users/<user>/settings I noticed a number of files were owned by and read/writeable to the apache user, but the rtorrent user only had read access. Unfortunately I changed the permissions of all the files in that folder to be read/writeable by the rtorrent user so I can't say which one was the offending one, but after I changed the permissions, the error stopped appearing.