Last modified: 2013-08-22 21:54:19 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T50700, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 48700 - Could not find data for image on pdf upload
Could not find data for image on pdf upload
Status: NEW
Product: MediaWiki extensions
Classification: Unclassified
PdfHandler (Other open bugs)
master
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks: 41371
  Show dependency treegraph
 
Reported: 2013-05-22 07:58 UTC by Vpovilaitis
Modified: 2013-08-22 21:54 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments
pdf (1.69 MB, application/pdf)
2013-05-22 07:58 UTC, Vpovilaitis
Details

Description Vpovilaitis 2013-05-22 07:58:37 UTC
Created attachment 12368 [details]
pdf

Could not find data for image 'Linkuvos_gimnazijos_laikkra\u0161t\u0117lis_Varpelis_79.pdf'.

Backtrace:

#0 /nas/enciklopedija/w/includes/filerepo/file/LocalFile.php(471): LocalFile->loadExtraFromDB()
#1 /nas/enciklopedija/w/includes/filerepo/file/LocalFile.php(666): LocalFile->load(1)
#2 /nas/enciklopedija/w/extensions/PdfHandler/CreatePdfThumbnailsJob.class.php(110): LocalFile->getMetadata()
#3 [internal function]: CreatePdfThumbnailsJob::insertJobs(Object(UploadFromFile), 'application/pdf', true)
#4 /nas/enciklopedija/w/includes/Hooks.php(196): call_user_func_array('CreatePdfThumbn...', Array)
#5 /nas/enciklopedija/w/includes/GlobalFunctions.php(3872): Hooks::run('UploadVerifyFil...', Array)
#6 /nas/enciklopedija/w/includes/upload/UploadBase.php(475): wfRunHooks('UploadVerifyFil...', Array)
#7 /nas/enciklopedija/w/includes/upload/UploadBase.php(302): UploadBase->verifyFile()
#8 /nas/enciklopedija/w/includes/upload/UploadFromFile.php(97): UploadBase->verifyUpload()
#9 /nas/enciklopedija/w/includes/specials/SpecialUpload.php(406): UploadFromFile->verifyUpload()
#10 /nas/enciklopedija/w/includes/specials/SpecialUpload.php(172): SpecialUpload->processUpload()
#11 /nas/enciklopedija/w/includes/SpecialPage.php(628): SpecialUpload->execute(NULL)
#12 /nas/enciklopedija/w/includes/SpecialPageFactory.php(486): SpecialPage->run(NULL)
#13 /nas/enciklopedija/w/includes/Wiki.php(291): SpecialPageFactory::executePath(Object(Title), Object(RequestContext))
#14 /nas/enciklopedija/w/includes/Wiki.php(565): MediaWiki->performRequest()
#15 /nas/enciklopedija/w/includes/Wiki.php(458): MediaWiki->main()
#16 /nas/enciklopedija/w/index.php(59): MediaWiki->run()
#17 {main}
Comment 1 Andre Klapper 2013-05-24 14:22:06 UTC
Hi Vpovilaitis, which MediaWiki version is this about, and what are the exact steps to reproduce this problem?
Comment 2 Vpovilaitis 2013-05-24 14:43:45 UTC
MediaWiki version is  	1.22alpha (abf3a8f). You can see at http://lietuvai.lt/wiki/Specialus:Versija

Problem was on upload pdf. I made several uploads, of diferent pdf files, including and pdf files witch was uploded with the older wersion of MediaWiki and PdfHandler.

I'm comment aut $IP/includes/filerepo/file/LocalFile.php 471 line ( /*$this->loadExtraFromDB();*/ ). After that this problem was solved. But I don't know may bee this my solution is not very good, but this temporary solve a problem.

Please recomend a better solution.
Comment 3 Andre Klapper 2013-05-25 14:19:40 UTC
PDF was created with Microsoft 2010, metadata looks correct to me.

http://commons.wikimedia.beta.wmflabs.org/wiki/Special:UploadWizard says
"The upload succeeded, but the server could not get a preview thumbnail."
Comment 4 Andre Klapper 2013-05-29 12:33:37 UTC
Same message in bug 48178 comment 8.
Comment 5 Rob Lanphier 2013-08-22 21:53:21 UTC
Doesn't seem to be happening in WMF production based on bawolff's quick investigation.  Dropping priority to normal.
Comment 6 Bawolff (Brian Wolff) 2013-08-22 21:54:19 UTC
I think comment 4 is unrelated.

Some sort of race condition?

Issue happens if a file object is created, but when trying to load metadata from db, no image row.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links