Jump to content

Browser error "TypeError: Cannot set properties of null (setting 'setListClasses')"


Recommended Posts

benjibarnicals
Posted

Hey all,

Just updated Emby server (Docker instance) to 4.8.11.0, when I log into Emby from a Chromium based browser login is fine, dashboard is fine, navigation elements are fine etc but if I try to view Movies, TV Shows, Music etc i'll see a blank content area (where movies would show), when looking in the browsers developer tools console log I see this error:

listcontroller.js?v=4.8.11.0:1 Uncaught (in promise) TypeError: Cannot set properties of null (setting 'setListClasses')
    at ListController.initItemsContainer (listcontroller.js?v=4.8.11.0:1:9066)
    at ItemsTab.onTemplateLoaded (itemstab.js?v=4.8.11.0:1:757)
    at tabbedview.js?v=4.8.11.0:1:8902
    at tabbedview.js?v=4.8.11.0:1:9159

However the "Suggestions" tabs work (though none other).

Happens after a restart, etc.

Any thoughts?

Screenshot 2025-04-11 at 16.36.57.png

Posted

Hi, I would try clearing browsing data and seeing if that helps.

benjibarnicals
Posted

Unfortunately no bueno. I've also tried logging into Emby on completely different browsers (Safari and Firefox). All on Mac OSX. Firefox does show the error as this:

Uncaught (in promise) TypeError: this.itemsContainer is null

If that helps.

If I access my Emby server from an Android or iOS native app (or LG TV WebOS app etc) it works fine (presumably as thats done through API's).

I will try on a Windows machine later today when I get home.

visproduction
Posted

I have no trailer plugin and remote control console log info and error does not show up in Versions 4.9.0.45 or 46 beta.
Does this have something to do with the trailer plug in or some remote control event?

Posted

You said macOS safari has the problem? I just tested on a fresh install of the 4.8.11 server and I don't see this issue in safari.

benjibarnicals
Posted

Removed the "Trailers" plugin but no avail. Its worth noting if I click on the "Folders" tab it lists all the contents fine. Searching for content is fine, going into a Movies details page (for example) is fine. Its just trying to use tabes like "Movies" or Genres etc doesn't.

Luke, have you added libraries/content to your install? Attached is the list of plugins I have installed. You can try adding these to your install.

I'm happy to try Emby beta, if there is a docker version of this?

Screenshot 2025-04-12 at 01.15.52.png

Posted

If you remove data explorer, bulky, chapter api and disk space, does the problem still occur?

benjibarnicals
Posted

Just tried this removing all those plugins and unfortunately nada. I've also rescanned all my libraries etc. The issue is in this JS /web/modules/tabbedview/listcontroller.js?v=4.8.11.0 to this line of code:

this.itemsContainer.setListClasses = !0,

I know it doesn't fix the issue of why no data is being populated on the DOM for tabs (except Folder View, Suggested, Favourited) etc, but putting a catch/try on this line of code above to so it doesn't cause the script to break as this.itemsContainer is coming back as null. 

ie. this code:

this.itemsContainer = view.querySelector(".itemsContainer")

Is returning null because .itemsContainer doesn't exist on the DOM at the moment in time this was run (and the underlying issue there is why there is no content being loaded here is odd. Especially if I use Folder view (tab) or Suggested for example content loads and shows fine. Plus connecting to my Emby server from apps/native apps/TV's/Roku's etc all works fine throughout.

I'm loathed to remove the Virtual TV plugin (though I don't think this is the issue) as I have setup a lot of channels etc here that I don't want to loose.

Could I either downgrade my docker image to the previous Emby version? Or do you have a beta docker image I could try running instead?

I have large libraries on my server so I want to try and minimize any risk of destroying them etc.

Posted

Can you please provide a new log file? Thanks.

benjibarnicals
Posted

No probs, i've DM'd you the file/message.

  • Thanks 1
Posted

OK how does it compare in safari?

benjibarnicals
Posted

No change in Safari (with the above plugins removed).

Posted

What version of macOS?

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...