FAQ  •  Register  •  Login

Web UI in PHP - support thread

<<

Swoop

Serviio lover

Posts: 87

Joined: Fri Mar 29, 2013 10:21 am

Post Fri May 24, 2013 10:33 am

Re: Web UI in PHP (revised)

Nice one Mark :)

I really like that log tab idea. I would pick it up and implement it as part of the next pull request?!
<<

npuser

DLNA master

Posts: 172

Joined: Mon Feb 06, 2012 3:44 am

Location: Michigan

Post Sun May 26, 2013 5:48 pm

Re: Web UI in PHP (revised)

Thanks for looking into incorporating 'Log' into webconsole.

For me at-least, i hardly change the serviio settings once i have everything the way i wanted. However, i still use serviioweb console to manage the contents/sources as well as unfortunately use other 3rd party apps for few other things like logs, plugin management, CPU usage by both Java and FFmpeg processes, and lastly the server reboot. I would think webconsole is in a perfect position to leverage its flexibility to manage just bit more than just vanilla serviio settings. Of course it is easier said than done as someone actually have to put their precious time and effort in to this but i though i just put it out there. We can't thank enough to both Mark and Swoop for keeping this project alive.

I would loved to be able to do following from webconsole:
1. View Log
2. View Installed Plugins with version Install (too bad not all plug dev following version numbering)
3. Update/Install Plugins - [i have a semi working version of this feature - pic below]
4. View basic server resource usage - CPU, Memory as well as processes Java and ffmpeg (i use webmin for now)
5. Reboot the server
6. Also, mediabrowser in the webconsole with iframe but with an option to launch separate session with a click


thanks
npuser
Attachments
Capture.JPG
Capture.JPG (42.2 KiB) Viewed 19055 times
<<

Xmantium

User avatar

DLNA master

Posts: 1396

Joined: Sat Jul 23, 2011 2:12 pm

Location: Manchester, UK

Post Sun May 26, 2013 6:17 pm

Re: Web UI in PHP (revised)

Plenty of nice ideas, theres is an API to list the plugins and version number here - http://docs.serviio.apiary.io/

I think Mark was planning something with this
this could be linked to http://www.serviidb.com/ to see of the plugins is broken or working or even seeing theres an updated version
Sony Bravia 2010 52NX803 - Sony PS3 - Xbox 360
Serviio running on QNAP NAS 639 Pro - 1.6 Intel Dual Core - 2GB RAM and QNAP NAS 121 - 2Ghz ARM Marvell - 1GB RAM
Console using ServiiDroid for Android, ServiiMetro and ServiiWP for Windows Phone and WebUI for iOS
<<

Swoop

Serviio lover

Posts: 87

Joined: Fri Mar 29, 2013 10:21 am

Post Mon May 27, 2013 2:10 pm

Re: Web UI in PHP (revised)

Hi guys,

played a little bit around with the log file output so this is what came out ;)

Still some work left on the browse button though...

1. View Log
2. View Installed Plugins with version Install (too bad not all plug dev following version numbering)
3. Update/Install Plugins - [i have a semi working version of this feature - pic below]
4. View basic server resource usage - CPU, Memory as well as processes Java and ffmpeg (i use webmin for now)
5. Reboot the server
6. Also, mediabrowser in the webconsole with iframe but with an option to launch separate session with a click


1. Done ;)
2. Should be a quick one
3. Would need some work
4. Could be part of the log tab
5. Reboot the system or Serviio as Media Server?
6. Next to play with, I guess...

Cheers!
Attachments
Serviio log.jpg
Serviio log.jpg (259.38 KiB) Viewed 19031 times
<<

vinny74

Streaming enthusiast

Posts: 20

Joined: Mon Oct 01, 2012 5:50 am

Post Mon Jun 24, 2013 12:46 pm

Re: Web UI in PHP (revised)

Hello everyone I installed the WebUI PHP but I can not add online resources while serviiodroid everything works fine, I would like to know if I have to enable something.

thanks

P.S. this is an on-line translation
<<

dokie80

Serviio newbie

Posts: 9

Joined: Thu Jul 04, 2013 6:30 am

Post Fri Jul 05, 2013 4:49 am

Re: Web UI in PHP (revised)

Hi, thanks for the webui. I managed to install it on my WD MBL. but have a problem adding library with space and/or "&" character on folder name. posted a thread here: viewtopic.php?f=14&t=2961&p=72627#p72627

  Code:
