By Tima on Tuesday, 25 April 2017
Posted in General
Likes 0
Views 314
Votes 0
Hello! When i use plugin "System - Language Filter", "URL Shortener" does not work..
I try to go to profile page, but i have redirected to dashboard..
Hi Tima,

Seems like you're using older version of URL shortener plugin, would you mind to update to the latest version and see how it goes?
URL shortener app: https://stackideas.com/apps/item/3338-url-shortener
·
Tuesday, 25 April 2017 10:59
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello! After update i have the same problem!
·
Wednesday, 26 April 2017 04:58
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Tima,

I've inspected that the System - Logged in Homepage plugin was caused the redirect to domain/en/feed this is also happened as I try to access your homepage domain.com it always redirected to the link domain/en/feed. As I enable the url shortener plugin and disable the System - Logged in Homepage plugin, it was working fine.
https://www.screencast.com/t/Byq8zqxyBX
·
Wednesday, 26 April 2017 14:01
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello!
Completely disagree with you!
1)
System - Logged in Homepage plugin was caused the redirect to domain/en/feed
- This is the normal behavior of the plugin, since for authorized users the main page is the Easysocial dashboard. And "/en" its normal too, because i use System - Language Filter for it!

2)
As I enable the url shortener plugin and disable the System - Logged in Homepage plugin, it was working fine
-
i am not sure about this.. As i do this, i have profile page with template for my main page, and it looks crazy (look on my screenshot).

3) it was working fine if i disable language filter plugin.. But i need multilanguage site!
·
Wednesday, 26 April 2017 19:32
·
0 Likes
·
0 Votes
·
0 Comments
·
After troubleshoot this long hour ago, it seems like for some reason this 3rd party plugin always return this itemid 567 which is your default homepage when access user profile page based on this 3rd party plugin checking.

We can apply some extra checking from the plugin file, if the page is user profile, it will not keep redirect back to your Easysocial user dashboard page.

But it will show the layout like what you attached that screenshot in your previous reply and the language filter plugin will still enabled it.
·
Friday, 28 April 2017 02:19
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Arlex!
On my main site I use the same plugin, and everything works as it should .. look here - http://dance-space.ru (accesses the same)
If this plug-in interferes with the detection of the problem, you can remove it.
But I think that everything is fine with him, because everything works on the main site!
It also works well if I disable the short link plug-in. but i need him too!
·
Friday, 28 April 2017 04:29
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Tima,

Regarding your issue, I've further investigate the issue and what I noticed is that, one of the plugin from your site actually altered the current active menu item. I still cannot figure out which plugin but I do suspect is the T3 system plugin but your entire site required this T3 system plugin or else your template will not work.

I've added a hack on your EasySocial urlshortener plugin so that this plugin will 'force' inject the correct menu item id used by EasySocial profile page. Below is the file I've modified:

JOOMLA/plugins/system/easysocialurl/easysocialurl.php and added below block of code at line start from 258 to 283:


public function onAfterDispatch()
{
if ($this->isActive()) {

$itemId = $this->getItemId();

$menu = $this->app->getMenu();
$menu->setActive($itemId);
}
}


public function isActive($value = null)
{
static $_isactive = null;

if (! is_null($value)) {
$_isactive = $value;
}

if (is_null($_isactive)) {
return false;
}

return $_isactive;
}


Now when enable the shortener url plugin, I am able to go to user profile page.

Hope this help and have a nice day.
Sam
·
Friday, 28 April 2017 16:54
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello!
Thank you all for your efforts!
Now I can go to the user's page.
But for some reason she uses the wrong template and does not look like she should
·
Friday, 28 April 2017 19:57
·
0 Likes
·
0 Votes
·
0 Comments
·
Look... I did some tests...
Returning your changes back to the time.
1) If you disable short links and enable language filter, then the user's page works as it should.
2) If you disable the language filter and enable short links, then the user page also works as it should.
·
Friday, 28 April 2017 20:20
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Tima,


Returning your changes back to the time.
1) If you disable short links and enable language filter, then the user's page works as it should.
2) If you disable the language filter and enable short links, then the user page also works as it should.


This morning I ftp to your site again and I read the code from languagefilter plugin again and I dont see any suspicious code that altering the itemid. To be frank with you, I tested on my local Joomla instance (3.6.5) and I cannot replicate this issue even both languagefilter plugin and url shorterner plugin are enabled.

Also, the only system plugin that I am not able to disable from your site is the T3 system plugin. Can you temporary disable your Joomla template JA_Social_II from your site and this T3 system plugin so that your site is running on Joomla default template and see if you still encounter this issue?

Or you can setup a test site so that we can do our testing there.
Please advise.
Sam
·
Tuesday, 02 May 2017 15:39
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Sam!
I created a test site for you - http://test-ds.brandup.pro
(accesses the same)
·
Tuesday, 02 May 2017 19:12
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Tima,

Thanks for setting up a test site for us. We will run more test on your test site and we will get back to you once we figure out what causing the issue with url shortener plugin.
Sam
·
Wednesday, 03 May 2017 10:40
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Tima,

Regarding your issue, I've figure out the issue and look like its an issue within the url shortener plugin. I've fixed the issue internally and I've also applied the fix on your live site. Now in your live site the url shortener plugin was enabled and the user profile page is how using the correct menu item. Please see http://take.ms/zw8RG

The same fix will be added into next release of this url shortener plugin.

Hope this help and have a nice day
Sam
·
Wednesday, 03 May 2017 20:04
·
0 Likes
·
0 Votes
·
0 Comments
·
Thank you so much for your hard work !!
·
Friday, 05 May 2017 03:14
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Tima,

You are most welcome. I will close this post for now

Have a nice day
Sam
·
Friday, 05 May 2017 10:32
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post