Yes, just pdf! Anyway, I get this error when trying to upload
[35107bde4eb37ec0d2143a4c] /mediawiki/index.php/Special:Upload MWException from line 496 of /var/lib/mediawiki/includes/filerepo/file/LocalFile.php: Could not find data for image 'file.pdf'.
Backtrace:
#0 /var/lib/mediawiki/includes/filerepo/file/LocalFile.php(654): LocalFile->loadExtraFromDB()
#1 /var/lib/mediawiki/includes/filerepo/file/LocalFile.php(919): LocalFile->load(integer)
#2 /var/lib/mediawiki/extensions/PdfHandler/includes/CreatePdfThumbnailsJob.php(112): LocalFile->getMetadata()
#3 /var/lib/mediawiki/includes/Hooks.php(177): CreatePdfThumbnailsJob::insertJobs(UploadFromFile, string, boolean)
#4 /var/lib/mediawiki/includes/Hooks.php(205): Hooks::callHook(string, array, array, NULL)
#5 /var/lib/mediawiki/includes/upload/UploadBase.php(481): Hooks::run(string, array)
#6 /var/lib/mediawiki/includes/upload/UploadBase.php(347): UploadBase->verifyFile()
#7 /var/lib/mediawiki/includes/upload/UploadFromFile.php(95): UploadBase->verifyUpload()
#8 /var/lib/mediawiki/includes/specials/SpecialUpload.php(503): UploadFromFile->verifyUpload()
#9 /var/lib/mediawiki/includes/specials/SpecialUpload.php(207): SpecialUpload->processUpload()
#10 /var/lib/mediawiki/includes/specialpage/SpecialPage.php(522): SpecialUpload->execute(NULL)
#11 /var/lib/mediawiki/includes/specialpage/SpecialPageFactory.php(568): SpecialPage->run(NULL)
#12 /var/lib/mediawiki/includes/MediaWiki.php(288): SpecialPageFactory::executePath(Title, RequestContext)
#13 /var/lib/mediawiki/includes/MediaWiki.php(861): MediaWiki->performRequest()
#14 /var/lib/mediawiki/includes/MediaWiki.php(524): MediaWiki->main()
#15 /var/lib/mediawiki/index.php(42): MediaWiki->run()
#16 {main}
With other file extensions there is no problem. I check other similar issues but mine seems to be different (images directory permissions are 777; I don't run SELinux; pdf is an allowed file extension).
My version is
Product | Version |
---|---|
MediaWiki | 1.31.1 |
PHP | 7.0.32-0ubuntu0.16.04.1 (apache2handler) |
MySQL | 5.7.24-0ubuntu0.16.04.1 |
ICU | 55.1 |
Elasticsearch | 5.6.1 |
Lua | 5.1.5 |
Thanks for any help!
Lorenzo