2013-07-04 14:10:30,133 WARN  [LibraryAdditionsCheckerThread] Folder '/shares/Public/03-Pics ' is either not an existing directory or cannot be read due to access rights

the shared folder actually '/shares/Public/03-Pics & Vids', but when I add it to library, and refresh the webUI, It shows '03-Pics'.
It shows '03-Pics' when I browse from TV, and it's empty.
Of course I can just rename the folder and be done with, just like to share what I think is a bug for Serviio Web UI.

Thanks

ps. I use WebUI 1.4beta, with Servio 1.2.1
<<

Tamrael

Serviio newbie

Posts: 4

Joined: Mon Dec 24, 2012 2:56 am

Post Sun Jul 07, 2013 2:29 pm

Re: Web UI in PHP (revised)

German Console language bugs pretty much everything for me, can't add new folders or get to rescan metadata / folders, setting it back to englisch and everything works.just wanted to let you know ;)
<<

Swoop

Serviio lover

Posts: 87

Joined: Fri Mar 29, 2013 10:21 am

Post Fri Jul 19, 2013 11:33 pm

Re: Web UI in PHP (revised)

Hi guys,

sorry for the long absence but I got burried under tons of work...

@dokie80: I see the problem but haven't looked at the code yet. The file path somehow got cut off and I need to figure out where. Thanks for highlighting! I'll try to get this solved soon. Anyway, you might want get the latest GUI update from my or Mark's git repo...

@Tamrael: German translation is working fine as far as I can tell. Everything worked for me :D You might consider updating as well ;)

Cheers!
<<

Xmantium

User avatar

DLNA master

Posts: 1396

Joined: Sat Jul 23, 2011 2:12 pm

Location: Manchester, UK

Post Sat Jul 20, 2013 6:59 am

Re: Web UI in PHP (revised)

In your and Marks absence there is a another user whose updated to work with Serviio 1.3 and fixed alot of bugs

If you have Serviio Beta forum access you can view the changes here - viewtopic.php?f=8&t=11357
Github is here - https://github.com/IndividualLover/Serviio-Web-UI
Im not sure if its been merged with Marks/Swoops git to compare and merged

IndividualLover wrote:Hello;
I have fixed and added some functions to Serviio 1.3. The list of works are below
- Added "Enable access for new devices" option
- Added "Default Access group" option
- Changed "No_Restriction" and "Limited_Access" to "No Restriction" and "Limited Access" under access groups
- Re-Added Log File viewing
- Added "Subtitle character encoding" option
- Fixed MediaBrowser link under Remote tab
- Fixed Library Section issues
- Added Log file select option under "Logs"
- Bugfixes

* "Log file select" writing and calling log file path informations from "logfile.txt" placed under root of serviioweb folder. Linux users don't forgot give permission 777 to this file. Also don't forgot give permission serviio log folder for access to this folder.

Download Link : https://github.com/IndividualLover/Serv ... master.zip

Regards;
Sony Bravia 2010 52NX803 - Sony PS3 - Xbox 360
Serviio running on QNAP NAS 639 Pro - 1.6 Intel Dual Core - 2GB RAM and QNAP NAS 121 - 2Ghz ARM Marvell - 1GB RAM
Console using ServiiDroid for Android, ServiiMetro and ServiiWP for Windows Phone and WebUI for iOS
<<

will

DLNA master

Posts: 2138

Joined: Mon Aug 30, 2010 11:18 am

Location: UK

Post Sat Jul 20, 2013 7:18 am

Re: Web UI in PHP (revised)

Xmantium wrote:Im not sure if its been merged with Marks/Swoops git to compare and merged

No its based off of an older version (1.4b1), so the fixes have had to be selectively ported into it from 1.4b2/1.4b3. Its also now in a completely seperate repo which means its lost all of the history, so quite difficult to merge the just the 1.3 changes into the main repo. Its therefore probably esiest to simply add the Serviio 1.3 changes directly to your 1.4.b3, using the other repository source as reference when needed, and continue from there.
Will

ServiiDroid (Android Console) Developer: Download | Home | Support
ServiiGo (Android 3G/4G/WiFi Playback App) Developer: Download | Home | Support
<<

StormRyder

Serviio newbie

Posts: 3

Joined: Thu Aug 01, 2013 9:32 am

Post Thu Aug 01, 2013 10:23 am

Re: Web UI in PHP (revised)

"Add Path.." button missing????

Mark,

