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.

some of the avatars isnt showing at the backend

12 years 1 month ago
  • Amit's Avatar
    Topic Author
  • Amit
  • Offline
  • Junior Boarder
  • Posts: 130
  • Thank you received: 2
Licenses:
JomSocial Active

hi,

at the front end most of the avatars show up, but at the backend some of the avatars are broken image.
you can see that at the members area and my avatar isnt showing too

BR
Amit

12 years 1 month ago
Licenses:

HI, Amit.

It happens for those avatars that aren't pulled to S3 host (yet).
Then wrong url is generated fro them so browser looks "images" folder in "administrator" folder...

I assign developer to this thread.


- Instead of saying: 'it's not working', explain the problem in detail.
- Screenshots with the URL visible in them and the problem marked are more than welcome.
- Tell us how to replicate the problem, we can't fix it if we can't find it.
- Make sure that your site/server meets JomSocial System Requirements
- Make sure to setup JomSocial Cron Job
- Always provide us with access details to the backend and ftp. We need it to debug problems.
- If you have a similar problem, but a solution you found isn't working, open a new thread instead of 'merging' with an existing one.

- Use the "Thank You" feature on any post that helped you
The following user(s) said Thank You: Amit
12 years 1 month ago
Licenses:

Hi Amit,

please edit /components/com_community/libraries/user.php

at line 685 you can find this:

if ($this->_storage != 'file' && !empty($this->_thumb) && JString::stristr($this->_thumb, 'images/watermarks') === false) {
    $storage = CStorage::getStorage($this->_storage);
  
    return $storage->getURI($this->_thumb);
}
changing it to:
if ($this->_storage != 'file' && !empty($this->_thumb) && JString::stristr($this->_thumb, 'images/watermarks') === false) {
    $storage = CStorage::getStorage($this->_storage);
    
    $app = JFactory::getApplication();
    if ($app->isAdmin()  && !file_exists($storage->getURI($this->_thumb))) {
        return '../'.$storage->getURI($this->_thumb);
    } else {
        return $storage->getURI($this->_thumb);
    }
}

Let me know the result. If still not resolved. please provide me FTP access detail by editing your first post at this topic. and put it at site info form.

Regards,
Albert

The following user(s) said Thank You: Amit
12 years 1 month ago
  • Amit's Avatar
    Topic Author
  • Amit
  • Offline
  • Junior Boarder
  • Posts: 130
  • Thank you received: 2
Licenses:
JomSocial Active

hi,

now i can see my avatar at the admin area (before the fix it was broken) but now most of the members avatar are broken at the admin area. and at the front end just the basic avatar (jomsocial avatar) is broken.

12 years 1 month ago
  • Amit's Avatar
    Topic Author
  • Amit
  • Offline
  • Junior Boarder
  • Posts: 130
  • Thank you received: 2
Licenses:
JomSocial Active

i added ftp

12 years 1 month ago
Licenses:

Hi Amit,

please check it. I already put the fixes for you /components/com_community/libraries/user.php line 687:
replace

return $storage->getURI($this->_thumb);
with
$app = JFactory::getApplication();
if ($app->isAdmin()  && !preg_match("/s3.amazonaws/", $storage->getURI($this->_thumb))) {
    return '../'.$storage->getURI($this->_thumb);
} else {
    return $storage->getURI($this->_thumb);
}

Regards,
Albert

The following user(s) said Thank You: Amit
12 years 1 month ago
  • Amit's Avatar
    Topic Author
  • Amit
  • Offline
  • Junior Boarder
  • Posts: 130
  • Thank you received: 2
Licenses:
JomSocial Active

Hi,
now i can see most of the avatars at the member admin area.
but at the fronted at the community friends module, here is a broken avatars.
please, sign in to my site and scroll down and you will see at the left the module with the broken avatars.

BR
Amit

12 years 1 month ago
Licenses:

Hi Amit,

seem override problem. I put default avatar for male and female at override location:
/templates/jm-hot-news/html/com_community/images

Regards,
Albert

The following user(s) said Thank You: Amit
12 years 1 month ago
  • Amit's Avatar
    Topic Author
  • Amit
  • Offline
  • Junior Boarder
  • Posts: 130
  • Thank you received: 2
Licenses:
JomSocial Active

hi,
now its ok, do i need to do something at upgrade or so?
thanks
Amit

The following user(s) said Thank You: Albertus
12 years 1 month ago
Licenses:

Hi Amit,

just in case you need backup /components/com_community/libraries/user.php but I think the fixes will be included at version 3.2.1.5
for the override things no need, because will not disappear at upgrade process.

Regards,
Albert

12 years 1 week ago
  • Amit's Avatar
    Topic Author
  • Amit
  • Offline
  • Junior Boarder
  • Posts: 130
  • Thank you received: 2
Licenses:
JomSocial Active

Hi Albertus,

i just upgrade to 3.2.1.5 and all the fixes that you did went away, i suppose that the developers didnt add them to the new version .

please, check.

BR
Amit

12 years 1 week ago
Licenses:

Hi Amit,

I can't find your FTP detail at this topic. please edit you first post at this topic. and put it under site info form.
sorry for this inconvenience.

Regards,
Albert

The following user(s) said Thank You: Amit
12 years 1 week ago
  • Amit's Avatar
    Topic Author
  • Amit
  • Offline
  • Junior Boarder
  • Posts: 130
  • Thank you received: 2
Licenses:
JomSocial Active

hi,
i add the ftp details.
Thanks A lot
Amit

12 years 1 week ago
  • Amit's Avatar
    Topic Author
  • Amit
  • Offline
  • Junior Boarder
  • Posts: 130
  • Thank you received: 2
Licenses:
JomSocial Active

Hi,
did you forgot me? :)

BR
Amit

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