• Home
  • Get help
  • Ask a question
Last post 2 hours 24 min ago
Posts last week 191
Average response time last week 1 hour 50 min
All time posts 68187
All time tickets 10530
All time avg. posts per day 20

Helpdesk is open from Monday through Friday CET

Please create an (free) account to post any question in the support area.
Please check the development versions area. Look at the changelog, maybe your specific problem has been resolved already!
All tickets are private and they cannot be viewed by anyone. We have made public only a few tickets that we found helpful, after removing private information from them.

#880 – Can not upload photos on group walls and discussions

Posted in ‘sh404SEF’
This is a public ticket. Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.
Wednesday, 19 August 2015 16:36 UTC
roadwarrior
Hi,
I've been having problems with this components for a while. My now I just noticed another problem.
I'm using Jomsocial on my site. When I enabled SH404SEF, use can not upload photos on the groups walls. And in discussions.

To duplicate this problem:
Log in to www.xxxx.com
username: xxxx pass code: xxxx
1) join a group
2) go to group wall and upload a photo.
3) You will see photo is not done loading after long wait.

Once SE404SEF disabled, it works fine.

I contacted Jomsocial developers and they said this:

"I disabled also sh404sef because when it's enabled I can't see group I created (URL is wrong).
I prepared a screen cast where you can see that I can upload photos in a group.

youtu.be/1drPVFVrG_M"
Thursday, 20 August 2015 06:54 UTC
wb_weeblr
Hi

This is a known issue in Jomsocial, which doesn't comply with Joomla 3 API (at least it was reported for videos, and we debugged Jomsocial to check it was indeed the same problem as before). It's the same issue you faced in ticket 480.
1 - Normally you should have enabled this workaround from ticket 480. Is it not enabled?

2 - Which version of sh404SEF and most importantly Jomsocial are you using? One of our user with the same problem (who applied the workaround and so was fine), told us that they just had a release fixing this problem?

Rgds
 
Thursday, 20 August 2015 11:56 UTC
roadwarrior
Thank you for the fast response.

1) I applied com_community like ticket 480, since the last time you mentioned it.

2 ) sh404SEF 4.6.0.2718
Jomsocial 4.0.9

Please check backend with login info.
I'm not sure what to do now because this is a big problem.

Sebastien
Thursday, 20 August 2015 14:36 UTC
wb_dimitris
Hi Sebastien,

We tracked the root of the problem in Jomsocial, using a relative URL for the image uploader.
To resolve this problem we will need to debug locally the pages that exhibit this problem.
So we want to ask you to create a backup (akeeba) of your site and upload it somewhere in the cloud (e.g. dropbox) so we can download it.

Regards
Friday, 21 August 2015 11:56 UTC
roadwarrior
Hello!
great news,
Thanks for the hard work.
Here's a link to the backup.

Password is xxxx for the backup installer.

https://www.dropbox.com/xxxx
Friday, 21 August 2015 16:29 UTC
wb_dimitris
Hi,

Just FYI, we got the backup and we are going to debug it. We will keep you posted.

Regards
Saturday, 22 August 2015 12:37 UTC
roadwarrior
Thank you
Sunday, 23 August 2015 06:15 UTC
roadwarrior
Also I seee when users add photos to their album, it doesn't show. but with disabled the component, everything works.
Try to add photos to your profile album and you will see it says 0"


Thanks,
Sebastien
Monday, 24 August 2015 19:30 UTC
wb_weeblr
Hi

After long efforts from DImitris and I, we manage to find the fix in Jomsocial. It was clear from the start that the problem was there, because we could see JS was not using correct URLs, but we felt we had to provide the fix so that the problem is clear for everyone.

Yes, before youask: the problem is in Jomsocial even if it "works" when sh404SEF is disabled. There are incorrectly using relative urls, which is forbidden when using SEF URLs. It only happens that the Joomla router doesn't fire a 404 immediately when it sees that and so the error doesn't become visible when only Joomla SEF is used.

In addition, this is not the first time this problem happens with Jomsocial, we had that also 3-4 years back, and they fixed it.

I can provide you with a fix as follow:
- opent the file /components/com_community/assets/release_32/js/bundle.js
- do a search to find the string:
var b="index.php?option=com_community&view=photos&task=ajaxPreview"

- replace it with:
var b=joms.BASE_URL + "index.php?option=com_community&view=photos&task=ajaxPreview"

- save the file
- clear your browser cache and try uploading an image.