Thanks for al the work you put in this web UI.
After installing it I wanted to add a folder, but because the manual <a href="http://www.eg-blog.de/?p=573">Serviio Web Console 1.2a – 001 Synology package</a> (running on NAS as package but the same code more or less) told me that I had to use 'Add Path..', I wanted to try that.
Unfortunately there was no button 'Add Path..'.
After spending hours of searching the serviio-forum, synology-forum and google searches without any results, I started to search inside the code.
With little to non tech experience, I think I found the sollution.

The 'Add Path' button is placed in between 'comment tags' therefor it is not visable.
Also the 'onclick' event is placed outside the button, which I found out after removing the comment tags.
After placing the onclick event inside the button, everything worked fine.
So I think I found a bug, but also gave the solution.

Detailed steps are found here: <a href="http://forum.serviio.org/viewtopic.php?f=14&t=11427#p74371"> Link to post</a>
This was the original submission by someone else who experienced the same problem.

Could you have a look and let me know if I am right, or am I making a big mistake with changing the library.php like this?
Thank you very much for taking the time to look into this.
<<

qoolbox

Streaming enthusiast

Posts: 45

Joined: Tue Nov 01, 2011 4:35 pm

Location: France

Post Thu Aug 08, 2013 3:40 pm

Re: Web UI in PHP (revised)

Updated the Serviio module to 1.3 using webui 1.5b1

https://github.com/SwoopX/Web-UI-for-Serviio/tree/Serviio-1.3

i have got a RED MESSAGE on top of Webui

WARNING: Web UI is optimized for Serviio v1.3-SNAPSHOT but v1.3 was found. There may be a loss of functionality. Please consider updating.

Hope update will come soon

Thanks again,
Third Party Thecus NAS Develloper

http://forum.thecus.com
http://www.tsuga.fr
<<

qoolbox

Streaming enthusiast

Posts: 45

Joined: Tue Nov 01, 2011 4:35 pm

Location: France

Post Thu Aug 08, 2013 3:53 pm

Re: Web UI in PHP (revised)

just replaced in config.php

$version_req = "1.3";

no more message :P
Third Party Thecus NAS Develloper

http://forum.thecus.com
http://www.tsuga.fr
<<

maltmoose

Streaming enthusiast

Posts: 36

Joined: Tue May 24, 2011 9:01 pm

Post Sat Aug 24, 2013 8:30 pm

Re: Web UI in PHP (revised)

just got round to installing this web ui on my 12.04 headless ubuntu server. first time ive setup a webserver so made some rough notes as i went as i didnt read the whole of the 16 pages in this thread.
all appears to be working just fine so far with Serviio PRO v 1.3.1 EVALUATION license - WebUI v 1.5beta1.

a few tips for other ubuntu 12.04 server users

once you have apache and php installed dont forget to install php curl and php xml modules
sudo apt-get install php-xml-parser
sudo apt-get install php5-curl

disable your default virtual host
a2dissite default

put your downloaded webui directory in /var/www/serviiowebui
create a logs dir in the serviiowebui dir with
mkdir logs
create a serviiowebui file in /etc/apache2/sites-available/ containing something like this

<VirtualHost *:80>
ServerAdmin webmaster@localhost
ServerName serviiowebui
DocumentRoot /var/www/serviiowebui
ErrorLog /var/www/serviiowebui/logs/error.log
CustomLog /var/www/serviiowebui/logs/access.log combined
</VirtualHost>

enable the site
a2ensite serviiowebui

restart the apache server
service apache2 restart

on my server apache was throwing up some errors regarding fqdn so i added the below to stop them
adding the below to /etc/apache2/httpd.conf
ServerName localhost

this should get you going, if something dont work check your logs
<<

Swoop

Serviio lover

Posts: 87

Joined: Fri Mar 29, 2013 10:21 am

Post Sun Aug 25, 2013 2:09 pm

Re: Web UI in PHP (revised)

@qoolbox: Already updated. Glad u figured out yourself.

Just updated my branch 1.3. Now all features active and working. Looking for some feedback ;)
<<

jive_turkey

User avatar

Serviio newbie

Posts: 4

Joined: Tue Sep 10, 2013 9:36 pm

Post Tue Sep 10, 2013 9:41 pm

Re: Web UI in PHP (revised)

I just cloned https://github.com/IndividualLover/Serviio-Web-UI.git

I see a problem on the Delivery tab. The number of cores remains at 4 and does not show the actual value, 2, which can be seen with the stock Serviio console. Other changes I make seem to be persistent.

I'll keep looking to see if I see anything else. Great work!
<<

jive_turkey

User avatar

Serviio newbie

Posts: 4

