Last modified: 2011-08-25 08:54:51 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 T32562, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 30562 - Uploading file that has warnings results in fatals on trunk
Uploading file that has warnings results in fatals on trunk
Status: RESOLVED DUPLICATE of bug 30505
Product: MediaWiki
Classification: Unclassified
Uploading (Other open bugs)
1.20.x
All All
: Unprioritized normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-08-25 02:48 UTC by Bawolff (Brian Wolff)
Modified: 2011-08-25 08:54 UTC (History)
1 user (show)

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


Attachments

Description Bawolff (Brian Wolff) 2011-08-25 02:48:47 UTC
[this is on trunk, r95456]
I'm having issues tracking this down.

Upload an image thats a duplicate of some other existed image, do not click ignore warnings. Comes up with the warnings, click submit modified description, then we get:

Warning: preg_match() expects parameter 2 to be string, object given in /var/www/w/phase3/includes/upload/UploadStash.php on line 84

Catchable fatal error: Object of class UploadStashFile could not be converted to string in /var/www/w/phase3/includes/upload/UploadStash.php on line 85

It appears the session key is UploadStashFile instead of a string key like it should be.

Backtrace is:
    * UploadStash.php line 84 calls wfBacktrace()
    * SpecialUpload.php line 957 calls UploadStash->getFile()
    * SpecialUpload.php line 802 calls UploadForm->getDescriptionSection()
    * SpecialUpload.php line 263 calls UploadForm->__construct()
    * SpecialUpload.php line 399 calls SpecialUpload->getUploadForm()
    * SpecialUpload.php line 466 calls SpecialUpload->showUploadWarning()
    * SpecialUpload.php line 202 calls SpecialUpload->processUpload()
    * SpecialPageFactory.php line 469 calls SpecialUpload->execute()
    * Wiki.php line 221 calls SpecialPageFactory::executePath()
    * Wiki.php line 621 calls MediaWiki->performRequest()
    * Wiki.php line 528 calls MediaWiki->main()
    * index.php line 58 calls MediaWiki->run()
Comment 1 Bryan Tong Minh 2011-08-25 08:54:51 UTC

*** This bug has been marked as a duplicate of bug 30505 ***

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


Navigation
Links