Notice

The forum is in read only mode.

Support Forum

Welcome! Support Forums have been reactivated
Welcome the Technical Support section. Help us in assisting you by providing us with a concise and descriptive elaboration of your issues. Be specific and if possible, provide us with a step-by-step instruction in replicating your problem.

Can't change Avatar or Cover Photo - Uploaded file type is not supported

8 years 5 months ago
  • Wade's Avatar
    Topic Author
  • Wade
  • Offline
  • Fresh Boarder
  • Thank you received: 1
Licenses:
JomSocial Active

Been tackling this issue since I upgraded from Jomsocial 2.8 to 3.2.

Users can't change profile Avatar, Profile Cover Photo, or Group Cover Photos . At every try the popup box appears, but after they click upload photos the error "Uploaded file type is not supported" appears then fade out.

Here's the community link: www.momspumphere.com/community/
I've spent 2 weeks frustratingly trying to fix this error, our users are complaining and I'm clueless after endless forum searching and Googling. I need help.

Big Thanks

8 years 5 months ago
Licenses:
JomSocial Expired GURU Expired Publisher Expired AdAgency Expired iSEO Expired Socialize Expired

Hi Wade,
It seems your upgrade may not have taken place properly.
Can you have a whole site backup first?
and make sure you have followed each steps as documentation.jomsocial.com/wiki/Upgrade..._3.0.x_on_Joomla_2.5
Specially

Starting the Upgrade
Uninstall the older JomSocial version by going to Extensions > Extensions Manager, select Manage, select JomSocial/Community, click Uninstall. Make sure that all JomSocial related modules, plugins, extensions are uninstalled.
Go back to 'Install', upload the JomSocial installation package and follow the onscreen instructions (press 'next' a lot).
It really is that simple! ;)

Let me know if the problem still persist after followed above instruction.
Thanks

8 years 5 months ago
  • Wade's Avatar
    Topic Author
  • Wade
  • Offline
  • Fresh Boarder
  • Thank you received: 1
Licenses:
JomSocial Active

Hi Ashraf thanks for the suggested fix, but the error still remains after I uninstalled and re-installed Jomsocial following the directions in the documentation.

8 years 5 months ago
Licenses:
JomSocial Expired GURU Expired Publisher Expired AdAgency Expired iSEO Expired Socialize Expired

Hi Wade,
I am going to install jomsocial after uninstall existing one but
it seems there are some issue as the screenshot.
It shows "I am sorry, but your server did not meet the minimum requirement to install JomSocial"
prntscr.com/4g8849
Please contact with hosting server provider and ask to fix the permission if you are not familiar.
Thanks

8 years 5 months ago
  • Wade's Avatar
    Topic Author
  • Wade
  • Offline
  • Fresh Boarder
  • Thank you received: 1
Licenses:
JomSocial Active

I just fixed permissions Ashraf, try it again and let me know what happens. Thnx

8 years 5 months ago
Licenses:
JomSocial Expired GURU Expired Publisher Expired AdAgency Expired iSEO Expired Socialize Expired

Hi Wade,
I have updated jomsocial with latest package 3.2.1.3
and now changing/uploading cover photo and avater seems working fine.
Please check.
Thanks

8 years 5 months ago
  • Wade's Avatar
    Topic Author
  • Wade
  • Offline
  • Fresh Boarder
  • Thank you received: 1
Licenses:
JomSocial Active

Hi Ashraf, the fix only works if I turn off Joomla SEF settings. Unfortunately our site relies heavily on online marketing and SEF optimization for Google/Bing to bring in traffic. We can't disable SEF and our template took months to customize for branding.

After an exhaustive googling, I noticed this issue of "uploaded file type not supported" has affected many JS users as far back as 2009, and is still not really fixed in version 3.2.1.3.

I prefer the direct method you're using to change avatar and cover photo, BUT the bug is still not resolved across the board, so for my users convenience and time sake I did a temporary workaround by editing the following file to upload a new avatar indirectly.

FILE LOCATION:

components/com_community/templates/default/modules/profile/userinfo.php



REPLACE THIS CODE:
<div class="span3">
<div class="thumbnail js-focus-avatar">
<img src="<?php echo $profile->largeAvatar . '?_=' . time(); ?>" alt="<?php echo $this->escape( $user->getDisplayName() ); ?>" />
<?php if( $isMine || COwnerHelper::isCommunityAdmin() ): ?>
<b class="js-focus-avatar-option">
<a href="javascript:void(0)" onclick="joms.photos.uploadAvatar('profile','<?php echo $profile->id?>')"><?php echo JText::_('COM_COMMUNITY_CHANGE_AVATAR')?></a>
</b>
<?php endif; ?>
</div>
</div>