Joined: Tue Sep 10, 2013 9:36 pm

Post Tue Sep 10, 2013 9:51 pm

Re: Web UI in PHP (revised)



Okay, I also tried https://github.com/SwoopX/Web-UI-for-Serviio.git just now, which seems more current. The value for "Number of CPU cores to use" seems to change to 2 when saved but remains at 4 when I go back to the page. I'm not positive if it was ever at 4.

Thanks for your hard work!
<<

Swoop

Serviio lover

Posts: 87

Joined: Fri Mar 29, 2013 10:21 am

Post Wed Sep 11, 2013 3:08 pm

Re: Web UI in PHP (revised)

What HW do you have? My Serviio is running on an Atom NAS which has 2 cores, but with HT so I got 4 cores ;)
<<

jive_turkey

User avatar

Serviio newbie

Posts: 4

Joined: Tue Sep 10, 2013 9:36 pm

Post Sat Sep 14, 2013 2:03 pm

Re: Web UI in PHP (revised)

I have an Intel Core 2 Quad Q9400. It's from 2008 so it doesn't do hyperthreading.

If I look at the value in the stock Serviio console, it shows as 2. I can see that the value posts as 2 when I look at the debug output on the WebUI PHP page. It just shows as 4 in the WebUP PHP page.

I see some other errors in my PHP logs:

  Code:
[Tue Sep 10 17:29:40.033944 2013] [:error] [pid 15773] [client 192.168.1.60:50646] PHP Notice:  Undefined index: ip in /var/www/html/serviio
web/view/status.php on line 137, referer: http://sirius/serviioweb/
[Tue Sep 10 17:29:48.205252 2013] [:error] [pid 19553] [client 192.168.1.60:50647] PHP Notice:  Undefined variable: maxOnlineFeeds in /var/w
ww/html/serviioweb/view/library.php on line 228, referer: http://sirius/serviioweb/
[Tue Sep 10 17:29:48.205278 2013] [:error] [pid 19553] [client 192.168.1.60:50647] PHP Warning:  Invalid argument supplied for foreach() in
/var/www/html/serviioweb/view/library.php on line 228, referer: http://sirius/serviioweb/
[Tue Sep 10 17:29:48.449676 2013] [:error] [pid 19553] [client 192.168.1.60:50647] PHP Warning:  scandir(/lost+found): failed to open dir: P
ermission denied in /var/www/html/serviioweb/tree/jquery_folder_tree/jquery.foldertree.php on line 40, referer: http://sirius/serviioweb/
[Tue Sep 10 17:29:48.449708 2013] [:error] [pid 19553] [client 192.168.1.60:50647] PHP Warning:  scandir(): (errno 13): Permission denied in
 /var/www/html/serviioweb/tree/jquery_folder_tree/jquery.foldertree.php on line 40, referer: http://sirius/serviioweb/
[Tue Sep 10 17:29:48.485251 2013] [:error] [pid 19553] [client 192.168.1.60:50647] PHP Warning:  scandir(/root): failed to open dir: Permiss
ion denied in /var/www/html/serviioweb/tree/jquery_folder_tree/jquery.foldertree.php on line 40, referer: http://sirius/serviioweb/
[Tue Sep 10 17:29:48.485271 2013] [:error] [pid 19553] [client 192.168.1.60:50647] PHP Warning:  scandir(): (errno 13): Permission denied in
 /var/www/html/serviioweb/tree/jquery_folder_tree/jquery.foldertree.php on line 40, referer: http://sirius/serviioweb/
[Tue Sep 10 17:29:51.550845 2013] [:error] [pid 19553] [client 192.168.1.60:50647] PHP Warning:  scandir(/lost+found): failed to open dir: P
ermission denied in /var/www/html/serviioweb/tree/jquery_folder_tree/jquery.foldertree.php on line 40, referer: http://sirius/serviioweb/
[Tue Sep 10 17:29:51.550872 2013] [:error] [pid 19553] [client 192.168.1.60:50647] PHP Warning:  scandir(): (errno 13): Permission denied in
 /var/www/html/serviioweb/tree/jquery_folder_tree/jquery.foldertree.php on line 40, referer: http://sirius/serviioweb/
[Tue Sep 10 17:29:51.551257 2013] [:error] [pid 19553] [client 192.168.1.60:50647] PHP Warning:  scandir(/root): failed to open dir: Permiss
ion denied in /var/www/html/serviioweb/tree/jquery_folder_tree/jquery.foldertree.php on line 40, referer: http://sirius/serviioweb/
[Tue Sep 10 17:29:51.551268 2013] [:error] [pid 19553] [client 192.168.1.60:50647] PHP Warning:  scandir(): (errno 13): Permission denied in
 /var/www/html/serviioweb/tree/jquery_folder_tree/jquery.foldertree.php on line 40, referer: http://sirius/serviioweb/
