Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


undefined (reading 'indexOf')
#2
(05-12-2023, 07:16 AM)danbuntu Wrote: Hello
I have done a fresh install of Moode 8.3.2 onto a Raspberry Pi 3. The pi is getting it's ip address via a DHCP reservation.
When I open the web interface I can see the below error in the console. This error is stuck in a loop and keeps appearing - 1300 calls to it at the moment and counting.
I see the same when I open the admin pages and if they do open they then lockup on saving:
Code:
    playerlib.js:968 Uncaught TypeError: Cannot read properties of undefined (reading 'indexOf')
   at Object.success (playerlib.js:968:32)
   at u (jquery-1.8.2.js:974:30)
   at Object.fireWith [as resolveWith] (jquery-1.8.2.js:1082:7)
   at N (jquery-1.8.2.js:7788:14)
   at XMLHttpRequest.n (jquery-1.8.2.js:8500:8)

Has anyone else encountered this problem?

Hi,

it's weird, as it appears the image url is not defined...
Code:
if (MPD.json['coverurl'].indexOf('default-cover-v6') === -1)

I see other lines of code reading MPD.json['coverurl'], and they also check if the member exists (here such check is not present, hence the errors).

@Tim Curtis, maybe we should ensure that ['coverurl'] is always there, instead of adding checks for its existence, or have it be an empty string if it happens to be null?
Reply


Messages In This Thread
undefined (reading 'indexOf') - by danbuntu - 05-12-2023, 07:16 AM
RE: undefined (reading 'indexOf') - by Nutul - 05-12-2023, 07:54 AM
RE: undefined (reading 'indexOf') - by Tim Curtis - 05-12-2023, 12:11 PM
RE: undefined (reading 'indexOf') - by danbuntu - 05-15-2023, 08:57 AM

Forum Jump: