By Altitudes on Monday, 04 May 2015
Posted in Technical Issues
Replies 10
Likes 0
Views 607
Votes 0
Hello

I'm having some trouble with the SEF URLs created by sh404SEF.

For the following SEF URL:
communaute/albums/user

I have the following non-SEF URLs (duplicates):
index.php?option=com_easysocial&Itemid=463&lang=en&type=user&uid=88&view=albums
index.php?option=com_easysocial&Itemid=463&lang=en&type=user&uid=203&view=albums
index.php?option=com_easysocial&Itemid=463&id=%3A&lang=en&layout=item&type=user&uid=88&view=albums
index.php?option=com_easysocial&Itemid=463&id=%3A&lang=en&layout=form&type=user&uid=88&view=albums

For the last two non-SEF URLs, it looks similar to the permalink issue solved in the post (see last message):
http://stackideas.com/forums/guests-invited-to-a-group-event-don-t-receive-any-notification

For the other ones I let you investigate...

Thank you
Hello Altitudes,

I am sorry for the delay of this reply.

I've applied the fix inside your /components/com_easysocial/sef_ext/albums.php and everything should work correctly now after sh404sef is turned on. Can you give a try?
·
Thursday, 07 May 2015 11:48
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Altitudes,

For the following two url, index.php?option=com_easysocial&Itemid=463&lang=en&type=user&uid=88&view=albums
index.php?option=com_easysocial&Itemid=463&lang=en&type=user&uid=203&view=albums

the duplicate occur because all the users has the same sef url when viewing their own albums (communaute/albums/user). As you can see the uid which is user id is different for both url but the sef is remain the same to ease the user to view their own album.

For the last two non-SEF URLs, I'm not quite sure if I understand about the similarity with the permalink issue from this post,

http://stackideas.com/forums/guests-invited-to-a-group-event-don-t-receive-any-notification .

Can you elaborate more on this?

Best regards
Chris
·
Tuesday, 05 May 2015 15:16
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello

For the 2 first URLs, what you are saying is not correct. Try for yourself connecting to my dev2 site with the user stacksupport and go to the Photos' page. What you will see is another user's page (with uid 88).
Here is why: when the same SEF URL correspond to different non-SEF URLs (sh404SEF call them "duplicates"), one of these is defined as the favorite URL. This is the one with the yellow star in the attached sh404SEFDuplicates.PNG.
The correct SEF URLs should look like communaute/albums/user/88-nathanael for user with id 88 for example.

For the 2 other URLs, well, I must say I'm not sure now what is the problem. I suggest that we fix the above issue first and then we will see.

Regards
·
Tuesday, 05 May 2015 17:05
·
0 Likes
·
0 Votes
·
0 Comments
·
Sorry there was an issue with the attachment, here it is again.
·
Tuesday, 05 May 2015 17:07
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Altitudes,

Can I have the permission to purge the sh404sef url and see if the problem still persist? Please advise.
·
Wednesday, 06 May 2015 13:30
·
0 Likes
·
0 Votes
·
0 Comments
·
Purge the communaute/albums/user URL ? Yes, sure.

Don't forget to delete sh404SEF cache files in components/com_sh404sef/cache/ too...
·
Wednesday, 06 May 2015 13:57
·
0 Likes
·
0 Votes
·
0 Comments
·
Very good, it's working fine

Thank you!
·
Thursday, 07 May 2015 16:55
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Altitudes,

You are most welcome. Glad that your issue has been resolved now. The fix will be included in the next release of easysocial.
·
Thursday, 07 May 2015 19:36
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello

May I get the /components/com_easysocial/sef_ext/albums.php file from your repository (ES 1.3 branch)? I think this fix was committed after ES 1.3.28 (which is the latest ES available version)...

Thank you
·
Thursday, 09 July 2015 18:23
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Altitudes,

Sure, here it is.
·
Friday, 10 July 2015 12:13
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post