[SOLVED] moOde 9.0.5 and 9.0.7: Adding radio station to playlist does not work - Printable Version +- Moode Forum (https://moodeaudio.org/forum) +-- Forum: moOde audio player (https://moodeaudio.org/forum/forumdisplay.php?fid=3) +--- Forum: Support (https://moodeaudio.org/forum/forumdisplay.php?fid=7) +--- Thread: [SOLVED] moOde 9.0.5 and 9.0.7: Adding radio station to playlist does not work (/showthread.php?tid=6770) |
RE: moOde 9.0.5: Adding radio station to playlist does not work - the_bertrum - 08-04-2024 (08-04-2024, 11:56 AM)kurt1970 Wrote:(08-04-2024, 11:19 AM)the_bertrum Wrote:(08-04-2024, 08:03 AM)kurt1970 Wrote: @TheOldPresbyope , @Tim Curtis , @Nutul I just sent you via PM a movie where I explain how to reproduce the issue, but also how you can workaround it. Well the video is very clear, but even sticking to the radio stations you are using in your test I can't repro either. There must be something very specific in your system that's tripping this up. Do you have any packet inspection or such like going on in your LAN? RE: moOde 9.0.5: Adding radio station to playlist does not work - Tim Curtis - 08-04-2024 (08-04-2024, 05:36 PM)kurt1970 Wrote: Hi @Tim Curtis , Ok, good. Right after the workerLog('here1'); line place the the new workerLog() line shown below and then post the results from the moode log for a failure case. It should be a breakdown of the contents of the $_POST array. This might provide a clue. Code: workerLog(print_r($_POST, true)); RE: moOde 9.0.5: Adding radio station to playlist does not work - kurt1970 - 08-04-2024 Hi @Tim Curtis , Here you go: 20240804 211949 here0 20240804 211949 here1 20240804 211949 Array ( [path] => Array ( [playlist] => test [items] => 1 ) ) And when it works, I see this: 20240804 212152 here0 20240804 212152 here1 20240804 212152 Array ( [path] => Array ( [playlist] => test [items] => Array ( [0] => RADIO/KEXP 90.3 FM Seattle.pls ) ) ) RE: moOde 9.0.5: Adding radio station to playlist does not work - Tim Curtis - 08-04-2024 (08-04-2024, 07:21 PM)kurt1970 Wrote: Hi @Tim Curtis , The failure case shows that the 'items' element is empty or corrupt. I'll have to walk the client JS code to see where and how that element gets set. RE: moOde 9.0.5: Adding radio station to playlist does not work - kurt1970 - 08-04-2024 If there's anything you would like me to test, let me know. Best, k RE: moOde 9.0.5: Adding radio station to playlist does not work - Tim Curtis - 08-04-2024 Ok, here's the next step in debugging. I'm using Chrome on my Mac but other Browsers should have a similar Javascript console. 1. Open the Browser Javascript console 2. As a control, perform a success case up to the point where the list of Playlists is displayed but don't click the Add button - In the console display the contents of the varilables UI.dbEntry[0] and UI.dbEntry[4]. They should both contain the path to the station pls file. Here's a screen shot of what that should look like. [attachment=3991] 3. Now perform a failure case up to the point where the list of Playlists is displayed but don't click the Add button. Display the contents of the variables and post a screen shot of the console. RE: moOde 9.0.5: Adding radio station to playlist does not work - kurt1970 - 08-04-2024 (08-04-2024, 08:23 PM)Tim Curtis Wrote: Ok, here's the next step in debugging. Hi @Tim Curtis , To do your test, I used Chrome on a Win machine. Failing case: Successful case: RE: moOde 9.0.5: Adding radio station to playlist does not work - Tim Curtis - 08-04-2024 Excellent. That isolates the issue to a section of the front-end JS code. Are there any errors in console for the failure case? RE: moOde 9.0.5: Adding radio station to playlist does not work - kurt1970 - 08-04-2024 (08-04-2024, 09:24 PM)Tim Curtis Wrote: Excellent. That isolates the issue to a section of the front-end JS code. Yes. When I press the "Add" button in case of a failure, I get a HTTP 500 error message in the console. RE: moOde 9.0.5: Adding radio station to playlist does not work - Tim Curtis - 08-04-2024 I mean before clicking the add button. The 500 error indicates the script crashed and thats been confirmed by the workerLog statements for the failure case. |