FAQ  •  Register  •  Login

Web UI in PHP - support thread

<<

Xmantium

User avatar

DLNA master

Posts: 1396

Joined: Sat Jul 23, 2011 2:12 pm

Location: Manchester, UK

Post Fri Dec 14, 2012 11:21 pm

Re: Web UI in PHP (revised)

Hi Mark, Serviio 1.1 is almost finished, hows the progress with your Web UI?

Was hoping you can include this fix - viewtopic.php?f=17&t=5330&start=180#p56821
There are two methods to change the value:
- directly on php.ini
- locally on the code of serviio web ui

For user who dont know how to access their php.ini to turn off magic_quotes, can this done locally on the code?
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
<<

mpemberton5

DLNA master

Posts: 120

Joined: Sun Aug 28, 2011 9:01 pm

Location: North Carolina, USA

Post Sat Dec 15, 2012 2:44 am

Re: Web UI in PHP (revised)

Xmantium wrote:Hi Mark, Serviio 1.1 is almost finished, hows the progress with your Web UI?

Was hoping you can include this fix - viewtopic.php?f=17&t=5330&start=180#p56821
There are two methods to change the value:
- directly on php.ini
- locally on the code of serviio web ui

For user who dont know how to access their php.ini to turn off magic_quotes, can this done locally on the code?

Glad you asked. I'm almost ready to release the beta. The big items I wanted to do for 1.3 is done and tested. Got a couple UI updates to make, and once that is done I'll release a beta. Would really like to say I'll have it done this weekend, but may first of next week.
<<

Xmantium

User avatar

DLNA master

Posts: 1396

Joined: Sat Jul 23, 2011 2:12 pm

Location: Manchester, UK

Post Sat Dec 15, 2012 3:16 am

Re: Web UI in PHP (revised)

Brilliant news! You know im ready for beta testing!! Looking forward to see what you cooked up!

Add Installed Plugins tab? Or just have it as an option under About?
I think its best to have "Plugins Installed" next to "Online Souces" if Online Sources is within the "Library" Tab

Otherwise if "Online Sources" is its own main tab, then a sub tab called "Online Library" and "Plugins Installed"

I think Plugins Installed will become very usefull when finding out if new versions of the plugin is available when versioning become standard to plugins.
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
<<

Xmantium

User avatar

DLNA master

Posts: 1396

Joined: Sat Jul 23, 2011 2:12 pm

Location: Manchester, UK

Post Thu Dec 20, 2012 5:09 pm

Re: Web UI in PHP (revised)

Hi Mark, do you think you'll have v1.3 ready before Christmas?
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
<<

mpemberton5

DLNA master

Posts: 120

Joined: Sun Aug 28, 2011 9:01 pm

Location: North Carolina, USA

Post Thu Dec 20, 2012 6:12 pm

Re: Web UI in PHP (revised)

Xmantium wrote:Hi Mark, do you think you'll have v1.3 ready before Christmas?

I'll throw out a beta tonight. Still have some minor visual tweaks, but everything should be working.
<<

Xmantium

User avatar

DLNA master

Posts: 1396

Joined: Sat Jul 23, 2011 2:12 pm

Location: Manchester, UK

Post Thu Dec 20, 2012 6:56 pm

Re: Web UI in PHP (revised)

mpemberton5 wrote:I'll throw out a beta tonight. Still have some minor visual tweaks, but everything should be working.

:o Brilliant!! Just in time for Serviio v1.1
Santa has really come early! :D
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
<<

mpemberton5

DLNA master

Posts: 120

Joined: Sun Aug 28, 2011 9:01 pm

Location: North Carolina, USA

Post Fri Dec 21, 2012 8:49 pm

Re: Web UI in PHP (revised)

Here it is 1.3 Beta. I believe everything works as expected. There are still a few things I'd like to do to the UI, but this should work.

WebUI 1.3beta

Some of the features that are included:
1) ServiiDB.com integration
2) Row selection on the Library tabs
3) Slightly bigger buttons for Tablet users (partial implementation).


Please do not hesitate to alert me of any issues or any additional recommendations (use link in sig).

Merry Christmas!
Mark
<<

Xmantium

User avatar

DLNA master

Posts: 1396

Joined: Sat Jul 23, 2011 2:12 pm

Location: Manchester, UK

Post Fri Dec 21, 2012 10:01 pm

Re: Web UI in PHP (revised)

Woohoo!! :D

Edit: I just tried it - LOVE IT!! The ServiiDB intergration is great!!! I like the button placement!
No errors encountered. Presentation save bug is history!

iOS users and NAS/linux users, your in for a treat! :mrgreen:
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
<<

qoolbox

Streaming enthusiast

Posts: 45

