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.
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);
}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);
}
}
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.
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);$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);
}
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
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