[Tue Sep 10 17:29:56.864024 2013] [:error] [pid 19553] [client 192.168.1.60:50647] PHP Warning:  fopen(logfile.txt): failed to open stream:
No such file or directory in /var/www/html/serviioweb/config.php on line 12, referer: http://sirius/serviioweb/
[Tue Sep 10 17:29:56.864055 2013] [:error] [pid 19553] [client 192.168.1.60:50647] PHP Warning:  filesize(): stat failed for logfile.txt in
/var/www/html/serviioweb/config.php on line 13, referer: http://sirius/serviioweb/
[Tue Sep 10 17:29:56.864080 2013] [:error] [pid 19553] [client 192.168.1.60:50647] PHP Warning:  fread() expects parameter 1 to be resource,
 boolean given in /var/www/html/serviioweb/config.php on line 13, referer: http://sirius/serviioweb/
[Tue Sep 10 17:29:56.864091 2013] [:error] [pid 19553] [client 192.168.1.60:50647] PHP Warning:  fclose() expects parameter 1 to be resource
, boolean given in /var/www/html/serviioweb/config.php on line 18, referer: http://sirius/serviioweb/
[Tue Sep 10 17:29:57.442436 2013] [:error] [pid 19553] [client 192.168.1.60:50647] PHP Warning:  scandir(/lost+found): failed to open dir: P
ermission denied in /var/www/html/serviioweb/tree/jquery_folder_tree/jquery.foldertree.php on line 40, referer: http://sirius/serviioweb/
[Tue Sep 10 17:29:57.442463 2013] [:error] [pid 19553] [client 192.168.1.60:50647] PHP Warning:  scandir(): (errno 13): Permission denied in
 /var/www/html/serviioweb/tree/jquery_folder_tree/jquery.foldertree.php on line 40, referer: http://sirius/serviioweb/
[Tue Sep 10 17:29:57.442859 2013] [:error] [pid 19553] [client 192.168.1.60:50647] PHP Warning:  scandir(/root): failed to open dir: Permiss
ion denied in /var/www/html/serviioweb/tree/jquery_folder_tree/jquery.foldertree.php on line 40, referer: http://sirius/serviioweb/
[Tue Sep 10 17:29:57.442871 2013] [:error] [pid 19553] [client 192.168.1.60:50647] PHP Warning:  scandir(): (errno 13): Permission denied in
 /var/www/html/serviioweb/tree/jquery_folder_tree/jquery.foldertree.php on line 40, referer: http://sirius/serviioweb/
[Tue Sep 10 17:30:05.954893 2013] [:error] [pid 19553] [client 192.168.1.60:50647] PHP Warning:  fopen(README.txt\n): failed to open stream:
 No such file or directory in /var/www/html/serviioweb/view/logs.php on line 13, referer: http://sirius/serviioweb/
[Tue Sep 10 17:31:41.278794 2013] [:error] [pid 19553] [client 192.168.1.60:50647] PHP Warning:  fopen(logfile.txt): failed to open stream:
No such file or directory in /var/www/html/serviioweb/config.php on line 12, referer: http://sirius/serviioweb/
[Tue Sep 10 17:31:41.278825 2013] [:error] [pid 19553] [client 192.168.1.60:50647] PHP Warning:  filesize(): stat failed for logfile.txt in
/var/www/html/serviioweb/config.php on line 13, referer: http://sirius/serviioweb/
[Tue Sep 10 17:31:41.278838 2013] [:error] [pid 19553] [client 192.168.1.60:50647] PHP Warning:  fread() expects parameter 1 to be resource,
 boolean given in /var/www/html/serviioweb/config.php on line 13, referer: http://sirius/serviioweb/
[Tue Sep 10 17:31:41.278849 2013] [:error] [pid 19553] [client 192.168.1.60:50647] PHP Warning:  fclose() expects parameter 1 to be resource
, boolean given in /var/www/html/serviioweb/config.php on line 18, referer: http://sirius/serviioweb/
[Tue Sep 10 17:38:24.164635 2013] [:error] [pid 15773] [client 192.168.1.60:51772] PHP Warning:  scandir(/lost+found): failed to open dir: P
ermission denied in /var/www/html/serviioweb/tree/jquery_folder_tree/jquery.foldertree.php on line 40, referer: http://sirius/serviioweb/
[Tue Sep 10 17:38:24.164670 2013] [:error] [pid 15773] [client 192.168.1.60:51772] PHP Warning:  scandir(): (errno 13): Permission denied in
 /var/www/html/serviioweb/tree/jquery_folder_tree/jquery.foldertree.php on line 40, referer: http://sirius/serviioweb/