I also have to say that there are other places where they have the same problem (using a relative URL), so you might be in for other surprises.

Tomorrow, we'll contact them and hopefully they can fix this problem in an upcoming release.

Rgds
 
Wednesday, 26 August 2015 10:28 UTC
roadwarrior
Thank you very much!! for the hard work.
That helped with group wall, but not albums and not user private photo albums.
Wednesday, 26 August 2015 10:39 UTC
roadwarrior
Here's an example of a user adding photos to her album. and it stuck all the time.
Wednesday, 26 August 2015 10:41 UTC
wb_weeblr
Hi

Yes, in debugging, we've found that this issue appears in multiple locations, so I'm not surprised it happens elsewhere.
We haven't contacted Jomsocial yet. Have you tried?

Rgds
 
Wednesday, 26 August 2015 13:53 UTC
roadwarrior
I opened a ticket with Jomsocial developers, Before I contacted Weeblr, and after you solved one of the issues and here's what they said:

"Please, disable sh404sef, clear browser cache and try to upload photo in album again.
This issue seems to be caused by sh404sef ."

I wish you could release a new version that works with jomsocial.
I need your component because it help simplify URL's
which in turns, the users like more. the profile, groups, events URLS
if I disabled your component all my back links and all Google indexes will be a mess.

I just hope you can fix this issue, as you know photos are crucial from social platforms.

Wednesday, 26 August 2015 13:55 UTC
wb_weeblr
Even if you quoted my reply above, explaining the bug and the solution?

Sorry about that, I will have to make contact with their manager, but what a pain.

Rgds
 
Wednesday, 26 August 2015 14:00 UTC
roadwarrior
Yes,
I've quoted you. Please check this photo file of the convo.
Wednesday, 26 August 2015 14:05 UTC
wb_weeblr
Hi

I wish you could release a new version that works with jomsocial.
In case you didn't notice, there is absolutely NOTHING we can do.

This is a simple bug in Jomsocial, which cals bad URLs when doing javascript calls.

The URL called is also wrong when using only Joomla SEF. It should also trigger a 404 with Joomla SEF, but unfortunately, Joomla router is not firing 404 when it should and let this go.
sh404SEF is an SEO-based extension and I will never let this go through. For your own good.

Again, this is not the first time it happens with Jomsocial, and once again they'll fix it, but in the mean time, it's us being considered the problematic guys.

[EDIT] Regarding your conversation with them, you didn't quote the most crucial part,the explanation:
Yes, before youask: the problem is in Jomsocial even if it "works" when sh404SEF is disabled. There are incorrectly using relative urls, which is forbidden when using SEF URLs. It only happens that the Joomla router doesn't fire a 404 immediately when it sees that and so the error doesn't become visible when only Joomla SEF is used.

Regardless, I don't think a support guy in a large company like Jomsocial will listen to that. I'll make contact with the company owner ASAP.

Rgds
 
Wednesday, 26 August 2015 14:06 UTC
wb_weeblr
Hi

Can you provide a link to that support thread please.

Rgds
 
Wednesday, 26 August 2015 14:14 UTC
wb_weeblr
Hi

I have emailed the owner, asking for a contact person in charge.

Rgds
 
Wednesday, 26 August 2015 14:56 UTC
roadwarrior
http://www.jomsocial.com/forum/photos-videos/28549-photos-are-taking-very-long-to-upload-into-mails-albums-activity-streams#140507

Thank you
Wednesday, 26 August 2015 14:58 UTC
wb_weeblr
Thanks.

I also contacted here on Facebook, should be quicker than through email.

Rgds
 
Wednesday, 26 August 2015 18:31 UTC
roadwarrior
Ok, I hope we can fix this bug soon.
Thursday, 27 August 2015 07:53 UTC
wb_weeblr
Hi

Got a reply from the owner this night, and she sent me to the project manager. I emailed him minutes ago:
Hi Sinisa,



I am Yannick, I develop sh404SEF. Merav asked that I contacted you regarding an issue we uncovered on one of our customers site, using Jomsocial 4.0.9.



The issue first appeared when a user tries to upload a photo to a group wall. The uploader would be stuck, the photo preview never showing and the photo never uploaded.



The issue would appear only when sh404SEF was enabled, and so the customer was thinking that it was caused by sh404SEF. Jomsocial support also very immediately said that it was sh404SEF fault.



After much digging in your javascript, the problem found is actually a very common one. You're using relative URLs to fetch content from the site.



