Page 1 of 1

Possible bug with languagefilter plugin plus voting

Posted: Sun Jul 07, 2013 2:46 pm
by Richard67
I've discovered an issue which is very likely a bug, but I cannot report it on because registration does not work there.
On a multilanguage site with menu associations, the languagefilter does not create alternate language header links for articles view pages having the show votes option set to on.
The reason is that a parameter "hitcount=0" is added to the request URL if show votes is on, so the test if $current_link == $active_link in languagefilter.php fails, and no alternate language links are added to the header.
I wanted to report this on joomlacode, but when I register and then follow the activation link from the registration email, then I get a "user could not be reached" error on login.
Please can some developer check and inform the languagefilter specialists?
And maybe let the joomlacode guys know about my registration problem, or tell me an email address where I could write to?
Thanks in advance.

Re: Possible bug with languagefilter plugin plus voting

Posted: Sun Jul 07, 2013 2:58 pm
by Richard67
P.S.: It seems that is is a problem in general with url parameters added to the request, e.g. for paging on a page for an extension (e.g. phocaguestbook adds a "?start=5" to the url). The languagefilter does not add alternate language header links if the request url is not equal to the active menu url ($current_link and $active_link in languagefilter.php), so any parameter added to the request url makes it fail. Maybe the language filter should remove all parameters except maybe "id=" and "lang=" before doing the test?

Re: Possible bug with languagefilter plugin plus voting

Posted: Sun Jul 07, 2013 4:43 pm
by infograf768
1. Voting works here OK. ?hitcount =0 is added to the url and clicking on the flag nicely displays the associated menu item.

2/. I confirm that the rel=alternate links in the <head> do not display for a single article menu item, vote on or off though. Can you confirm this when vote is off?

Re: Possible bug with languagefilter plugin plus voting

Posted: Sun Jul 07, 2013 5:32 pm
by Richard67
Hi infograf768,

when voting is off then I have the rel=alternate links in the <head>.

See e.g. or any other below menu items music/stories, music/photos or music/recordings.

An example for other URL parameters which cause the missing header links is:, which is the 2nd page of my guestbook. When toggling the language, it results in the first page of the guestbook being shown in the new language, so the language switcher seems to ignore the start=5 parameter.

But the language filter plugin creates the header links for the other languages only if the first page of the guestbook is shown (no parameter), it does not create links for the second page (parameter).

From my point of view the links should work as well as the language switching does, means if there is some parameter like "?page=x" or "?start=y" or "?hitcount=z", it should be ignored.

Maybe any parameters should be ignored, but I am not sure if this would be working without SEF = on.

So maybe standard Joomla parameters like article IDs or the "lang" parameter should not be ignored?

I don't know, I am really not the Joomla coding guru.

But at least I would be interested in what the language filter developers think how the behavior should be.

Re: Possible bug with languagefilter plugin plus voting

Posted: Sat Jun 21, 2014 2:35 pm
by Richard67
meanwhile I have solved my issue.
After I have changed the "Item associations" parameter of the language filter plugin to "No", saved the plugin settings, then changed back to "Yes" and saved again, I have the alternate language header links on all my pages having menu item or content item associations. Disabling and enabling the plugin was not sufficient, I really had to change the setting and save it to the database to get it working.