[Fixed r1353] err when Remove URL Language Code set to Yes

More
11 years 10 months ago #26070 by braern
Hi,

I have multilanguage site (native J2.5) with 2 languages (PL and EN as default). When I:
- set 'Search Engine Friendly URLs' in SEO settings to Yes
- set 'Use URL rewriting' in SEO settings to Yes
- set option 'Remove URL Language Code' to Yes in plugin 'System - Language Filter'
then in front-end for default language can be seen:
Code:
Notice: Undefined property: stdClass:: in (..)\components\com_flexicontent\classes\flexicontent.helper.php on line 2010 Notice: Trying to get property of non-object in (..)\components\com_flexicontent\classes\flexicontent.helper.php on line 2010

With 'Remove URL Language Code' set to No - all is ok, but have site address with default language code (e.g.: example.com/en/about instead of example.com/about)...

It is possible to fix this?

PS. flexicontent.helper.php on line 2010
Code:
$language_tag = $languages->$user_lang->code;
PS2. Tested on Joomla 2.5.4 and 2.5.5 with FC 1338

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

More
11 years 10 months ago #26093 by ggppdk
Currently you should not disable adding language code to the URL

I have opened an issue to examine changes needed to FC source code, in order to work with no language code in the url

code.google.com/p/flexicontent/i ... ail?id=465


-- 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...

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

More
11 years 10 months ago #26121 by braern

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

More
11 years 10 months ago #26237 by ggppdk
Implemented in r1353


-- 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...

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

More
11 years 9 months ago #26809 by iamrobert
I get the following error:
Code:
Notice: Undefined index: HTTP_REFERER in /home/wineconn/public_html/components/com_flexicontent/models/items.php on line 66

On:
www.wineconnectionasia.com/

However when I click on the language switcher it disappears.

1. Flexicontent 1.5.6 RC6 (r1368)
2. Joomla! 1.5.6 RC6 (r1368)
3. Joom!Fish Version V2.1.7

Is this related?

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

More
11 years 9 months ago #26813 by ggppdk
I guess you have typed the url directly or have selected it from address bar or via bookmark, right?

I ll fix this
If you want to suppress this notice now
change offending line:
$referer = $_SERVER;
to
$referer = @$_SERVER;


this notice is harmless, i have committed a fix to suppress this notice

Thanks for reporting


-- 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...

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

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.291 seconds
Save
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