FAQ  •  Register  •  Login

Web UI in PHP - support thread

<<

npuser

DLNA master

Posts: 172

Joined: Mon Feb 06, 2012 3:44 am

Location: Michigan

Post Sun May 20, 2012 7:44 pm

Re: Web UI in PHP (revised)

I believe you can simply comment the line 126 per Mark... Here is previous post about the issue.http://forum.serviio.org/viewtopic.php?p=43658#p43658

NPuser
<<

lmd

Streaming enthusiast

Posts: 34

Joined: Tue May 15, 2012 1:34 am

Post Mon May 21, 2012 2:09 am

Re: Web UI in PHP (revised)

npuser wrote:I believe you can simply comment the line 126 per Mark... Here is previous post about the issue.http://forum.serviio.org/viewtopic.php?p=43658#p43658

NPuser


Thanks for the suggestion - I'd searched but hadn't come across that post before.

I've now done as suggested, but am getting the following in the debug 'response' box:

  Code:
<?xml version="1.0" encoding="UTF-8"?>
<result>
  <errorCode>0</errorCode>
  <httpCode>200</httpCode>
</result>


I was just using www.google.com as the url this time as a test. The strange thing is, when I hit 'Add' nothing appears in the list. In the normal behaviour, does this appear before you hit the 'Save' button (like adding a local path - which works just fine on my set up)?

Thanks for the help!

Andy
<<

mpemberton5

DLNA master

Posts: 120

Joined: Sun Aug 28, 2011 9:01 pm

Location: North Carolina, USA

Post Mon May 21, 2012 2:21 am

Re: Web UI in PHP (revised)

lmd wrote:
npuser wrote:I believe you can simply comment the line 126 per Mark... Here is previous post about the issue.http://forum.serviio.org/viewtopic.php?p=43658#p43658

NPuser


Thanks for the suggestion - I'd searched but hadn't come across that post before.

I've now done as suggested, but am getting the following in the debug 'response' box:

  Code:
<?xml version="1.0" encoding="UTF-8"?>
<result>
  <errorCode>0</errorCode>
  <httpCode>200</httpCode>
</result>


I was just using http://www.google.com as the url this time as a test. The strange thing is, when I hit 'Add' nothing appears in the list. In the normal behaviour, does this appear before you hit the 'Save' button (like adding a local path - which works just fine on my set up)?

Thanks for the help!

Andy


Yep, an error code 0 states all was successful. Turn debugging off and you should be 100% now. Give it a whirl and let us know!
<<

lmd

Streaming enthusiast

Posts: 34

Joined: Tue May 15, 2012 1:34 am

Post Mon May 21, 2012 5:48 am

Re: Web UI in PHP (revised)

This is very strange - I go to add the Online Resource, and then nothing appears when I hit 'Add' in the popup box.

Click 'Save' on the Library page and... nothing.

What is happening?

Thanks again for all the input! :)
<<

lmd

Streaming enthusiast

Posts: 34

Joined: Tue May 15, 2012 1:34 am

Post Mon May 21, 2012 2:29 pm

Re: Web UI in PHP (revised)

mpemberton5 wrote:
lmd wrote:
npuser wrote:I believe you can simply comment the line 126 per Mark... Here is previous post about the issue.http://forum.serviio.org/viewtopic.php?p=43658#p43658

NPuser


Thanks for the suggestion - I'd searched but hadn't come across that post before.

I've now done as suggested, but am getting the following in the debug 'response' box:

  Code:
<?xml version="1.0" encoding="UTF-8"?>
<result>
  <errorCode>0</errorCode>
  <httpCode>200</httpCode>
</result>


I was just using http://www.google.com as the url this time as a test. The strange thing is, when I hit 'Add' nothing appears in the list. In the normal behaviour, does this appear before you hit the 'Save' button (like adding a local path - which works just fine on my set up)?

Thanks for the help!

Andy


Yep, an error code 0 states all was successful. Turn debugging off and you should be 100% now. Give it a whirl and let us know!


Mark - the thing is, I enter all of the details into the pop-up box and then click 'Add' and nothing appears in the Online Source library list. So saving the changes is going to give a successful result. It fails at the point of clicking the 'Add' button - is this a webpage problem or something I've not configured on my server?

Thanks for all the help - I appreciate you must be busy with work and doing this in your spare time!

Cheers,

Andy
<<

mpemberton5

DLNA master

Posts: 120

Joined: Sun Aug 28, 2011 9:01 pm

Location: North Carolina, USA

Post Mon May 21, 2012 5:21 pm

Re: Web UI in PHP (revised)

lmd wrote:
Yep, an error code 0 states all was successful. Turn debugging off and you should be 100% now. Give it a whirl and let us know!


Mark - the thing is, I enter all of the details into the pop-up box and then click 'Add' and nothing appears in the Online Source library list. So saving the changes is going to give a successful result. It fails at the point of clicking the 'Add' button - is this a webpage problem or something I've not configured on my server?