WITH THIS CODE:
<div class="span3">
<div class="thumbnail js-focus-avatar">
<img src="<?php echo $profile->largeAvatar . '?_=' . time(); ?>" alt="<?php echo $this->escape( $user->getDisplayName() ); ?>" />
<?php if( $isMine || COwnerHelper::isCommunityAdmin() ): ?>
<b class="js-focus-avatar-option">
<a href="profile/change-profile-picture" onmouseover=""><?php echo JText::_('COM_COMMUNITY_CHANGE_AVATAR')?></a>
</b>
<?php endif; ?>
</div>
</div>



1. I also need to know how to do this for the cover photo on the profile page.

2. I also need to know how to implement this workaround to fix the same Error on the Groups avatar and cover photo.

The original JS files are of course backed up for when I upgrade to your next version. Big Thanks for all your help :-)

8 years 5 months ago
Licenses:
JomSocial Expired GURU Expired Publisher Expired AdAgency Expired iSEO Expired Socialize Expired

Hi Wade,
For the SEO issue
I have renamed "htaccess.txt" file to ".htaccess" but now it is showing internal server problem "500 error - Internal Server Error!
"
Can you contact with hosting server provider to fix this issue.
It need to confirm that the apachi rewrite module is on.
Thanks

8 years 5 months ago
  • Wade's Avatar
    Topic Author
  • Wade
  • Offline
  • Fresh Boarder
  • Thank you received: 1
Licenses:
JomSocial Active

Good morning Ashraf, the test site is displaying again, in .htaccess file, you had to comment out the following line:

Options +FollowSymLinks

8 years 4 months ago
  • Wade's Avatar
    Topic Author
  • Wade
  • Offline
  • Fresh Boarder
  • Thank you received: 1
Licenses:
JomSocial Active

Ashraf, also you might want to look into this suggestion by Dimas to switch imageengine to phpGD instead of ImageMagick.

www.jomsocial.com/forum/facebook-connect...k-doesn-t-work#46845

To be honest, I don't know how to do this. I think it might require accessing the test site database with phpMyAdmin. I provided that info with this ticket.

8 years 4 months ago
Licenses:
JomSocial Expired GURU Expired Publisher Expired AdAgency Expired iSEO Expired Socialize Expired

Hi Wade,
PHP GD is a extension which should be enable from the hosting server.
Can you contact with the hosting server provider again by asking such support?
Thanks

8 years 4 months ago
  • Wade's Avatar
    Topic Author
  • Wade
  • Offline
  • Fresh Boarder
  • Thank you received: 1
Licenses:
JomSocial Active

Ashraf, the hosting server has both ImagMagick and GD Library installed and enabled in php.ini, gd,ini, and imagick.ini. Here are the two screenshots.

Attachments:
8 years 4 months ago
  • Wade's Avatar
    Topic Author
  • Wade
  • Offline
  • Fresh Boarder
  • Thank you received: 1
Licenses:
JomSocial Active

Ashraf, FYI. I made a second test site copy of the live site with Jomsocial 3.2.1.3 upgraded to 3.2.14. The cover photo and avatar issue still exist, so the latest JS version doesn't fixed it.

I still want to try to switch the imageengine to use phpGD instead of ImageMagick. Your colleague Dimas did this for another customer and it solved their problem. It sounds like a simple setting in phpMyAdmin. I searched the "community_config" table but didn't find anything labeled "imageengine" to change the setting. Perhaps I'm looking in the wrong place? Help me out here, I really need to get this fixed to move on with our business marketing campaign. I keep fielding complains from our users, and it's getting very exhausting. They will leave and not come back for something that seem so small.

If this is not possible just show me the workaround like I suggested before to upload the avatar and cover photo the indirect way. At least that works.

The following user(s) said Thank You: Yuditmi
8 years 4 months ago
  • Wade's Avatar
    Topic Author
  • Wade
  • Offline
  • Fresh Boarder
  • Thank you received: 1
Licenses:
JomSocial Active

Good morning JS team, have any of you had any luck in figuring this out for me? Could we please try the workaround I suggested? or could we swith between GD Library and ImageMagick to see if that fixes the problem? Any help would be appreciated.

Here's where we stand:

1. Set Joomla 2.5 templates as default over the Yootheme Micasa template (Warp 6.5 Framework) - That hasn't fixed it.

2. Upgraded to latest JS 3.2.14 - that hasn't fixed it.

3. Uninstalled and re-installed Jomsocial - that hasn't fixed it.

4. Disabled htaccess - no luck.

5. Disabled Joomla sef - that hasn't fixed it.

6. Disabled various plugins, modules, and extensions - that hasn't fixed it.

7. Both GD Library and ImageMagick are installed nd enabled - We run and manage our own VPN through Rackspace.

8. What else could be the problem??? This is getting quite frustrating.

Moderators: Piotr Garasiński
Powered by Kunena Forum

Join 180,000 websites creating Amazing communities

JomSocial is the most complete, easy-to-use addon that turns Joomla CMS into a
full -fledged, social networking site

TRY NOW BUY NOW