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.

Event cover image reverts back to default with Amazon S3

10 years 11 months ago
  • Alex's Avatar
    Topic Author
  • Alex
  • Offline
  • Fresh Boarder
  • Posts: 30
  • Thank you received: 2
Licenses:
JomSocial Active

After uploading a cover image for an event, the image is fine until the cron job to move it to Amazon S3. Once the cron job runs, the image reverts back to a partial display of the default image.

I'm running Joomla 2.5.20 and Jomsocial 3.2.0.5.

10 years 11 months ago
Licenses:

Hi, Alex.

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
10 years 11 months ago
Licenses:

Hi Alex,

after investigating it. I confirmed this is a valid bug. please wait our fixes.

Regards,
Albert

10 years 11 months ago
  • Alex's Avatar
    Topic Author
  • Alex
  • Offline
  • Fresh Boarder
  • Posts: 30
  • Thank you received: 2
Licenses:
JomSocial Active

OK, thank you. Can you give me an estimate of when it may be corrected?

10 years 11 months ago
Licenses:

Hi Alex,

I hope next week can be fixed. But this issue still in the queue.

please mark this as pending support again after your read this message

Regards,
Albert

The following user(s) said Thank You: creic
10 years 9 months ago
Licenses:

Hi Alex,

sorry for waiting about this issue. here the fixes:
1. edit components/com_community/helpers/url.php
2. at line 163 will have this:

/* Default cover */        
 if (empty($file) || !JFile::exists(JPATH_ROOT . '/' . $file)) {
changing it to
$storage = CStorage::getStorage($config->get('photostorage'));

/* Default cover */
if (empty($file) || !$storage->exists($file)) {

3. at line 171 will have this:
$file = str_ireplace($config->get('imagecdnpath'), '', $file);

// CDN or local
$baseUrl = $config->get('imagebaseurl') or
    $baseUrl = JURI::root();
$uri = str_replace('\\', '/', rtrim($baseUrl, '/') . '/' . ltrim($file, '/'));
return $uri;
changing it to
if($config->get('photostorage') == 'file'){
    $file = str_ireplace($config->get('imagecdnpath'), '', $file);
    // CDN or local
    $baseUrl = $config->get('imagebaseurl') or
            $baseUrl = JURI::root();
    $uri = str_replace('\\', '/', rtrim($baseUrl, '/') . '/' . ltrim($file, '/'));
    return $uri;
} else {
    return $storage->getURI($file);
}

Regards,
Albert

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