Last modified: 2014-09-13 18:12:53 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 T67431, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 65431 - Special:GiftManagerLogo image upload failure
Special:GiftManagerLogo image upload failure
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
SocialProfile (Other open bugs)
master
All Linux
: Unprioritized major (vote)
: ---
Assigned To: Jack Phoenix
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-05-17 11:30 UTC by Papaver Josepherum
Modified: 2014-09-13 18:12 UTC (History)
1 user (show)

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


Attachments

Description Papaver Josepherum 2014-05-17 11:30:59 UTC
Hey dude, great work on the extension! I've cloned the master build to my local wiki v1.22.5 and noticed a couple of issues.

Warning: Missing argument 3 for UploadBase::detectScript(), called in /home/public/w/extensions/SocialProfile/UserGifts/SpecialGiftManagerLogo.php on line 702 and defined in /home/public/w/includes/upload/UploadBase.php on line 978
Could not copy file "/home/tmp/phpWFZbSw" to "".

You appear to be missing a parameter $extension, in UploadBase::detectScript().

https://doc.wikimedia.org/mediawiki-core/master/php/html/classUploadBase.html#a02134a6e4226989e813138fdd734622c

I fixed this locally, but the upload continues to fail when given a valid image. PHP can't move the file out of my temp directory as the destination filename is empty. The upload function is returning 0; I have not found the reason for this.

Please let me know if you make any progress! :)
Comment 1 Andre Klapper 2014-05-17 14:47:27 UTC
(In reply to Papaver Josepherum from comment #0)
> I fixed this locally

Hi! Thanks for investigating part of the problem(s)!
If you feel like providing a patch, you are welcome to use Developer access
  https://www.mediawiki.org/wiki/Developer_access
to submit this as a Git branch directly into Gerrit:
  https://www.mediawiki.org/wiki/Git/Tutorial
Putting your branch in Git makes it easier to review it quickly. If you don't want to set up Git/Gerrit, you can also use https://tools.wmflabs.org/gerrit-patch-uploader/
Thanks again!
Comment 2 Gerrit Notification Bot 2014-09-13 18:09:16 UTC
Change 160221 had a related patch set uploaded by Jack Phoenix:
Missing $extension parameter for UploadBase::detectScript()

https://gerrit.wikimedia.org/r/160221
Comment 3 Gerrit Notification Bot 2014-09-13 18:10:10 UTC
Change 160221 merged by jenkins-bot:
Missing $extension parameter for UploadBase::detectScript()

https://gerrit.wikimedia.org/r/160221
Comment 4 Jack Phoenix 2014-09-13 18:12:53 UTC
(In reply to Papaver Josepherum from comment #0)
> Hey dude, great work on the extension! I've cloned the master build to my
> local wiki v1.22.5 and noticed a couple of issues.

Thanks for the feedback and the bug report! I've added the missing $extension parameter to the two files which call UploadBase::detectScript(); it probably doesn't change a thing unless you were trying to upload .svg files, as UploadBase::detectScript() cares about the $extension parameter only then.

> Could not copy file "/home/tmp/phpWFZbSw" to "".
This is probably a file permissions issue, or 99% of similar cases have been just that. Double and/or triple-check the file permissions and see if you need to make any changes in file/folder ownership.

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


Navigation
Links