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.

URGENT! Avatar is missing because of Cloudfront

9 years 6 months ago
  • Dennis's Avatar
    Topic Author
  • Dennis
  • Offline
  • Fresh Boarder
  • Posts: 96
  • Thank you received: 2
Licenses:
JomSocial Expired

Hi,

i use jreviews and cloudfront. in jr listings the jomsocial avatar is missing.
here is was the dev from jr wrote:

Hi

Again the file is missing gesundenjomsocial.s3.amazonaws.com/image...0c86a44f9436ff23.jpg

If you remember, I asked you before to find out from JomSocial how the cloudfront URL that is used in the profile page is generated. Where are the CloudFront settings in JomSocial? This is the URL that is used int he JomSocial profile page:

d14dzjy359h1w2.cloudfront.net/images/ava...0c86a44f9436ff23.jpg

It's the same path, but the bucket URL doesn't work which is weird. Without knowing how JomSocial generates the CloudFront URL it will not be possible to change the code to fix this and you will continue having the same issue if the bucket URL doesn't work. Once you reach JomSocial support and you have the answer feel free to get back in touch with us.

9 years 6 months ago
Licenses:

Hi, Dennis.

It's all in: ROOT/components/com_community/libraries/storage/s3.php

public function getURI($storageId) {
        $item = JTable::getInstance('StorageS3', 'CTable');
        $item->load($storageId);

        if (isset($item->resource_path)) {
            $uri = JFactory::getURI();
            /* Get S3 URL format */
            $s3Url = CFactory::getConfig()->get('storages3bucket_url', 's3.amazonaws.com/<bucket>');
            /* Replace <bucket> by real bucketname */
            $s3Url = str_replace('<bucket>', $this->bucket, $s3Url);
            /* General final path */
            if ($uri->isSSL()) {
                return 'https://' . $s3Url . '/' . $item->resource_path;
            } else {
                return 'http://' . $s3Url . '/' . $item->resource_path;
            }

But JomSocial supports only S3 external storage.


- 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
9 years 6 months ago
  • Dennis's Avatar
    Topic Author
  • Dennis
  • Offline
  • Fresh Boarder
  • Posts: 96
  • Thank you received: 2
Licenses:
JomSocial Expired

Hi,

the dev of jreviews disabled cloudfront and said, that this is jomsocial related that some pics are missing.
if i login as admin, you can see on my stream that there are only some pics missing.
i had a related issue with jomsocial and cloudfront before too.
please fix this.

Attachments:
9 years 6 months ago
Licenses:

Hi, Dennis.

I can see that those images that are missing on your printscreen are visible on site now: prntscr.com/4nm69c

I'm not sure if you configured S3 properly.. I'll have to have access to your S3 service.
Now no image is transferred to S3.


- 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
9 years 6 months ago
  • Dennis's Avatar
    Topic Author
  • Dennis
  • Offline
  • Fresh Boarder
  • Posts: 96
  • Thank you received: 2
Licenses:
JomSocial Expired

Hi,

its better to login with another account, i post it in first post.
the s3 settings were made by your staff, so it should be ok.
but as also the jreviews dev said, it seems to be an issue with jomsocial.
i never had any issues like this with jr, only with js.

9 years 6 months ago
Licenses:

HI, Dennis.

Indeed S3 settings are fine.

It seems that this is jReviews issue... even if they claim it's not.

This is how URL to resource is generated in jReviews:
gesundenjomsocial.s3.amazonaws.com/image...0c86a44f9436ff23.jpg
Result: prntscr.com/4nmxp0

And this is how URL to resource looks in JomSocial:
s3-eu-west-1.amazonaws.com/gesundenjomso...399c680073c60cc7.jpg
Result: prntscr.com/4nmxvu

Your remote storage is under:
s3-eu-west-1.amazonaws.com/gesundenjomsocial/ you can see it here: prntscr.com/4nmy6p

Not:

gesundenjomsocial.s3.amazonaws.com

So if it is a JomSocial issue then URLs in JomSocial will be also wrong... but they are correct. Also this issue persist only on jReviews related pages, not JomSocial ones.


- 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
9 years 6 months ago
  • Dennis's Avatar
    Topic Author
  • Dennis
  • Offline
  • Fresh Boarder
  • Posts: 96
  • Thank you received: 2
Licenses:
JomSocial Expired

Here is what i got as response:

Hi Dennis

Of course I already knew that and it doesn't make any difference, that's just a different way to access the same bucket. Why is the avatar thumbnail not displaying on this page if JomSocial is working perfectly well?

www.xx.org/gemeinschaft/982-administrator/profile

It got lost somehow which is why I asked that you re-upload it which I believe you didn't do. And also, why is it that if JReviews is generating the wrong URLs, you can clearly see that this one works:

xx.s3.amazonaws.com/images/avatar/thumb_...7b43205985939873.png

Which is shown here

www.xx.org/inserate-verzeichnis/therapeu...s-dr-dr-hans-mueller

And the JomSocial version also works:

s3-eu-west-1.amazonaws.com/gesundenjomso...7b43205985939873.png

You can see it's the same bucket, the same image path and it works fine.

I have spent a lot of time checking this and it is not a problem with JReviews and i have proved it by showing you these URLs retrieve the same image:

gesundenjomsocial.s3.amazonaws.com/image...7b43205985939873.png
s3-eu-west-1.amazonaws.com/gesundenjomso...7b43205985939873.png

Now please re-upload the avatar and leave the CDN plugin disable to see what happens.

9 years 6 months ago
  • Dennis's Avatar
    Topic Author
  • Dennis
  • Offline
  • Fresh Boarder
  • Posts: 96
  • Thank you received: 2
Licenses:
JomSocial Expired

it seems to be solved. maybe a cdn problem... thanks

9 years 6 months ago
  • Dennis's Avatar
    Topic Author
  • Dennis
  • Offline
  • Fresh Boarder
  • Posts: 96
  • Thank you received: 2
Licenses:
JomSocial Expired

Hi,

i switched yesterday to cloudflare (before cloudfront) to avoid the avatar issue.
But here is exact the same!
Even if i upload a new avatar pic, only a placeholder is shown.
Please login with administrator login to check.

9 years 6 months ago
Licenses:

Hi, Dennis.

After I posted my last reply no one touched your site. So if issue was resolved then something was changes in your system without any action from our side.

Now I'm completely lost as JomSocial seems working fine...

So please, describe your issue again with details, provide steps to replicate, add printscreens.
Please, notice that we only support JomSocial so if you have issues with 3rd party extensions - report it to respective developers.


- 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
9 years 6 months ago
  • Dennis's Avatar
    Topic Author
  • Dennis
  • Offline
  • Fresh Boarder
  • Posts: 96
  • Thank you received: 2
Licenses:
JomSocial Expired

Michal,

my post was 4 days ago!!
In the meantime i disabled cdn because its not working with jomsocial.
The dev from jreviews said the same cause he investigated it in detail.

I hope, i get faster support next time...
It makes me really think to change to easysocial...

9 years 6 months ago
Licenses:

Hi, Dennis.

I apologize for delay but I had day off for weekend support, after that weekend came.

Also your posts confuses me. You reported that S3 urls are broken... then it's fixed and then broken again.
So issue persist or no? Was it a CDN issue or not?


- 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
9 years 6 months ago
  • Dennis's Avatar
    Topic Author
  • Dennis
  • Offline
  • Fresh Boarder
  • Posts: 96
  • Thank you received: 2
Licenses:
JomSocial Expired

Hello Michal,

my installation is connected with s3 for jomsocial and jreviews. In addition i enabled cloudfront and also cloudflare.
Both with the same problems. The avatar is missing so that jreviews was also not able to fetch it.
Now i disabled cdn and all works. I and also the dev from jreviews came to the conclusion that this is an issue with jomsocial and cdn.
Because i want to use cdn to get better performance i please you to get a solution on this time and nerve consuming issue.
I remember also the issues with s3 a few updates before and now again with cdn...

9 years 6 months ago
Licenses:

Hi, Dennis.

So it works now...
As for now JomSocial is integrated with S3 and will not work properly with CDN or Cloudfront.

You may request a feature to integrate JomSocial with other remote storage: uservoice.jomsocial.com/forums/101561-feature-request


- 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
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