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.

Images Break with Remote Storage

9 years 5 days ago
  • Ade's Avatar
    Topic Author
  • Ade
  • Offline
  • Fresh Boarder
  • Posts: 6
  • Thank you received: 1
Licenses:
JomSocial Expired

ISSUE SUMMARY:
Hi.
This is a long-standing issue needing fixing. It's virtually impossible to use remote storage because the cover images break and disappear when set (to remote storage with Amazon S3): exactly as the issue at www.jomsocial.com/forum/installation/743...te-storage-amazon-s3

How was this ongoing issue fixed?

Regards.

STEPS TO REPLICATE:
1
2
3
4
5
RESULT
EXPECTED RESULT
BROWSER

9 years 5 days ago
Licenses:

Hi Ade,

please edit [joomla site root]/components/com_community/libraries/user.php around line 1184, find this code

if(!$storage->exists($this->_cover)){
    unset($storages[$config->get('user_avatar_storage')]);
    $storages = array_pop($storages);

     $storage = CStorage::getStorage($storages);
}

after that code, put this new code
if (JFile::exists(JPATH_SITE.'/'.$this->_cover)) return JURI::base().$this->_cover;

Regards

8 years 8 months ago
  • Ade's Avatar
    Topic Author
  • Ade
  • Offline
  • Fresh Boarder
  • Posts: 6
  • Thank you received: 1
Licenses:
JomSocial Expired

Thanks Albertus.

Code worked, but, ultimately, I upgraded to version 4.

Best regards.

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