Topic-icon SOLVED: imagecreateturecolor() error

Active Subscriptions:

None
9 years 6 months ago - 9 years 6 months ago #47672 by joslash
Hello there!

I have a client that want a private social network. When I started to work with him, someone else already had installed a joomla, jomsocial and socialize. So, when I took the project I had to do some configurations.

Some days ago, my client bought JFBConnect. After install this plugin, and configure it with jomsocial, each time a user of this social network login with Facebook credentials, the next error shows in screen:

Image resize fail.
Fatal error: Call to undefined function imagecreatetruecolor() in /home/ysirios/public_html/libraries/sourcecoast/plugins/socialprofile.php on line 543


I would appreciate any help!

Thank you!
Last edit: 9 years 6 months ago by joslash.
The topic has been locked.
Support Specialist
9 years 6 months ago #47678 by alzander
The problem is that your server doesn't have the PHP GD extension enabled. GD is a basic graphics library that is enabled in PHP by default.

To fix the problem, there's 2 quick options you can use:
* Enable GD within PHP
* Disable the Import Cover Photo option in the Profiles -> JomSocial area of JFBConnect. That's the option that uses GD and is what's causing your problem.

I hope that helps get you started, but if not, please let me know. Also, please let me know your client's username and website address or have your client reply to this thread so we can look up the subscription info. That helps us understand how to prioritize responses as priority support is for active subscribers only.

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
9 years 6 months ago - 9 years 6 months ago #47687 by joslash
Thank you Alex!

I disable the Import Cover Photo option, and the sign in goes without error. But now, when the social page appears the next error message appears:

There was an error when trying to move image (/home/ysirios/public_html/tmp/scprofile_423_pic_tmp.jpg) to /home/ysirios/public_html/images/avatar/404601bf179706d64df5dd53.jpg


Thanks!
Last edit: 9 years 6 months ago by joslash.
The topic has been locked.
Support Specialist
9 years 6 months ago #47689 by mel
Could you check that 1) the pic_tmp.jpg file actually exists and 2) the directory it's being copied to (home/ysirios/public_html/images/avatar) exists and has the correct write permissions?
The topic has been locked.
Active Subscriptions:

None
9 years 6 months ago #47691 by ROLANDO
Thank you!
The topic has been locked.