Thanks for all the help - I appreciate you must be busy with work and doing this in your spare time!

Cheers,

Andy[/quote]

Understood. I'm at work now so tonight I'll look at possible reasons and maybe even look at ways to do additional debugging. It is definitely a javascript issue on the client side since the table isn't getting updated after you click ADD. What browser do you use? Are you familiar with Chrome's development tools or FF's Web Developer add-on? Those tend to help with javascript errors.
<<

lmd

Streaming enthusiast

Posts: 34

Joined: Tue May 15, 2012 1:34 am

Post Mon May 21, 2012 6:17 pm

Re: Web UI in PHP (revised)

I've tested this in Firefox, Chrome and Safari.

I've got Firebug in Firefox, is there another plugin I can use to check for Javascript errors?

Next thing to try is switch off my antivirus software. Will report back!

Cheers,

Andy
<<

lmd

Streaming enthusiast

Posts: 34

Joined: Tue May 15, 2012 1:34 am

Post Mon May 21, 2012 6:27 pm

Re: Web UI in PHP (revised)

OK, I've tried all 3 browsers with my antivirus switched off (AVG up to date). No difference.

I've switched off Windows Firewall and tried again - still the same.

I checked through all of the JavaScript settings and everything should be good to go.

I have the latest version of Firefox as my main browser (12.0).

Hope this is helpful - thanks again!

Andy
<<

lmd

Streaming enthusiast

Posts: 34

Joined: Tue May 15, 2012 1:34 am

Post Mon May 21, 2012 6:40 pm

Re: Web UI in PHP (revised)

OK, I've installed 'Web Developer' plugin for FireFox and I've come up with the following 'Warning' messages when using the library page to try and add an Online Source.

  Code:
Timestamp: 22/05/2012 01:31:36
Warning: Use of getAttributeNode() is deprecated. Use getAttribute() instead.
Source File: http://mediabox/serviioweb/
Line: 0

Timestamp: 22/05/2012 01:31:40
Warning: Use of attributes' specified attribute is deprecated. It always returns true.
Source File: http://mediabox/serviioweb/
Line: 0

Timestamp: 22/05/2012 01:31:46
Warning: Key event not available on some keyboard layouts: key="c" modifiers="accel, alt"
Source File: chrome://browser/content/browser.xul
Line: 0

Timestamp: 22/05/2012 01:31:46
Warning: Key event not available on GTK2: key="u" modifiers="accel,shift"
Source File: chrome://browser/content/browser.xul
Line: 0

Timestamp: 22/05/2012 01:31:51
Warning: Error in parsing value for 'background-repeat'.  Declaration dropped.
Source File: http://mediabox/serviioweb/
Line: 0

Timestamp: 22/05/2012 01:32:24
Warning: Error in parsing value for 'background-repeat'.  Declaration dropped.
Source File: http://mediabox/serviioweb/
Line: 0


Is this what you need? There were quite a few minor warnings about the CSS, but I'm pretty sure this won't have anything to do with those.

Cheers!

Andy
<<

lmd

Streaming enthusiast

Posts: 34

Joined: Tue May 15, 2012 1:34 am

Post Sat May 26, 2012 9:37 pm

Re: Web UI in PHP (revised)

Well, I've started again with a fresh install and come across the same problem.

Is there a security setting that might be affecting it in my browser? I've looked in FF and everything looks pretty 'open' including JavaScript.

If somebody has any clue it would be great! Also, if I could get a pointer to see if I can log the error that would also be handy.

Thanks :)

Andy
<<

lmd

Streaming enthusiast

Posts: 34

Joined: Tue May 15, 2012 1:34 am

Post Sat May 26, 2012 10:01 pm

Re: Web UI in PHP (revised)

I'm not sure, but I think this could be helpful - I had debugging on the page switched on at the time, so some might relate to that. But I've tried it again since and slightly different errors come up, but all relate to something not right with the JS.

  Code:
[code]Timestamp: 27/05/2012 04:48:48
Warning: reference to undefined property j[d]
Source File: http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js
Line: 3

Timestamp: 27/05/2012 04:48:48
Warning: reference to undefined property i.nodeType
Source File: http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.17/jquery-ui.min.js
Line: 14

Timestamp: 27/05/2012 04:48:48
Warning: reference to undefined property a.nodeType
Source File: http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js
Line: 3

Timestamp: 27/05/2012 04:48:48
Warning: reference to undefined property a.selector
Source File: http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js
Line: 2

Timestamp: 27/05/2012 04:48:10
Warning: reference to undefined property this.tools[name]
Source File: chrome://firebug/content/bti/inProcess/browser.js
Line: 315

Timestamp: 27/05/2012 04:48:10
Warning: reference to undefined property b[l[ka](c / 6)]
Source File: http://www.google-analytics.com/ga.js
Line: 22

Timestamp: 27/05/2012 04:48:10
Warning: reference to undefined property b.dh
Source File: http://www.google-analytics.com/ga.js
Line: [/code]