[Tue Sep 10 17:38:24.165185 2013] [:error] [pid 15773] [client 192.168.1.60:51772] PHP Warning:  scandir(/root): failed to open dir: Permiss
ion denied in /var/www/html/serviioweb/tree/jquery_folder_tree/jquery.foldertree.php on line 40, referer: http://sirius/serviioweb/
[Tue Sep 10 17:38:24.165201 2013] [:error] [pid 15773] [client 192.168.1.60:51772] PHP Warning:  scandir(): (errno 13): Permission denied in
 /var/www/html/serviioweb/tree/jquery_folder_tree/jquery.foldertree.php on line 40, referer: http://sirius/serviioweb/
[Tue Sep 10 17:44:12.920522 2013] [:error] [pid 12993] [client 192.168.1.60:52188] PHP Warning:  scandir(/lost+found): failed to open dir: P
ermission denied in /var/www/html/serviioweb/tree/jquery_folder_tree/jquery.foldertree.php on line 40, referer: http://sirius/serviioweb/
[Tue Sep 10 17:44:12.920562 2013] [:error] [pid 12993] [client 192.168.1.60:52188] PHP Warning:  scandir(): (errno 13): Permission denied in
 /var/www/html/serviioweb/tree/jquery_folder_tree/jquery.foldertree.php on line 40, referer: http://sirius/serviioweb/
[Tue Sep 10 17:44:12.920957 2013] [:error] [pid 12993] [client 192.168.1.60:52188] PHP Warning:  scandir(/root): failed to open dir: Permiss
ion denied in /var/www/html/serviioweb/tree/jquery_folder_tree/jquery.foldertree.php on line 40, referer: http://sirius/serviioweb/
[Tue Sep 10 17:44:12.920970 2013] [:error] [pid 12993] [client 192.168.1.60:52188] PHP Warning:  scandir(): (errno 13): Permission denied in
 /var/www/html/serviioweb/tree/jquery_folder_tree/jquery.foldertree.php on line 40, referer: http://sirius/serviioweb/
[Tue Sep 10 17:44:31.467460 2013] [:error] [pid 12993] [client 192.168.1.60:52188] PHP Notice:  Undefined variable: maxOnlineFeeds in /var/w
ww/html/serviioweb/view/library.php on line 221, referer: http://sirius/serviioweb/
[Tue Sep 10 17:44:31.467485 2013] [:error] [pid 12993] [client 192.168.1.60:52188] PHP Warning:  Invalid argument supplied for foreach() in
/var/www/html/serviioweb/view/library.php on line 221, referer: http://sirius/serviioweb/
[Tue Sep 10 17:44:31.623378 2013] [:error] [pid 12993] [client 192.168.1.60:52188] PHP Warning:  scandir(/lost+found): failed to open dir: P
ermission denied in /var/www/html/serviioweb/tree/jquery_folder_tree/jquery.foldertree.php on line 40, referer: http://sirius/serviioweb/
[Tue Sep 10 17:44:31.623406 2013] [:error] [pid 12993] [client 192.168.1.60:52188] PHP Warning:  scandir(): (errno 13): Permission denied in
 /var/www/html/serviioweb/tree/jquery_folder_tree/jquery.foldertree.php on line 40, referer: http://sirius/serviioweb/
[Tue Sep 10 17:44:31.623799 2013] [:error] [pid 12993] [client 192.168.1.60:52188] PHP Warning:  scandir(/root): failed to open dir: Permiss
ion denied in /var/www/html/serviioweb/tree/jquery_folder_tree/jquery.foldertree.php on line 40, referer: http://sirius/serviioweb/
[Tue Sep 10 17:44:31.623811 2013] [:error] [pid 12993] [client 192.168.1.60:52188] PHP Warning:  scandir(): (errno 13): Permission denied in
 /var/www/html/serviioweb/tree/jquery_folder_tree/jquery.foldertree.php on line 40, referer: http://sirius/serviioweb/
