Page MenuHomePhabricator

Errors uploading avatars: Call to undefined function imagecreatefrompng()
Closed, InvalidPublic

Description

Author: xsile

Description:
Hi there,

I have an issue uploading avatars and gift images.

I have managed to put the avatars folder in the images directory and the default grey avatar is showing, however when I go to upload an avatar, I get these two error messages:

Warning: Invalid argument supplied for foreach() in /home/wikihut/public_html/extensions/SocialProfile/UserStats/UserStatsClass.php on line 611

Fatal error: Call to undefined function imagecreatefrompng() in /home/wikihut/public_html/extensions/SocialProfile/UserProfile/SpecialUploadAvatar.php on line 296

How do I resolve this issue so I can upload avatars?

Thanks so much!


Version: unspecified
Severity: normal

Details

Reference
bz41485

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 12:51 AM
bzimport added a project: SocialProfile.
bzimport set Reference to bz41485.

Hi Tim, which MediaWiki and extension versions is this about?

xsile wrote:

Hi there, sorry that I did not give this information!

MediaWiki Version: 1.19.2
SocialProfile Version: 1.5

Hope that helps.

Thanks for your time!

xsile wrote:

Hi there, sorry that I did not give this information!

MediaWiki Version: 1.19.2
SocialProfile Version: 1.5

Hope that helps.

Thanks for your time!

xsile wrote:

It turns out I have not got that installed so I'll install it and see how I go!

Thanks so much for the speedy responses by the way, you are fantastic!

Thank you so much,
Tim

xsile wrote:

The issue has resolved.

Problem was that the GD extension was not installed.

I can't thank you enough! Thank you for your time, your help and for bearing with me!

Thanks,
Tim