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 are broken until they are transferred to S3

11 years 6 months ago
Licenses:
JomSocial Expired

ISSUE SUMMARY:

I have enabled S3 storage. At the moment, the cron job is running once a day (we are still in development mode), but we plan to run it every 1 hour.

When a user changes avater or cover, the image shows broken , until the cron job runs.

I understand that we have to wait for the cron job to run, but even if we setup the cron job to run every 5 minutes, in the time between those 5 minutes, the images will still be broken.

Is this a bug or is this how it works?

If this is how it works, I believe it needs a change , because images should be still shown until cron runs succesfully. What would happen if cron would fail for some reason. Images should still be able to show.

Thanks in advance and I look forward to hearing from you.

Regards

Haris

11 years 6 months ago
Licenses:

Hi Haris,

here the fix:
/components/com_community/libraries/user.php around lines 1185 you can see 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 code
if (JFile::exists(JPATH_SITE.'/'.$this->_cover)) return JURI::base().$this->_cover;

Regards

11 years 6 months ago
Licenses:
JomSocial Expired

Hello and thank you for the quick reply.

Does this fix affect all file types or just avatars,covers?

Is this hack going to be available in next update, or do we have to implement after every new update.

Thanks

11 years 6 months ago
Licenses:

Hi Haris,

the reported issues from customers so far only at profile cover. this is only for temporary fix. our developer still re-buid the code for S3 compatibility. not sure it will done at next release.

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