[Tue Sep 10 17:45:19.173858 2013] [:error] [pid 12993] [client 192.168.1.60:52188] PHP Warning:  scandir(/lost+found): failed to open dir: P
ermission denied in /var/www/html/serviioweb/tree/jquery_folder_tree/jquery.foldertree.php on line 40, referer: http://sirius/serviioweb/
[Tue Sep 10 17:45:19.173890 2013] [:error] [pid 12993] [client 192.168.1.60:52188] PHP Warning:  scandir(): (errno 13): Permission denied in
 /var/www/html/serviioweb/tree/jquery_folder_tree/jquery.foldertree.php on line 40, referer: http://sirius/serviioweb/
[Tue Sep 10 17:45:19.174283 2013] [:error] [pid 12993] [client 192.168.1.60:52188] PHP Warning:  scandir(/root): failed to open dir: Permiss
ion denied in /var/www/html/serviioweb/tree/jquery_folder_tree/jquery.foldertree.php on line 40, referer: http://sirius/serviioweb/
[Tue Sep 10 17:45:19.174295 2013] [:error] [pid 12993] [client 192.168.1.60:52188] PHP Warning:  scandir(): (errno 13): Permission denied in
 /var/www/html/serviioweb/tree/jquery_folder_tree/jquery.foldertree.php on line 40, referer: http://sirius/serviioweb/
[Tue Sep 10 17:53:58.577715 2013] [:error] [pid 15770] [client 192.168.1.60:52732] PHP Warning:  scandir(/lost+found): failed to open dir: P
ermission denied in /var/www/html/serviioweb/tree/jquery_folder_tree/jquery.foldertree.php on line 40, referer: http://sirius/serviioweb/
[Tue Sep 10 17:53:58.577751 2013] [:error] [pid 15770] [client 192.168.1.60:52732] PHP Warning:  scandir(): (errno 13): Permission denied in
 /var/www/html/serviioweb/tree/jquery_folder_tree/jquery.foldertree.php on line 40, referer: http://sirius/serviioweb/
[Tue Sep 10 17:53:58.578144 2013] [:error] [pid 15770] [client 192.168.1.60:52732] PHP Warning:  scandir(/root): failed to open dir: Permiss
ion denied in /var/www/html/serviioweb/tree/jquery_folder_tree/jquery.foldertree.php on line 40, referer: http://sirius/serviioweb/
[Tue Sep 10 17:53:58.578165 2013] [:error] [pid 15770] [client 192.168.1.60:52732] PHP Warning:  scandir(): (errno 13): Permission denied in
 /var/www/html/serviioweb/tree/jquery_folder_tree/jquery.foldertree.php on line 40, referer: http://sirius/serviioweb/
[Tue Sep 10 17:54:14.581486 2013] [:error] [pid 15770] [client 192.168.1.60:52732] PHP Warning:  scandir(/lost+found): failed to open dir: P
ermission denied in /var/www/html/serviioweb/tree/jquery_folder_tree/jquery.foldertree.php on line 40, referer: http://sirius/serviioweb/
[Tue Sep 10 17:54:14.581519 2013] [:error] [pid 15770] [client 192.168.1.60:52732] PHP Warning:  scandir(): (errno 13): Permission denied in
 /var/www/html/serviioweb/tree/jquery_folder_tree/jquery.foldertree.php on line 40, referer: http://sirius/serviioweb/
[Tue Sep 10 17:54:14.582007 2013] [:error] [pid 15770] [client 192.168.1.60:52732] PHP Warning:  scandir(/root): failed to open dir: Permiss
ion denied in /var/www/html/serviioweb/tree/jquery_folder_tree/jquery.foldertree.php on line 40, referer: http://sirius/serviioweb/
[Tue Sep 10 17:54:14.582024 2013] [:error] [pid 15770] [client 192.168.1.60:52732] PHP Warning:  scandir(): (errno 13): Permission denied in
 /var/www/html/serviioweb/tree/jquery_folder_tree/jquery.foldertree.php on line 40, referer: http://sirius/serviioweb/
