Modify

Ticket #7 (closed defect: fixed)

Opened 4 years ago

Last modified 4 years ago

Avatar uploads broken on WIndows installations

Reported by: Pete.Dakin Owned by: Pete.Dakin
Priority: medium Milestone:
Component: Wiki Version:
Keywords: Cc:
Actual Effort (in hours): Estimated Effort (in hours):

Description (last modified by Pete.Dakin) (diff)

Avatar uploads break on Windows installations (so, Mike2 works, imcollab doesn't).

To reproduce: Try uploading an avatar from with your profile.

Error message: Fatal error: Call to undefined function wfImageArchiveDir() in C:\wamp\vhosts\TEST_imcollab\wiki\extensions\SocialProfile?\UserProfile?\SpecialUploadAvatar?.php on line 352

Symptom: On imCollab, a WSOD when uploading avatars. On a WAMP build, the error shown above.

Findings at time of writing: function wfImageArchiveDir() exists in Image.php, which does not ship with MediaWiki?! Why it works on Linux is a mystery.

It _was_ working, something has obviously changed. BUT, a clean install of MediaWiki?, and adding SocialProfile? extension, reproduces the problem.

Attachments

Change History

comment:1 Changed 4 years ago by Pete.Dakin

  • Owner changed from admin to Pete.Dakin
  • Status changed from new to assigned
  • Description modified (diff)

comment:2 Changed 4 years ago by Pete.Dakin

  • Status changed from assigned to closed
  • Resolution set to fixed

comment:3 Changed 4 years ago by Pete.Dakin

The missing function was found online and copied into \wiki\extensions\SocialProfile??\UserProfile??\SpecialUploadAvatar??.php. It fixed the problem locally. The patch was hot pasted into the same file on imcollab. Also fixed. Made hotfix on mike2; nothing broke.

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.