Page 1 of 1
Changes in library tab are not saved

Posted:
Thu Feb 07, 2013 1:15 am
by janci
Can anyone please give advice regarding WebUI v 1.2 with Serviio v 1.1
Any changes i make in the library tab of the UI are lost after refreshing the window or after switching back and forth beween tabs.
Thus i cant add new folders to the libray nor do any modifications to theese settings. not even refresh time interval.
I succesfully managed to add folders and make changes before, now it simply doesnt work.
Ive searched and found some people posting the same problem on other forums but none had any solutions.
Any help is greatly appreciated.
Re: Changes in library tab are not saved

Posted:
Thu Feb 07, 2013 5:57 pm
by slyguy42o
just to confirm your hitting the save button right?
can you post your logs?
Re: Changes in library tab are not saved

Posted:
Mon Feb 11, 2013 2:01 am
by janci
yes im pressing save, but doesnt do so
here is the log that seems to be relevant to this
-------------------------------
2013-02-11 03:02:12,543 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
Re: Changes in library tab are not saved

Posted:
Mon Feb 11, 2013 10:38 am
by zip
You should have a look at the thread of the web UI you're using. There might be a new version solving this. Or ask there.
Re: Changes in library tab are not saved

Posted:
Mon Feb 18, 2013 6:22 pm
by Xmantium
There's a 1.3 in beta found here - wiki.serviio.org/doku.php?id=phpwebui
Re: Changes in library tab are not saved

Posted:
Sun Feb 24, 2013 11:47 pm
by rverhoeve
hi all. i am having the same problem on QNAP NAS T212 running QPKG version '1.1_B10 Christian'. i am a reading the posts regarding the UI interface with PHP, but, too technical for me to understand.
is there a solution to this problem ? i cannot add any libraries to my Serviio list, and it does show 'Saved!', and i was able to to it before, as i got the libraries in there that i have now.
any libraries i add are there until i jump to another Serviio tab. come back; the new library is gone.
while new library is still on the screen, i do a 'Refresh', it initiates the chcck, check ends, no files added.
any help would be appreciated.
debug log attached. thanks, all.
Re: Changes in library tab are not saved

Posted:
Mon Mar 11, 2013 6:01 pm
by rverhoeve
help, someone, please ?
Re: Changes in library tab are not saved

Posted:
Mon Mar 11, 2013 6:18 pm
by will
None of the Web UIs support Serviio 1.2 and even if you are still using 1.1 but are having problems with one of the Web UIs, its probably best to use the official console for now until the devs behind them get them updated as there were a few problems todo with missing data in the Free version of Serviio.
Your options are to either install the official console on your main PC (make sure you have the same version on both machines)and point it to your NAS
http://www.serviio.org/component/conten ... e?id=21#q2 or if you have an Android device, use ServiiDroid.
Re: Changes in library tab are not saved

Posted:
Tue Mar 12, 2013 1:19 am
by rverhoeve
as noted though, it was working, so is there someone why can actually look at the
debug log and explain why it would suddenly stop? seems newbie, i know, but, really... how about Mark Pemberton ? he out there somewhere ??
thanks, all, in advance.
Re: Changes in library tab are not saved

Posted:
Tue Mar 12, 2013 1:46 am
by rverhoeve
i have serviio 1.1 on my NAS, where do i find Serviio 1.1 for windows if i want to install the console on my local machine. i can only find a download for Serviio 1.2 n the Serviio site.
thanks.
Re: Changes in library tab are not saved

Posted:
Tue Mar 12, 2013 9:02 am
by will
As I said, there are a few bugs to do with handling access groups for the free version (which don't exist in the free version), so it probably worked when you first installed Serviio and were under the trial period. The log contains a message that suggests the Web UI is sending back an invalid response to the server and the server doesn't like it. Having said that, I thought mark said he had these issues fixed, are you defineately using the last version of the Web UI (not the version that comes in the NAS package, but the latest from github/the
wiki link posted a bit above?)
Its not linked on the site but it is still available
http://download.serviio.org/releases/se ... -setup.exe
Re: Changes in library tab are not saved

Posted:
Wed Mar 13, 2013 12:10 am
by rverhoeve
hi thanks, for responding. it is good to have a conversation on this.
i don't know if i have the latest Web UI installed. i just implemented what came with the QPKG that Christian had put together for us QNAP NAS folk. are there instructions on 1) how to find out what Web UI interface i have, and 2) how to implement an upgrade to the interface without destroying what i have now in the QPKG implementation that 'mostly' works for me ? i'll try that link further up in these posts....
thanks, again.
Re: Changes in library tab are not saved

Posted:
Wed Mar 13, 2013 12:28 am
by rverhoeve
note, i also just read in another forum that the beta 1.3 did not resolve this problem.
Re: Changes in library tab are not saved

Posted:
Wed Mar 20, 2013 6:34 pm
by elsalvador
Hi Guys,
Just adding my confirmation to this theory.
I've hit it a number of times, with v1.1 and v1.2 - fresh install always works great, later on you can't change stuff in WebUI.
I can also confirm that the PC version of Serviio when told to connect to the server of your choice (via batch file, examples all over the place here) CAN change the library fine, and that shows up in the WebUI.
My personal theory was that it was something to do with the 15 day test period, but couldn't prove it.
3 options:
1. Fix the WebUI (um...beyond me, sorry) or permissions thing mentioned in this thread;
2. Use the PC config program;
3. Buy the pro license (which I might do once I've finished my testing & we're in DEPLOY mode...).
Thanks guys, keep up the great work.
Regards
ElSalvador
Re: Changes in library tab are not saved

Posted:
Sat Oct 05, 2013 3:12 pm
by pineson
I just had a quick at the code and have a solution. Checking the rest API for the Library Data then there is a field for the access group ids requires a value of 1, currently a blank string is being submitted by the WebUi.
To fix it then there are two updates to code/library.php, these are;
First change- Code:
$repo[0][$id] = array(
getPostVar("name_${id}", ""),
$items,
$metaval,
getPostVar("SCAN_${id}", "0")==1?"true":"false",
getPostVar("folder_${id}", "new"),
array(getPostVar("access_${id}", "")));
}
becomes;
- Code:
$repo[0][$id] = array(
getPostVar("name_${id}", ""),
$items,
$metaval,
getPostVar("SCAN_${id}", "0")==1?"true":"false",
getPostVar("folder_${id}", "new"),
array(getPostVar("access_${id}", "1")));
}
Second change- Code:
$repo[1][$id] = array(
getPostVar("os_type_${id}", ""),
getPostVar("os_url_${id}", ""),
getPostVar("os_media_${id}", ""),
getPostVar("onlinesource_${id}", ""),
getPostVar("os_name_${id}", ""),
getPostVar("os_stat_${id}", ""),
getPostVar("os_thumb_${id}", ""),
array(getPostVar("os_access_${id}", ""))
);
becomes;
- Code:
$repo[1][$id] = array(
getPostVar("os_type_${id}", ""),
getPostVar("os_url_${id}", ""),
getPostVar("os_media_${id}", ""),
getPostVar("onlinesource_${id}", ""),
getPostVar("os_name_${id}", ""),
getPostVar("os_stat_${id}", ""),
getPostVar("os_thumb_${id}", ""),
array(getPostVar("os_access_${id}", "1"))
);