[SOLVED] Category view and language switcher

More
9 years 11 months ago #60280 by marc.light
Sometimes it's a blank page but most of the time it's a 500 error, no more info.

Here's a link to an item in english:
icrml.ca/en/research-and-publications/ci...s-francophones-74802

It is associated with the following item in french:
icrml.ca/fr/recherches-et-publications/p...s-francophones-74802

Now when on the french item, if I click the language switcher it bring me to thi URL:
icrml.ca/en/recherches-et-publications/p...s-francophones-74802

It is different from the first english URL. It's not translating the full path. It's doing this for all items.

I don't know if something is not setup correctly on my end but before the upgrade, it was working perfectly.

Thanks again for your help.

Please Log in or Create an account to join the conversation.

More
9 years 11 months ago #60283 by ggppdk

ggppdk wrote: when you get blank page you should enable (set) PHP error reporting to maximum in Joomla Global configuration so that the error message gets printed


You have not answered or commented if you have done the above


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star review. Thanks!

Please Log in or Create an account to join the conversation.

More
9 years 11 months ago #60333 by marc.light
I was finally able to get access to the logs. Here is what I get:

[01-Mar-2016 19:26:29 UTC] PHP Fatal error: Class 'FlexicontentHelperRoute' not found in /home/icrml/public_html/components/com_flexicontent/classes/flexicontent.fields.php on line 3976

I hope this is what you need.

Thanks again.

Please Log in or Create an account to join the conversation.

More
9 years 11 months ago #60345 by ggppdk
Hello

at the top of the file exactly above:
class FlexicontentFields

add:
Code:
require_once (JPATH_SITE.DS.'components'.DS.'com_flexicontent'.DS.'helpers'.DS.'route.php');


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star review. Thanks!

Please Log in or Create an account to join the conversation.

More
9 years 11 months ago #60367 by marc.light
Hi,

Tried that. The URL for the switch is still not right, it's the same as I mentioned before. But with your change, at least I don't get a 500 error, I just don't get the right page. On top of things, I don't get any errors anymore, so I guess this does not help.

Thanks.

Please Log in or Create an account to join the conversation.

More
9 years 11 months ago #60371 by ggppdk
Hello

using your page
74802 switched to 74803

which seems to be correct, are they not associated ?


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star review. Thanks!

Please Log in or Create an account to join the conversation.

More
9 years 11 months ago #60373 by marc.light
Yes that is correct and they are associated but when you switch, only the item title is showing and the path in the URL is not right.

This item
icrml.ca/en/research-and-publications/ci...s-francophones-74802

and this one are associated
icrml.ca/fr/recherches-et-publications/p...s-francophones-74802

But if you switch from one or another the path does not change, it does not translate.

Thanks.

Please Log in or Create an account to join the conversation.

More
9 years 11 months ago #60378 by ggppdk
Hello

- the item is selected correctly
but URL is indeed strange, the selected menu items are wrong of wrong language ??

your menu items have language ? or are they language "ALL" ?


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star review. Thanks!

Please Log in or Create an account to join the conversation.

More
9 years 10 months ago #60417 by marc.light
All menu items , items have a language and are associated with the core function. Categories are set to all and are not translated. Could this be the problem?

This is really weird, if you take this page, it's a menu to a FLEXIContent item: icrml.ca/fr/contactez-nous and it switches perfectly.

Thanks again for your help. I'm really clueless on this one.

Please Log in or Create an account to join the conversation.

More
9 years 10 months ago #60422 by ggppdk
Hello

the last example you provided works because you have 2 menu items pointing directly to items (to item view)

i suspect that there may be a menu item with language "ALL" under a menu item with language english

e.g.
what is the language of menu item with menu alias:
research-and-publications

what is the language of menu item with menu alias:
cirlm-publications

- also have you disabled Joomla system messages BOX from the Joomla template:
is this inside your Joomla template
<jdoc:include type="message" />

you may send me a PM with access


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star review. Thanks!

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline
Save