Bug in Serviio PHP Console Management Tool
First off, let me say that serviio is an awesome tool. I tried a number of different DLNA servers on FreeBSD, and serviio was the only tool that did the job completely. The only hitch about compiling serviio for FreeBSD is that you need to select all of the codecs that are available when you first compile the tool, and you also need to add the statement MAKE_JOBS_NUMBER=1 to the /etc/make.conf file before you start the build for openjdk as there is a race condition that occurs if this is not present.
Now for the bug I found -- if you install the latest release of the PHP console for serviio, version 1.4beta, when you click on the remote tab at the top of the screen, and then click on the link on the bottom of that page titled "Open MediaBrowser", the link is broken -- it drops the last digit of the IP address for the server that serviio is running on. To correct this issue, you need to edit the code in view/remote.php and change line 62 where the call to substr() is. The error is that the third parameter in substr() is a -7 and it should be a -6. This call tells PHP to use all of the characters in the string except the last 6 at the end of the string. As written, the -7 value chops off the last digit of the IP address. Changing this to -6 corrects the problem.
Thanks for creating such an awesome tool. Best,
Dave Stoddard
Now for the bug I found -- if you install the latest release of the PHP console for serviio, version 1.4beta, when you click on the remote tab at the top of the screen, and then click on the link on the bottom of that page titled "Open MediaBrowser", the link is broken -- it drops the last digit of the IP address for the server that serviio is running on. To correct this issue, you need to edit the code in view/remote.php and change line 62 where the call to substr() is. The error is that the third parameter in substr() is a -7 and it should be a -6. This call tells PHP to use all of the characters in the string except the last 6 at the end of the string. As written, the -7 value chops off the last digit of the IP address. Changing this to -6 corrects the problem.
Thanks for creating such an awesome tool. Best,
Dave Stoddard