Joined: Tue Nov 01, 2011 4:35 pm

Location: France

Post Fri Dec 21, 2012 11:13 pm

Re: Web UI in PHP (revised)

I will make it run on Thecus Tomorrow... :D and make it avaiable as module for all Thecus Owner

Thank you very much... you are great
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 Sat Dec 22, 2012 9:41 am

Re: Web UI in PHP (revised)

Work Like a charm on Thecus NAS

http://forum.thecus.com/viewtopic.php?f=36&t=3610

Just notice Chrome is not supported, cannot add path to library, all is ok with Mozilla Firefox

:D
Third Party Thecus NAS Develloper

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

mpemberton5

DLNA master

Posts: 120

Joined: Sun Aug 28, 2011 9:01 pm

Location: North Carolina, USA

Post Sat Dec 22, 2012 3:27 pm

Re: Web UI in PHP (revised)

qoolbox wrote:Work Like a charm on Thecus NAS

http://forum.thecus.com/viewtopic.php?f=36&t=3610

Just notice Chrome is not supported, cannot add path to library, all is ok with Mozilla Firefox

:D

Could I get more details on the issues with Chrome? I'd love to get that working for you.
<<

Xmantium

User avatar

DLNA master

Posts: 1396

Joined: Sat Jul 23, 2011 2:12 pm

Location: Manchester, UK

Post Sat Dec 22, 2012 7:03 pm

Re: Web UI in PHP (revised)

Its working fine for me on Chrome.
The only thing ive noticed, when you add a folder, the option for metadata is disabled, this should be available when video option is ticked.
When i press save, the metadata option is available to tick but user has to save again.

Love the serviiDB feature, would be cool if:
user can select the number of rows shown
user can save the selection of column items
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
<<

mpemberton5

DLNA master

Posts: 120

Joined: Sun Aug 28, 2011 9:01 pm

Location: North Carolina, USA

Post Sat Dec 22, 2012 9:44 pm

Re: Web UI in PHP (revised)

Xmantium wrote:The only thing ive noticed, when you add a folder, the option for metadata is disabled, this should be available when video option is ticked.
When i press save, the metadata option is available to tick but user has to save again.

Something I wanted to go back to and correct, but forgot about it. Thanks for the reminder. :)

Xmantium wrote:Love the serviiDB feature, would be cool if:
user can select the number of rows shown
user can save the selection of column items

I didn't want to scroll, so I just presented the number of rows that would fit in the dialog box and provided navigation buttons.
I can look into adding to the config.php file the default columns if you think that would suffice.
<<

Xmantium

User avatar

DLNA master

Posts: 1396

Joined: Sat Jul 23, 2011 2:12 pm

Location: Manchester, UK

Post Sun Dec 23, 2012 12:13 am

Re: Web UI in PHP (revised)

I did a mockup design for the official console, would be great if something like this can be included to "add local" popup- viewtopic.php?f=3&t=8050

Mark i think you need a well deserved break for xmas after this fantastic upgrade! ;)
Thanks once again!
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
<<

npuser

DLNA master

Posts: 172

Joined: Mon Feb 06, 2012 3:44 am

Location: Michigan

Post Mon Dec 24, 2012 2:19 am

Re: Web UI in PHP (revised)

Update is perfect in may ways. Thank you.

Only minor issue i see is the cpu core drop down. Looks like 'Optimal' (could not remember what did say on serviio official console - optimal could be wrong) is missing. If you have that set the webui defaults to 1, i think.


npuser
<<

Xmantium

User avatar

DLNA master

Posts: 1396

Joined: Sat Jul 23, 2011 2:12 pm

Location: Manchester, UK

Post Mon Dec 24, 2012 3:10 am

Re: Web UI in PHP (revised)

Noticed a bug - when adding from serviiDB, it adds all the source type as "Feed", so "Web resource" items dont work, quick fix is user edits and changes feeds to web resource

The other thing ive noticed, when you item from serviiDB, it shows on the console as disabled when in fact its enabled.
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
<<

Xmantium

User avatar

DLNA master

Posts: 1396

Joined: Sat Jul 23, 2011 2:12 pm

Location: Manchester, UK

Post Tue Dec 25, 2012 5:03 am

Re: Web UI in PHP (revised)

mpemberton5 wrote:Could I get more details on the issues with Chrome? I'd love to get that working for you.

Ive just noticed this, QNAP has refreshed Serviio v1.1 with your amazing web UI for all Qnappers!

With Chrome , when you first add your folder share, for some reason doesnt work. I used Internet Explorer to add one folder shares - worked fine with IE
Chrome then works fine to add more shares, just the first initial one doesnt work
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
<<

Strupniveral

Streaming enthusiast

