Collection cannot be deleted - Javascript error

Server Version#: 4.120.1

Plex Media Server Logs_2023-12-11_16-49-24.zip (4.4 MB)

I had some trouble with PMM’s seasonal Collections feature for Christmas and one of the work arounds I read about online was to pre-create the collection as a Smart Collection with the exact same name. I tried this, and when I ran PMM again, I ended up with two collections of the exact same name. In an attempt to delete the Collection I manually created, I first changed the name of the collection so Plex wouldn’t get confused about which collection to delete.

After changing the name of the collection, I could no longer access any of the menus that would let me delete the collection. Every time I tried to:

  1. Go into the collection and click the three dots.
  2. Click the three dots on the specific collection at the Collections Main page
  3. Select the Collection (small circle at the top left of the poster) to mass edit the collection

I get a Javascript error (bringing up the browser console) that said:

“type”: “[object Error]”,
“stack”: “Error: "collection" is not mapped to a media type\n at https://app.plex.tv/desktop/js/main-179-ad57ecad93d03b176148-plex-4.120.1.36032-9e9a2d9.js:2:1551601\n at i (https://app.plex.tv/desktop/js/main-179-ad57ecad93d03b176148-plex-4.120.1.36032-9e9a2d9.js:2:1551651)\n at Rt (https://app.plex.tv/desktop/js/main-179-ad57ecad93d03b176148-plex-4.120.1.36032-9e9a2d9.js:2:1495646)\n at aa (https://app.plex.tv/desktop/js/2812-2812-e5fd545401546042d5f8-plex-4.120.1.36032-9e9a2d9.js:2:984280)\n at Ws (https://app.plex.tv/desktop/js/2812-2812-e5fd545401546042d5f8-plex-4.120.1.36032-9e9a2d9.js:2:1036373)\n at Ou (https://app.plex.tv/desktop/js/2812-2812-e5fd545401546042d5f8-plex-4.120.1.36032-9e9a2d9.js:2:1023652)\n at ku (https://app.plex.tv/desktop/js/2812-2812-e5fd545401546042d5f8-plex-4.120.1.36032-9e9a2d9.js:2:1023580)\n at Su (https://app.plex.tv/desktop/js/2812-2812-e5fd545401546042d5f8-plex-4.120.1.36032-9e9a2d9.js:2:1023443)\n at mu (https://app.plex.tv/desktop/js/281…”,
“name”: “Error”,
“message”: “"collection" is not mapped to a media type”

I don’t see anything in the server logs but they are attached.

I am at a loss here, there’s nothing online about this issue. I don’t think it’s a PMM issue, it didn’t create this Collection. Any help would be greatly appreciated.

Couple other notes. I thought I’d try to put the name back and then delete it, but when I paste in the Christmas Collection name that I had originally created it as:

:santa: Christmas Movies

The Save Changes button just says " “Your changes could not be saved”

When I PMM again, it had trouble with the same broken collection and it was confusing it with the correct Christmas collection. Here’s the PMM log:

[2023-12-11 17:46:25,294] [builder.py:3080] [INFO] |======================== Updating Details of :santa: Christmas Movies Collection =========================|
[2023-12-11 17:46:25,295] [builder.py:3081] [INFO] | |
[2023-12-11 17:46:25,387] [plex_meta_manager.py:817] [DEBUG] | Traceback (most recent call last): |
| File “C:\Users\paulg\Plex-Meta-Manager\plex_meta_manager.py”, line 763, in run_collection |
| details_list = builder.update_details() |
| File “C:\Users\paulg\Plex-Meta-Manager\modules\builder.py”, line 3124, in update_details |
| self.obj.editSummary(summary[1]) |
| File “C:\Users\paulg\Plex-Meta-Manager\pmm-venv\lib\site-packages\plexapi\mixins.py”, line 663, in editSummary |
| return self.editField(‘summary’, summary, locked=locked) |
| File “C:\Users\paulg\Plex-Meta-Manager\pmm-venv\lib\site-packages\plexapi\mixins.py”, line 552, in editField |
| return self._edit(**edits) |
| File “C:\Users\paulg\Plex-Meta-Manager\pmm-venv\lib\site-packages\plexapi\base.py”, line 585, in _edit |
| self.section()._edit(items=self, **kwargs) |
| File “C:\Users\paulg\Plex-Meta-Manager\pmm-venv\lib\site-packages\plexapi\library.py”, line 1722, in _edit |
| self._server.query(part, method=self._server._session.put) |
| File “C:\Users\paulg\Plex-Meta-Manager\pmm-venv\lib\site-packages\plexapi\server.py”, line 767, in query |
| raise NotFound(message) |
| plexapi.exceptions.NotFound: (404) not_found; http://127.0.0.1:32400/library/sections/1/all?id=61489&summary.locked=1&summary.value=A%20collection%20of%20Christmas%20movies%20that%20may%20relate%20to%20the%20season.&type=18 Not Found

404 Not Found

|
| |
[2023-12-11 17:46:25,390] [plex_meta_manager.py:818] [ERROR] | Unknown Error: (404) not_found; http://127.0.0.1:32400/library/sections/1/all?id=61489&summary.locked=1&summary.value=A%20collection%20of%20Christmas%20movies%20that%20may%20relate%20to%20the%20season.&type=18 Not Found

404 Not Found

|
[2023-12-11 17:46:25,390] [plex_meta_manager.py:823] [INFO] | |
[2023-12-11 17:46:25,390] [plex_meta_manager.py:824] [INFO] |====================================================================================================|
[2023-12-11 17:46:25,390] [plex_meta_manager.py:824] [INFO] | Finished Christmas Movies Collection |
[2023-12-11 17:46:25,390] [plex_meta_manager.py:824] [INFO] | Collection Run Time: 0:00:03 |
[2023-12-11 17:46:25,390] [plex_meta_manager.py:824] [INFO] |====================================================================================================|

The summary in the error message is only in the bad Collection, it’s blank in the good collection.

Is there a way to get the database design doc or relationship diagram for the tables in the database? Plex isn’t open source is it? So I guess the answer is no.

How does one get tech support from Plex? I’ve paid for the Lifetime Plex Pass, doesn’t that entitle me to some tech help here?

As far as workarounds go, that’s a pretty lame one (no offense). If you don’t want to see Plex’ seasonal hubs… just disable them:
https://support.plex.tv/articles/manage-recommendations/

As for the issue you’re describing… is that happening if you’re trying to manage your library/collection via an actual Plex client or some 3rd party app (PMM seems to refer to Plex Meta Manager which appears to be not affiliated with Plex).

[edit: catching up on your final set of logs… it appears the error you get is from that 3rd party app → their homepage/Wiki refers to contacting them via their Discord or post on their Wiki page]

A man dying of thirst in the desert doesn’t comment on the water, I took what I could find.

I can’t say for sure if Plex Meta Manager caused the issue, it might be a combo of my actions and PMM. But the issue is a broken entry in Plex’s collection table. I’m not going to ask the PMM developers to fix an issue with a Plex database.

I’ve automated all my Collections through PMM so I think I’m going to uninstall Plex and reinstall a fresh instance. PMM will rebuild the collections in 15 minutes.