- Issue created by @rosiel
- πΊπΈUnited States theMusician
That is great to hear you are considering it for a Drupal distribution. I have been looking at using it as a media player in Archipelago too.
We have been doing a lot of testing on sites we run hoping to get to a stable release.
I will need to test the install/uninstall and figure out a plan for making the transcripts stay in place or possibly give users the option to remove them.
Thank you for the feedback
- πΊπΈUnited States theMusician
I tried this on a fresh install and on a local copy that I have had around for a few update cycles, beta 4, 5, 6 and I do see that the media references break on uninstall. They appear in Content -> Media but clicking on them throws an error.
Error: Call to a member function getSource() on null in Drupal\media\Entity\Media->getSource() (line 137 of /app/core/modules/media/src/Entity/Media.php). Error: Call to a member function label() on null in Drupal\media\MediaForm->form() (line 25 of /app/core/modules/media/src/MediaForm.php).
However, Content -> Files still has the files, and clicking them shows their content.
Reinstalling the module, makes the media references work again.
I will have to research further how to keep the media references valid after the module is uninstalled. When that is resolved moving to a stable release seems prudent. If you have any ideas on how to keep the media references valid, I always appreciate contributions, ideas, code, and feedback like this.
Thank you.
- πΊπΈUnited States theMusician
Started working through this issue.
https://git.drupalcode.org/project/ableplayer/-/tree/issue-3367081 - πΊπΈUnited States theMusician
We believe we have a working solution.
The installed configuration was moved from the config install directory to the config optional directory. This keeps the media references within Drupal happy. The uninstall hook then was deemed not necessary so that has been removed to allow Drupal to manage dependencies.
We are going to test a few more variations of the module being installed fresh, existing, and uninstall/reinstall but so far this maintains the data integrity.
The branch issue-3367081 is current with the altered code.
- Status changed to Needs review
over 1 year ago 6:24pm 14 July 2023 - Status changed to Fixed
about 1 year ago 5:09pm 22 September 2023 Automatically closed - issue fixed for 2 weeks with no activity.