Posts: 40

Joined: Mon Feb 27, 2012 7:22 am

Post Wed Dec 26, 2012 4:38 pm

Re: Web UI in PHP (revised)

Hello,

I found a very very very small bug - sorry if already reported (I admit I didn't read the entire thread).

The issue appears after a fresh install, when no renderer is spotted by serviio yet - in this case, when opening the first page, you get the following error where the renderers should appear:
  Code:
Warning: Invalid argument supplied for foreach() in <webui_root>/lib/serviio.php on line 82


Obviously, as soon as the first renderer is fetched, everything looks normal.

I'm not sure if it has some side-effect on the rest of the code (I don't think so), but I got easily rid of the error surrounding your "foreach" loop with the following "if" statement
  Code:
if (count($xml->renderers) > 0) {
   foreach ($xml->renderers->renderer as $item) {
   ...
   }
}


HTH!

Luca

EDIT: the "if" statement is on renderers into "xml", not into "this" - updated
<<

elsalvador

Serviio newbie

Posts: 12

Joined: Tue Oct 23, 2012 5:29 pm

Post Thu Jan 03, 2013 5:44 pm

Re: Web UI in PHP (revised)

mpemberton5 wrote:
jhb50 wrote:Am I supposed to do that? How?

This is my issue. I've tested the change and is an easy change. If you need the change now and feel comfortable editing the script, see below. Otherwise, I'll post a full release in the next day or two.

To manually fix this bug, please edit library.php found in the view folder located in the application root folder (under serviioweb). Edit line 164 and change the two lowercase "unlimited" to "-1".

Before:
  Code:
                        <option value="unlimited"<?php echo $serviio->maxNumberOfItemsForOnlineFeeds=="unlimited"?" selected":""?>>Unlimited</option>


After:
  Code:
                        <option value="-1"<?php echo $serviio->maxNumberOfItemsForOnlineFeeds=="-1"?" selected":""?>>Unlimited</option>



Hi Guys,
Installed OK, and was fine for a while, certain I've changed nothing (not even OS updates) and now I can't add or delete Library Folders.
Save looks like it works OK, (saving...Saved!) but when page is refreshed the Folder List hasn't changed.

Have searched this forum for this issue and the log error saying "ConversionException".
Found the note quoted above and made the change as suggested to "-1" but didn't fix it.

Here's the full log entry:
2013-01-03 17:36:50,323 WARN [ServiioStatusService] ConversionException occured. Returning error code 500 to the REST layer. Message: Zero length string : Zero length string
---- Debugging information ----
message : Zero length string
cause-exception : java.lang.NumberFormatException
cause-message : Zero length string
class : java.lang.Long
required-type : java.lang.Long
converter-type : com.thoughtworks.xstream.converters.SingleValueConverterWrapper
wrapped-converter : com.thoughtworks.xstream.converters.basic.LongConverter
path : /repository/sharedFolders/sharedFolder/accessGroupIds/id
class[1] : java.util.LinkedHashSet
converter-type[1] : com.thoughtworks.xstream.converters.collections.CollectionConverter
class[2] : org.serviio.ui.representation.SharedFolder
converter-type[2] : com.thoughtworks.xstream.converters.reflection.ReflectionConverter
class[3] : java.util.ArrayList
class[4] : org.serviio.ui.representation.RepositoryRepresentation
version : null
-------------------------------
I can confirm that the installation hasn't changed as I run two nearly-identical boxes and they both are doing the same...and there's no such thing as coincidence! I just checked and both installations are still identical as far as /var/www/serviio and the main pc5dczc_1.01 programs etc directories are concerned.

Ubuntu 12.04.1 LAMP server, with Serviio 1.01 and PHP webUI ver 1.2
Please advise how to debug further. ;)
I would dearly love to find an answer if anyone cares to help, huge thanks in advance.

Thanks
PS - I'm going to do a fresh install on a fresh Ubuntu 12.04.1i dentically just to see if it's that license thing...Will advise.
<<

elsalvador

Serviio newbie

Posts: 12

Joined: Tue Oct 23, 2012 5:29 pm

Post Sat Jan 05, 2013 2:26 am

Re: Web UI in PHP (revised)

Hi Guys
Update... 1 new server later.
Not sure how useful it is (maybe we'll see in 15 days when the trial license expires if that was the cause).

Fresh install, using exactly the same process as the other server(s) and it worked 1st time (getting better at this!).
Add Library Folders, remove both work fine.
All values in webui seem to be fine - just as before. At least it proves It worked once...not sure what else!

Will update as & when. ;)
TTFN
PreviousNext

Return to Third-party tools integration

Who is online

Users browsing this forum: No registered users and 20 guests

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