Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Call to undefined method FSFile::getTitle() on mp3 file #22

Closed
Reception123 opened this issue Apr 8, 2022 · 5 comments
Closed

Call to undefined method FSFile::getTitle() on mp3 file #22

Reception123 opened this issue Apr 8, 2022 · 5 comments
Labels
bug Something isn't working

Comments

@Reception123
Copy link

Describe the bug
Call to undefined method FSFile::getTitle() from /srv/mediawiki/w/extensions/EmbedVideo/includes/Media/FFProbe/FFProbe.php(68) #0 /srv/mediawiki/w/includes/libs/objectcache/wancache/WANObjectCache.php(1700): MediaWiki\Extension\EmbedVideo\Media\FFProbe\FFProbe->MediaWiki\Extension\EmbedVideo\Media\FFProbe{closure}(boolean, integer, array, NULL, array) #1 /srv/mediawiki/w/includes/libs/objectcache/wancache/WANObjectCache.php(1532): WANObjectCache->fetchOrRegenerate(string, integer, Closure, array, array) #2 /srv/mediawiki/w/extensions/EmbedVideo/includes/Media/FFProbe/FFProbe.php(80): WANObjectCache->getWithSetCallback(string, integer, Closure) #3 /srv/mediawiki/w/extensions/EmbedVideo/includes/Media/FFProbe/FFProbe.php(104): MediaWiki\Extension\EmbedVideo\Media\FFProbe\FFProbe->getMetaData(string) #4 /srv/mediawiki/w/extensions/EmbedVideo/includes/Media/AudioHandler.php(316): MediaWiki\Extension\EmbedVideo\Media\FFProbe\FFProbe->getStream(string) #5 /srv/mediawiki/w/extensions/EmbedVideo/includes/Media/AudioHandler.php(273): MediaWiki\Extension\EmbedVideo\Media\AudioHandler->getFFProbeResult(FSFile) #6 /srv/mediawiki/w/includes/media/MediaHandler.php(236): MediaWiki\Extension\EmbedVideo\Media\AudioHandler->getMetadata(FSFile, string) #7 /srv/mediawiki/w/includes/utils/MWFileProps.php(88): MediaHandler->getSizeAndMetadataWithFallback(FSFile, string) #8 /srv/mediawiki/w/includes/upload/UploadBase.php(552): MWFileProps->getPropsFromPath(string, string) #9 /srv/mediawiki/w/includes/upload/UploadBase.php(485): UploadBase->verifyPartialFile() #10 /srv/mediawiki/w/includes/upload/UploadBase.php(391): UploadBase->verifyFile() #11 /srv/mediawiki/w/includes/upload/UploadFromFile.php(95): UploadBase->verifyUpload() #12 /srv/mediawiki/w/includes/api/ApiUpload.php(633): UploadFromFile->verifyUpload() #13 /srv/mediawiki/w/includes/api/ApiUpload.php(110): ApiUpload->verifyUpload() #14 /srv/mediawiki/w/includes/api/ApiMain.php(1874): ApiUpload->execute() #15 /srv/mediawiki/w/includes/api/ApiMain.php(853): ApiMain->executeAction() #16 /srv/mediawiki/w/includes/api/ApiMain.php(824): ApiMain->executeActionWithErrorHandling() #17 /srv/mediawiki/w/api.php(90): ApiMain->execute() #18 /srv/mediawiki/w/api.php(45): wfApiMain() #19 {main}Call to undefined method FSFile::getTitle()
from /srv/mediawiki/w/extensions/EmbedVideo/includes/Media/FFProbe/FFProbe.php(68)
#0 /srv/mediawiki/w/includes/libs/objectcache/wancache/WANObjectCache.php(1700): MediaWiki\Extension\EmbedVideo\Media\FFProbe\FFProbe->MediaWiki\Extension\EmbedVideo\Media\FFProbe{closure}(boolean, integer, array, NULL, array)
#1 (closed) /srv/mediawiki/w/includes/libs/objectcache/wancache/WANObjectCache.php(1532): WANObjectCache->fetchOrRegenerate(string, integer, Closure, array, array)
#2 (closed) /srv/mediawiki/w/extensions/EmbedVideo/includes/Media/FFProbe/FFProbe.php(80): WANObjectCache->getWithSetCallback(string, integer, Closure)
#3 (closed) /srv/mediawiki/w/extensions/EmbedVideo/includes/Media/FFProbe/FFProbe.php(104): MediaWiki\Extension\EmbedVideo\Media\FFProbe\FFProbe->getMetaData(string)
#4 (closed) /srv/mediawiki/w/extensions/EmbedVideo/includes/Media/AudioHandler.php(316): MediaWiki\Extension\EmbedVideo\Media\FFProbe\FFProbe->getStream(string)
#5 (closed) /srv/mediawiki/w/extensions/EmbedVideo/includes/Media/AudioHandler.php(273): MediaWiki\Extension\EmbedVideo\Media\AudioHandler->getFFProbeResult(FSFile)
#6 (closed) /srv/mediawiki/w/includes/media/MediaHandler.php(236): MediaWiki\Extension\EmbedVideo\Media\AudioHandler->getMetadata(FSFile, string)
#7 (closed) /srv/mediawiki/w/includes/utils/MWFileProps.php(88): MediaHandler->getSizeAndMetadataWithFallback(FSFile, string)
#8 (closed) /srv/mediawiki/w/includes/upload/UploadBase.php(552): MWFileProps->getPropsFromPath(string, string)
#9 (closed) /srv/mediawiki/w/includes/upload/UploadBase.php(485): UploadBase->verifyPartialFile()
#10 (closed) /srv/mediawiki/w/includes/upload/UploadBase.php(391): UploadBase->verifyFile()
#11 (closed) /srv/mediawiki/w/includes/upload/UploadFromFile.php(95): UploadBase->verifyUpload()
#12 (closed) /srv/mediawiki/w/includes/api/ApiUpload.php(633): UploadFromFile->verifyUpload()
#13 (closed) /srv/mediawiki/w/includes/api/ApiUpload.php(110): ApiUpload->verifyUpload()
#14 /srv/mediawiki/w/includes/api/ApiMain.php(1874): ApiUpload->execute()
#15 (closed) /srv/mediawiki/w/includes/api/ApiMain.php(853): ApiMain->executeAction()
#16 (closed) /srv/mediawiki/w/includes/api/ApiMain.php(824): ApiMain->executeActionWithErrorHandling()
#17 (closed) /srv/mediawiki/w/api.php(90): ApiMain->execute()
#18 (closed) /srv/mediawiki/w/api.php(45): wfApiMain()
#19 (closed) {main}
To Reproduce
Steps to reproduce the behavior:
Upload mp3 file
Expected behavior
Upload to work
Screenshots
If applicable, add screenshots to help explain your problem.

Technical information:
MediaWiki 1.37.2 PHP 7.4

Additional context

@Reception123 Reception123 added the bug Something isn't working label Apr 8, 2022
@octfx
Copy link
Member

octfx commented Apr 8, 2022

This should be fixed in the develop branch, can you run a test?

@Reception123
Copy link
Author

I assume 637cf1b is all that is needed for the test?

@octfx
Copy link
Member

octfx commented Apr 8, 2022

Yes

@Reception123
Copy link
Author

@octfx Real sorry for the delay, yes indeed that fixes it. Thank you very much! I'll wait for it to go to the master branch :)

@alistair3149
Copy link
Collaborator

Merged into master branch with release v3.0.8
Closing this now.

octfx added a commit that referenced this issue Jul 12, 2022
dist: Re-Release v3.0.8

* Fix accessing title on FSFiles (#22)
* Add composer installers as dependency
* Translation Updates
* Fix composer.json version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants