Transcript module Class 'Locale' error

In the Transcript module (4.1), when I view media uploaded as WebVTT, I get this error below. Any ideas? Thank you

 Error
Class 'Locale' not found

Details:

Error: Class 'Locale' not found in /var/www/html/modules/Transcript/src/Media/Renderer/Generic.php:36
Stack trace:
#0 /var/www/html/modules/Transcript/src/Media/Renderer/WebVTT.php(14): Transcript\Media\Renderer\Generic->prepareTextTracks()
#1 /var/www/html/application/src/View/Helper/Media.php(126): Transcript\Media\Renderer\WebVTT->render()
#2 /var/www/html/application/src/Api/Representation/MediaRepresentation.php(42): Omeka\View\Helper\Media->render()
#3 /var/www/html/application/view/omeka/admin/media/show.phtml(20): Omeka\Api\Representation\MediaRepresentation->render()
#4 /var/www/html/vendor/laminas/laminas-view/src/Renderer/PhpRenderer.php(519): include('/var/www/html/a...')
#5 /var/www/html/vendor/laminas/laminas-view/src/View.php(194): Laminas\View\Renderer\PhpRenderer->render()
#6 /var/www/html/vendor/laminas/laminas-view/src/View.php(222): Laminas\View\View->render()
#7 /var/www/html/vendor/laminas/laminas-view/src/View.php(187): Laminas\View\View->renderChildren()
#8 /var/www/html/vendor/laminas/laminas-mvc/src/View/Http/DefaultRenderingStrategy.php(98): Laminas\View\View->render()
#9 /var/www/html/vendor/laminas/laminas-eventmanager/src/EventManager.php(319): Laminas\Mvc\View\Http\DefaultRenderingStrategy->render()
#10 /var/www/html/vendor/laminas/laminas-eventmanager/src/EventManager.php(171): Laminas\EventManager\EventManager->triggerListeners()
#11 /var/www/html/vendor/laminas/laminas-mvc/src/Application.php(360): Laminas\EventManager\EventManager->triggerEvent()
#12 /var/www/html/vendor/laminas/laminas-mvc/src/Application.php(341): Laminas\Mvc\Application->completeRequest()
#13 /var/www/html/index.php(21): Laminas\Mvc\Application->run()
#14 {main}

Hi @mokla ,I’m not sure if you ever found the solution to this problem but I’ve also run across a sort of similar issue with Transcript module’s locale, that if it’s not helpful to you I hope it is to someone else.

My issue was: whenever I tried uploading a WebVTT media to an item, the Subtitles locale dropdown would remain disabled/grayed out like this:

So Omeka would always encounter an error, and prevent me from adding that WebVTT.

After testing a few permutations of module versions and Omeka S versions, the solution turned out to be on the browser I was using. For some reason it only worked on Firefox (the Subtitles locale dropdown becomes available once you add the media file and the subtitle file ). Chrome and Edge were what I was trying previously with no success.

Another issue I had was once I created the item with the WebVTT, I’d get an error when trying to view the public item page. I was able to solve this by going to Site Admin > Settings tab, and on the Language section set the Locale dropdown to match the language.

I’m not sure these are known issues to the developer, and if they are still maintaining the module, but thought it would be worth sharing.

1 Like

This has now been reported to the developer: Stack trace upon uploading a valid VTT file · Issue #8 but the response from the developer is “Unfortunately, our team is currently on hiatus due to some institutional transitions so it will take some time before we can investigate further. I’ll give you an update when I know more!”

There is also a suggestion in a separate thread: Encountered an error while uploading a video to an existing item - #2 by jflatnes

The module has been updated on GitHub but for now you will need to build from source as there isn’t yet a new zip file release. I cheated and just copied the vendor and asset/dist folders from the old installation and that worked.