Page MenuHomePhabricator

Avatar Uploads do not work properly
Closed, ResolvedPublic

Description

Tested it on MW 1.30 using 1.30 branch of SocialProfile on a localhost wiki, get the following error:

[5e3a92239fc34fd4f5662384] /MyStuff/index.php/Special:UploadAvatar Error from line 111 of C:\xampp\htdocs\mystuff\extensions\SocialProfile\UserStats\UserStatsTrack.php: Call to undefined function makeKey()

Backtrace:

#0 C:\xampp\htdocs\mystuff\extensions\SocialProfile\UserStats\UserStatsTrack.php(642): UserStatsTrack->clearCache()
#1 C:\xampp\htdocs\mystuff\extensions\SocialProfile\UserStats\UserStatsTrack.php(132): UserStatsTrack->updateTotalPoints()
#2 C:\xampp\htdocs\mystuff\extensions\SocialProfile\UserProfile\UploadAvatar.php(139): UserStatsTrack->incStatField(string)
#3 C:\xampp\htdocs\mystuff\includes\specials\SpecialUpload.php(567): UploadAvatar->performUpload(string, string, boolean, User, array)
#4 C:\xampp\htdocs\mystuff\includes\specials\SpecialUpload.php(207): SpecialUpload->processUpload()
#5 C:\xampp\htdocs\mystuff\extensions\SocialProfile\UserProfile\SpecialUploadAvatar.php(55): SpecialUpload->execute(NULL)
#6 C:\xampp\htdocs\mystuff\includes\specialpage\SpecialPage.php(522): SpecialUploadAvatar->execute(NULL)
#7 C:\xampp\htdocs\mystuff\includes\specialpage\SpecialPageFactory.php(578): SpecialPage->run(NULL)
#8 C:\xampp\htdocs\mystuff\includes\MediaWiki.php(287): SpecialPageFactory::executePath(Title, RequestContext)
#9 C:\xampp\htdocs\mystuff\includes\MediaWiki.php(851): MediaWiki->performRequest()
#10 C:\xampp\htdocs\mystuff\includes\MediaWiki.php(523): MediaWiki->main()
#11 C:\xampp\htdocs\mystuff\index.php(43): MediaWiki->run()
#12 {main}

Event Timeline

Change 408023 had a related patch set uploaded (by SamanthaNguyen; owner: SamanthaNguyen):
[mediawiki/extensions/SocialProfile@master] Fix typo - correctly call the makeKey() function

https://gerrit.wikimedia.org/r/408023

Change 408023 merged by jenkins-bot:
[mediawiki/extensions/SocialProfile@master] Fix typo - correctly call the makeKey() function

https://gerrit.wikimedia.org/r/408023

SamanthaNguyen claimed this task.
SamanthaNguyen triaged this task as Unbreak Now! priority.
SamanthaNguyen removed a project: Patch-For-Review.
SamanthaNguyen moved this task from Backlog to Bugs on the SocialProfile board.
SamanthaNguyen edited subscribers, added: SamanthaNguyen; removed: gerritbot.

@GethN7: Hi, thanks for reporting this! This is annoying; I fixed the typo in the code and am very glad that you caught this. Much appreciated :)

No problem. Confirmed fix works.