Topic on Extension talk:PdfHandler

Cannot upload PDF files

2
Bttfvgo (talkcontribs)

I keep receiving the following error,

[74c2d3075bfe95ae81e19be4] /Special:Upload MWException from line 497 of /var/www/html/includes/filerepo/file/LocalFile.php: Could not find data for image 'Flynn_statement_of_offense.pdf'.

Backtrace:
#0 /var/www/html/includes/filerepo/file/LocalFile.php(654): LocalFile->loadExtraFromDB()
#1 /var/www/html/includes/filerepo/file/LocalFile.php(922): LocalFile->load(integer)
#2 /var/www/html/extensions/PdfHandler/includes/CreatePdfThumbnailsJob.php(112): LocalFile->getMetadata()
#3 /var/www/html/includes/Hooks.php(174): CreatePdfThumbnailsJob::insertJobs(UploadFromFile, string, boolean)
#4 /var/www/html/includes/Hooks.php(202): Hooks::callHook(string, array, array, NULL)
#5 /var/www/html/includes/upload/UploadBase.php(478): Hooks::run(string, array)
#6 /var/www/html/includes/upload/UploadBase.php(344): UploadBase->verifyFile()
#7 /var/www/html/includes/upload/UploadFromFile.php(95): UploadBase->verifyUpload()
#8 /var/www/html/includes/specials/SpecialUpload.php(506): UploadFromFile->verifyUpload()
#9 /var/www/html/includes/specials/SpecialUpload.php(204): SpecialUpload->processUpload()
#10 /var/www/html/includes/specialpage/SpecialPage.php(569): SpecialUpload->execute(NULL)
#11 /var/www/html/includes/specialpage/SpecialPageFactory.php(558): SpecialPage->run(NULL)
#12 /var/www/html/includes/MediaWiki.php(288): MediaWiki\Special\SpecialPageFactory->executePath(Title, RequestContext)
#13 /var/www/html/includes/MediaWiki.php(865): MediaWiki->performRequest()
#14 /var/www/html/includes/MediaWiki.php(515): MediaWiki->main()
#15 /var/www/html/index.php(42): MediaWiki->run()
#16 {main}

, when trying to upload PDF files while running MW 1.33. It cannot find data but I can import the file via maintenance/importImages.php (and then just edit the description page) and it finds data then, but not when uploading using Upload Wizard. Anything I might be doing that is keeping this from working? It's worked for years, so this is frustrating! Thanks!

TieMichael (talkcontribs)

Same here!

Adding "$wgPdfCreateThumbnailsInJobQueue = false;" to LocalSettings.php seem to help

Reply to "Cannot upload PDF files"