Last modified: 2011-08-26 23:18:59 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 T32505, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 30505 - Uploading fails where File page exists
Uploading fails where File page exists
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Uploading (Other open bugs)
1.20.x
All All
: Highest normal (vote)
: ---
Assigned To: Ian Baker
:
: 30562 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-08-22 11:54 UTC by Gerard Boyers
Modified: 2011-08-26 23:18 UTC (History)
6 users (show)

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


Attachments

Description Gerard Boyers 2011-08-22 11:54:02 UTC
If you try to Special:Upload a file to the name of an image where the File: page exists but the image does not, MW correctly mentions this and offers you the chance to upload.

Clicking "Submit modified file description" results in an error.

I received two different errors before and after updating SVN to the latest version.


Using the SVN codebase from a few days ago, this gave the following error:

Fatal error: Call to a member function getId() on a non-object in [path]/includes/upload/UploadFromStash.php on line 32


Using 95194 (current svn), the following error is given:

Warning: preg_match() expects parameter 2 to be string, object given in [path]/includes/upload/UploadStash.php on line 84

Catchable fatal error: Object of class UploadStashFile could not be converted to string in [path]/includes/upload/UploadStash.php on line 85



To clarify:
-This is MW 1.19 SVN, up to date
-Uploading works fine, permissions/chmod are fine
-Image does not exist, but the File: page does
-In my scenario, we Special:Imported some pages which included File: pages, and are retrospectively uploading the images through Special:Upload
Comment 1 Bryan Tong Minh 2011-08-25 08:54:51 UTC
*** Bug 30562 has been marked as a duplicate of this bug. ***
Comment 2 Bryan Tong Minh 2011-08-25 08:55:32 UTC
I think this should be assigned to Ian or Neil; either one touched that code the latest.
Comment 3 Ian Baker 2011-08-26 23:18:59 UTC
Thanks for catching this.  Should be fixed in r95581, and deployed soon.  Thanks also to Bawolff for the stack trace.  That was invaluable since I was having trouble duplicating it locally.

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


Navigation
Links