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.

Upgraded to 3.1.1 - It broke Remote Storage (Amazon S3)

10 years 3 weeks ago
  • Scott's Avatar
    Topic Author
  • Scott
  • Offline
  • Fresh Boarder
  • Posts: 38
  • Thank you received: 0
Licenses:
JomSocial Active

Hello,

I upgraded Jomsocial to the latest 3.1.1 version (It was running 3.0.1.4). All other site components have not changed and are running latest versions.

Joomla! 2.5.19

There was no config changes - it was intended to be a simple upgrade but as soon as the upgrade was done, I checked the community page and most all groups and members profile images no longer work. (It was working just before as I checked).

Some newer avatars are working but they are being pulled locally and not from Amazon. I did confirm all images still seem to be on Amazon - I thought the update may have wiped them by they are there,

Not sure what to do since all the settings are the same and should be working.

Site information included.

10 years 3 weeks ago
Licenses:

- 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 3 weeks ago
  • Scott's Avatar
    Topic Author
  • Scott
  • Offline
  • Fresh Boarder
  • Posts: 38
  • Thank you received: 0
Licenses:
JomSocial Active

Hi Michal,

I follow instruction and applied the fix:

OK, here is the quick fix, open this file components/com_community/libraries/storage/s3.php , find this code :
s3.amazonaws.com/' . $this->bucket . '/' . $item->resource_path;

replace to :
' . $this->bucket . '/s3.amazonaws.com/' . $item->resource_path;

(I got the correct path from the last link which he corrected himself)

The cover images seem to have fixed but thumbnails are still broken for profile images. The one still broken, the path are still pointing locally instead of their appropriate S3 locations.

10 years 3 weeks ago
Licenses:

Hi, Scott.

Ok, try to do something like this: in Configuration > Remote Storage change for Avatars from Amazon S3 to Local... check if avatars return... than again change to Amazon S3.

For some reason I can't reach your backend... even if I use password you provided (in Miscellaneous)...


- 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 3 weeks ago
  • Scott's Avatar
    Topic Author
  • Scott
  • Offline
  • Fresh Boarder
  • Posts: 38
  • Thank you received: 0
Licenses:
JomSocial Active

Hello,

I tried the suggestion. I switched to local storage - ran Cron. Then switched back to S3 storage and ran cron.

This message came up so I was hopeful:
<message>5 avatar file(s) transferred.</message>

But when I looked at the community page, now the recent avatars that were working (although hosted locally) are no longer working. It seems the upload to S3 works but the Jomsocial links for the thumbnails keep pointing to the local file which obviously no longer exist.

I re-tested the login info I provided and it works for me - what problem are you having getting to the backend?

10 years 3 weeks ago
Licenses:

Hi, Scott.

It seams that cron transfer files to S3 storage but links for images are not updated... I checked also for photos in albums... image is missing too.

This issue is fixed in JS 3.2 (but not upgrade to that version on your production site!) but 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 2 weeks ago
  • Dimas Tekad Santosa's Avatar
  • Dimas Tekad Santosa
  • Visitor
  • Thank you received: 0
Licenses:

Hi,

please check again, I just fix this.. your modification code here www.jomsocial.com/forum/installation/152...rage-amazon-s3#76778 was not correct, so I fix it to be like this :

if ($uri->isSSL()) {
                return 'https://'. $this->bucket . '.s3.amazonaws.com/' . $item->resource_path;
            } else {
                return 'http://'.$this->bucket . '.s3.amazonaws.com/' . $item->resource_path;
            }

10 years 2 weeks ago
  • Scott's Avatar
    Topic Author
  • Scott
  • Offline
  • Fresh Boarder
  • Posts: 38
  • Thank you received: 0
Licenses:
JomSocial Active

Thank 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