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.

Broken link avatar in stream

10 years 3 months ago
  • Walter's Avatar
    Topic Author
  • Walter
  • Offline
  • Fresh Boarder
  • Posts: 1
  • Thank you received: 0
Licenses:
JomSocial Expired

Hi,

When I upload a new avatar (or change), the link in the stream is broken. I checked the urls:

In the stream the tumb is showing (.../images/avatar/thumb_552128b0e7a703afd9ba250c.jpg), but the stream-image is missing (...//images/avatar/stream_552128b0e7a703afd9ba250c.jpg). What I did find in the folder was an another file (.../images/avatar/profile-552128b0e7a703afd9ba250c.jpg).

I checked the profile, the avatar image is showing (.../images/avatar/552128b0e7a703afd9ba250c.jpg?_=1425469386).

It seams the stream_XXXX.jpg file is not written. This error occured after upgrading from version 3.1 to 3.2.1.6.

Any ideas? Thanks!

Walter

10 years 3 months ago
  • Dimas Tekad Santosa's Avatar
  • Dimas Tekad Santosa
  • Visitor
  • Thank you received: 0
Licenses:

Hi Walter,

I see the incosistence file name in this feature, but well this issue will be totally fixed in version 4.

For the temporary fix, you should edit this file components/com_community/templates/default/activities.profile.avatar.upload.php, find this code :

<?php
		$avatarPath = $act->params->get('attachment');
		?>
		<a href="<?php echo CUrlHelper::userLink($user->id); ?>"><img src="<?php echo $storage->getURI($avatarPath)?>" /></a>

and replace to :
<?php
		$avatarPath = $act->params->get('attachment');
		?>
		<a href="<?php echo CUrlHelper::userLink($user->id); ?>"><img src="<?php echo rtrim(JURI::root(), '/'). '/'. $avatarPath; ?>" /></a>

thank you

10 years 3 months ago
  • Walter's Avatar
    Topic Author
  • Walter
  • Offline
  • Fresh Boarder
  • Posts: 1
  • Thank you received: 0
Licenses:
JomSocial Expired

Hi Dimas,

I've checked the file, but it has already the correct code as you proposed above. So still the same issue ...

Thanks, Walter

10 years 3 months ago
  • Dimas Tekad Santosa's Avatar
  • Dimas Tekad Santosa
  • Visitor
  • Thank you received: 0
Licenses:

Ehm, I suggest you wait the stable Jomsocial version 4, because in JS4 RC2 this issue is working fine.. for time being you can disable the stream for upload new avatar, you can do it from user points configuration..

10 years 3 months ago
  • Walter's Avatar
    Topic Author
  • Walter
  • Offline
  • Fresh Boarder
  • Posts: 1
  • Thank you received: 0
Licenses:
JomSocial Expired

Hi Dimas,

Thanks for the tip, but ...

I've checked in "Points and Activities" and the "Change Profile Picture" was already disabled !!

Thanks, Walter

10 years 3 months ago
  • Walter's Avatar
    Topic Author
  • Walter
  • Offline
  • Fresh Boarder
  • Posts: 1
  • Thank you received: 0
Licenses:
JomSocial Expired

Hi,

I forgot. I tested the change of the avatar. It works, but on top of the page I got this error message "JFTP Store". I saw you also changed the admin avatar. Did you get the same message.

Thanks, Walter

10 years 3 months ago
  • Dimas Tekad Santosa's Avatar
  • Dimas Tekad Santosa
  • Visitor
  • Thank you received: 0
Licenses:

Hi walter,

Ehm, I dont see "JFTP Store" , I am sure that is coming from the 3rd party extenstions.

thank you

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