For example, in the group wall photo uploaders, the javascript in bundle.js makes a request to:



index.php?option=com_community&view=photos&task=ajaxPreview&no_html=1&tmpl=component&groupid=20



instead of prefixing the URL with JURI::base().



The resulting URL fetched by the browser is therefore:



/sandbox/t880/Business/america/index.php?option=com_community&view=photos&task=ajaxPreview&no_html=1&tmpl=component&groupid=20



With Joomla router, which does not behaves properly according to SEO standard, this URL is ok and you can get your content. With a SEO oriented extension such as sh404SEF, of course we cannot accept this invalid URL and fire a 404.



After much more digging, we found the following fix:

- in /components/com_community/assets/release_32/js/bundle.js, replace:



var b="index.php?option=com_community&view=photos&task=ajaxPreview"



with



var b=joms.BASE_URL + "index.php?option=com_community&view=photos&task=ajaxPreview"



This fixes the problem for the group wall uploader, but the customer reported it happens in other locations, like a user uploading a photo to their wall.



Merav mentioned an issue you have already solved (https://github.com/jomsocial/JomSocial/issues/457) but I can't access it, so I won't know if it's already solved.



Please review your javascript to be sure only absolute URLs are used whenever you fetch some content from javascript.



I look forward to hearing from you quickly.



Rgds



Yannick Gaultier



@weeblr

https://weeblr.com





 
Thursday, 27 August 2015 08:23 UTC
wb_weeblr
Here is the reply:
[quote]Sinisa (JomSocial)

10:06 (Il y a 15 minutes)

À moi
Hello Yannick

This morning i found that report in our bug tracker. I can confirm the issue has been fixed internally and will be included in next release.

Regards,
_____
Siniša Krišan
JomSocial Project Manager
www.jomsocial.com
Phone (Serbia): xxxx
Phone (Indonesia): xxxx
Skype: xxxx
Twitter: xxxx

Rgds
 
Thursday, 27 August 2015 11:50 UTC
roadwarrior
Thank you for doing this.
But there's no path for this? Is there any ways they can provide a quick fix for that?

That means I have to wait 2+ months for New jomsocial. Which is not good for my community.
Thursday, 27 August 2015 12:51 UTC
wb_dimitris
Hi,

Just saw that Jomsocial 4.1 beta is available for download. This should include the fixes for the javascript files, since they said that it was fixed few days ago.

Regards
Saturday, 29 August 2015 17:05 UTC
roadwarrior
Hello thanks for working hard on this, The guys just sent a quick fix, but I don't want to put it on live site unless it's tested.
But can you try this on the dev version of the site that I gave you?


Hi, Sebastien.



Issue is caused by sh404sef... but you want to use it.

I agree that we need to cooperate with sh404sef developers. I already reported this to our devs.



So please, try this fix. Do safe copy of those files:



ROOT/components/com_community/assets/release/js/bundle.js

ROOT/components/com_community/assets/release_32/js/bundle.js

ROOT/components/com_community/assets/release_32/js/bundle.src.js

ROOT/components/com_community/assets/source/js/popups/photo.upload.js



Then upload content of package to main Joomla! folder on server.

Next clear your browser cache and try if issue persist.

Attachments:



Attachment JS409-fix-...load.zip (105KB)



Thanks,
Sebastien
https://www.dropbox.com/xxxx
Saturday, 29 August 2015 17:06 UTC
roadwarrior
Saturday, 29 August 2015 17:07 UTC
roadwarrior
Tuesday, 01 September 2015 10:12 UTC
wb_weeblr
Hi

I think it's pretty obvious that we are already so much far beyond what we should be doing in terms of support. We don't want to spend more time on stuff that's not sh404SEF related on your site.
Please just think that we had to spend more than 8 hours of debugging and research work just to prove something we knew from the first minute - that it was a bug in Jomsocial.

It's a shame they just don't take responsibility for that and it's even worse because they replied on their support thread with you that sh404SEF was the cause of the problem, while the bug was known and already fixed. So you wasted your time and we wasted our time.

Rgds


 
Wednesday, 16 September 2015 05:34 UTC
system
This ticket has been automatically closed. All tickets which have been inactive for a long time are automatically closed. If you believe that this ticket was closed in error, please contact us.
This ticket is closed, therefore read-only. You can no longer reply to it. If you need to provide more information, please open a new ticket and mention this ticket's number.