[Tue Sep 10 17:54:41.759671 2013] [:error] [pid 15770] [client 192.168.1.60:52732] PHP Notice:  Undefined variable: maxOnlineFeeds in /var/w
ww/html/serviioweb/view/library.php on line 221, referer: http://sirius/serviioweb/
[Tue Sep 10 17:54:41.759702 2013] [:error] [pid 15770] [client 192.168.1.60:52732] PHP Warning:  Invalid argument supplied for foreach() in
/var/www/html/serviioweb/view/library.php on line 221, referer: http://sirius/serviioweb/
[Tue Sep 10 17:54:41.941793 2013] [:error] [pid 15770] [client 192.168.1.60:52732] PHP Warning:  scandir(/lost+found): failed to open dir: P
ermission denied in /var/www/html/serviioweb/tree/jquery_folder_tree/jquery.foldertree.php on line 40, referer: http://sirius/serviioweb/
[Tue Sep 10 17:54:41.941820 2013] [:error] [pid 15770] [client 192.168.1.60:52732] PHP Warning:  scandir(): (errno 13): Permission denied in
 /var/www/html/serviioweb/tree/jquery_folder_tree/jquery.foldertree.php on line 40, referer: http://sirius/serviioweb/
[Tue Sep 10 17:54:41.942205 2013] [:error] [pid 15770] [client 192.168.1.60:52732] PHP Warning:  scandir(/root): failed to open dir: Permiss
ion denied in /var/www/html/serviioweb/tree/jquery_folder_tree/jquery.foldertree.php on line 40, referer: http://sirius/serviioweb/
[Tue Sep 10 17:54:41.942217 2013] [:error] [pid 15770] [client 192.168.1.60:52732] PHP Warning:  scandir(): (errno 13): Permission denied in
 /var/www/html/serviioweb/tree/jquery_folder_tree/jquery.foldertree.php on line 40, referer: http://sirius/serviioweb/
[Tue Sep 10 17:54:43.104251 2013] [:error] [pid 15770] [client 192.168.1.60:52732] PHP Warning:  scandir(/lost+found): failed to open dir: P
ermission denied in /var/www/html/serviioweb/tree/jquery_folder_tree/jquery.foldertree.php on line 40, referer: http://sirius/serviioweb/
[Tue Sep 10 17:54:43.104280 2013] [:error] [pid 15770] [client 192.168.1.60:52732] PHP Warning:  scandir(): (errno 13): Permission denied in
 /var/www/html/serviioweb/tree/jquery_folder_tree/jquery.foldertree.php on line 40, referer: http://sirius/serviioweb/
[Tue Sep 10 17:54:43.104674 2013] [:error] [pid 15770] [client 192.168.1.60:52732] PHP Warning:  scandir(/root): failed to open dir: Permiss
ion denied in /var/www/html/serviioweb/tree/jquery_folder_tree/jquery.foldertree.php on line 40, referer: http://sirius/serviioweb/
[Tue Sep 10 17:54:43.104687 2013] [:error] [pid 15770] [client 192.168.1.60:52732] PHP Warning:  scandir(): (errno 13): Permission denied in
 /var/www/html/serviioweb/tree/jquery_folder_tree/jquery.foldertree.php on line 40, referer: http://sirius/serviioweb/


I don't know if this is related, but I haven't changed my library settings in a few updates. All files in the library are on a /storage partition. I don't know why it is scanning /root, if that is what is going on. The folders in that tree have 775 permissions and the files have 664. Everything seems to be working, though, despite these errors.

Thanks for your response!
<<

Swoop

Serviio lover

Posts: 87

Joined: Fri Mar 29, 2013 10:21 am

Post Wed Sep 18, 2013 10:44 pm

Re: Web UI in PHP (revised)

Hi jive_turkey,

thanks for the info and also the debug output.

Now, for the CPU count thinggy, you have a CPU with 4 cores. I'd assume Serviio would return 4 cores as well while issuing the following command:
  Code:
curl http://127.0.0.1:23423/rest/refdata/cpu-cores
If you now select the max number of cores in the delivery tab and save it, the command
  Code:
curl http://127.0.0.1:23423/rest/delivery
should also list 4 threads. Anything else would really suprise me ;) Please note that the values are not refreshed automatically after saving so you must do it manually with F5. If that's not the case, please let me know and I'll try tor reproduce that behaviour.

With regard to the errors, a handful of them are related to obsolete code which can be removed :D A few are pointing to the file config.php which doesn't make sense to me and the rest is related to the jquery foldertree which, on the first look, has no read access to some folders. So all in all nothing serious. Btw, jquery foldertree starts scanning / . Generally, I'm not happy with that but it's somehow necessary to ensure "interoperability"... I cannot know where people install web_ui or Serviio ;) If you feel uncomfortable with that, you could change the scan folder in index.php, line 1645 to something more convenient.

One other thing though: Have you downloaded the 1.3 branch from my git repo if you're using Serviio 1.3 or 1.3.1?
PreviousNext

Return to Third-party tools integration

Who is online

Users browsing this forum: No registered users and 11 guests

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.