Is this helpful at all?

Cheers :)
<<

mpemberton5

DLNA master

Posts: 120

Joined: Sun Aug 28, 2011 9:01 pm

Location: North Carolina, USA

Post Sun May 27, 2012 10:01 pm

Re: Web UI in PHP (revised)

So I found the issue. It was related to having a blank list and attempting to add the first entry. The HTML section the javascript code was attempting to add to was non-existent. So I added the section regardless if there were any entries or not. I failed to add that in my testing.

Please go to the wiki (link in signature line) to download the latest. This update also includes the known issue with the erroneous line described in some of the previous posts.

Cheers to all,
Mark
<<

Xmantium

User avatar

DLNA master

Posts: 1396

Joined: Sat Jul 23, 2011 2:12 pm

Location: Manchester, UK

Post Mon May 28, 2012 12:36 am

Re: Web UI in PHP (revised)

Hello Mark, have got a build ready for the upcoming v1.0? :)

zip has provided the documentation in the beta section
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 Mon May 28, 2012 12:59 am

Re: Web UI in PHP (revised)

Xmantium wrote:Hello Mark, have got a build ready for the upcoming v1.0? :)

zip has provided the documentation in the beta section


Going through it now. Also would like to integrate into serviidb.com. Lots of fun stuff to do. :)
<<

qoolbox

Streaming enthusiast

Posts: 45

Joined: Tue Nov 01, 2011 4:35 pm

Location: France

Post Mon May 28, 2012 10:03 am

Re: Web UI in PHP (revised)

Hi

Does the WebUI v1.0.2 fix the UTF-8 indexing issue ? directories and files with special caracter like éàè... are not indexed actually

thanks
Third Party Thecus NAS Develloper

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

lmd

Streaming enthusiast

Posts: 34

Joined: Tue May 15, 2012 1:34 am

Post Mon May 28, 2012 1:42 pm

Re: Web UI in PHP (revised)

mpemberton5 wrote:So I found the issue. It was related to having a blank list and attempting to add the first entry. The HTML section the javascript code was attempting to add to was non-existent. So I added the section regardless if there were any entries or not. I failed to add that in my testing.

Please go to the wiki (link in signature line) to download the latest. This update also includes the known issue with the erroneous line described in some of the previous posts.

Cheers to all,
Mark


Great news! Downloading now :)

Andy
<<

lmd

Streaming enthusiast

Posts: 34

Joined: Tue May 15, 2012 1:34 am

Post Mon May 28, 2012 2:12 pm

Re: Web UI in PHP (revised)

Tested and works - I'm now a very happy man as my home media setup becomes nearly complete.

Waiting for payday for a 2TB hard drive, then it's nearly complete! A local computer shop sells a 'Cube Pro500' for about $60 which can fit another hard drive, which would go perfect in the bedroom with the TV in there...

Oh dear, what am I saying, these things are never complete! Damn my consumerist mind ha ha!

Thanks again Mark :)

Andy
<<

mpemberton5

DLNA master

Posts: 120

Joined: Sun Aug 28, 2011 9:01 pm

Location: North Carolina, USA

Post Mon May 28, 2012 2:35 pm

Re: Web UI in PHP (revised)

qoolbox wrote:Hi

Does the WebUI v1.0.2 fix the UTF-8 indexing issue ? directories and files with special caracter like éàè... are not indexed actually

thanks

Sorry, this definitely fell off my list somewhere. I did go back and find your original post on this shown below.


qoolbox wrote:Bugs confirmed :

- UTF-8 FIles are not display on the DLNA Client (but WEBUI turned in french display well the éèà characters, and localdef is well set in the NAS Environnement)

- adding files by browsing in the Shared Folder TAB doesnt work because interface seems to add a "/" at the end of the Path removing it manually, make it works


I fixed the trailing trailing slash. As far as UTF-8 files and directories, I've got some updates, but not sure if I'm able to test it 100%. Would you be willing to perform a test or two for me?
<<

qoolbox

Streaming enthusiast

Posts: 45

Joined: Tue Nov 01, 2011 4:35 pm

Location: France

Post Mon May 28, 2012 3:05 pm

Re: Web UI in PHP (revised)

Sure i can test it...

is it the 1.0.2 that i must download ?

Thecus NAS Users will be very Glad of the update ;)
Third Party Thecus NAS Develloper

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

Xmantium

User avatar

DLNA master

Posts: 1396

Joined: Sat Jul 23, 2011 2:12 pm

Location: Manchester, UK

Post Fri Jun 01, 2012 2:58 pm

Re: Web UI in PHP (revised)

Mark im free next five day to test out anything we can do about the presentation save button bug QNAP NAS users are having.

qoolbox who has Thecus NAS somehow fixed the same bug issue somehow
He thinks just update PHP but QNAP does have a very close to the latest version of PHP part of the firmware
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
PreviousNext

Return to Third-party tools integration

Who is online

Users browsing this forum: No registered users and 9 guests

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