"Languages not set" in multilang

Help with getting the CMS CORE package up and running. This does not include 3rd party modules, PHP scripts, anything downloaded via module manager or from any external source.
OlafNoehring
Forum Members
Forum Members
Posts: 78
Joined: Mon Oct 23, 2006 4:43 pm

"Languages not set" in multilang

Post by OlafNoehring »

Hi

I can install thge MLE (multilang) mod - but when I open the only installed page (home) afterwards it reads in the upper right corner:
Languages not set!

I can not find where I need to define languages.
I have tried to reinstall - same problem.
I can create a new page - but can not set any language here either.

Olaf
moorezilla

Re: "Languages not set" in multilang

Post by moorezilla »

Did you check the "install multi-lang support" checkbox (or words to that effect) when you installed? When you do, it should proceed to a screen where you can select languages to include.
OlafNoehring
Forum Members
Forum Members
Posts: 78
Joined: Mon Oct 23, 2006 4:43 pm

Re: "Languages not set" in multilang

Post by OlafNoehring »

Hi

yes, I did - I have selected english (of course - can not deseletc) french, german, italian and spanish.

The flag-images have been created in /admin/images/lang and /images/lang

The file in cmsroot "config_lang" contains only

$config['root_path'] = "/srv/www/htdocs/XXXX";

- the correct root to cmsms

Olaf
katon

Re: "Languages not set" in multilang

Post by katon »

sounds like the installer failed to create the config_lang.php file.
OlafNoehring
Forum Members
Forum Members
Posts: 78
Joined: Mon Oct 23, 2006 4:43 pm

Re: "Languages not set" in multilang

Post by OlafNoehring »

Hi

well, what is sopposed to be in the file config_lang ?
I will be glad to edit the file by hand.


Olaf
katon

Re: "Languages not set" in multilang

Post by katon »

Please find attached a sample config_lang.php file.

Update: The attached file replaced!!!

[gelöscht durch Administrator]
Last edited by katon on Mon Nov 27, 2006 10:38 pm, edited 1 time in total.
OlafNoehring
Forum Members
Forum Members
Posts: 78
Joined: Mon Oct 23, 2006 4:43 pm

Re: "Languages not set" in multilang

Post by OlafNoehring »

Hi

thanks already - but the file seems to be empty. Can you please upload another or email it to
olaf   2006   [at]   team-noehring.de

Olaf
katon

Re: "Languages not set" in multilang

Post by katon »

I have fixed the file above, please try again.
OlafNoehring
Forum Members
Forum Members
Posts: 78
Joined: Mon Oct 23, 2006 4:43 pm

Re: "Languages not set" in multilang

Post by OlafNoehring »

Hi Katon

thanks but it still does not work - the result when I open the website (http://www.blabla.com/cms):

Not Found

The requested URL was not found on this server.

My config_lang looks like this:
$hls = array(
   'en' => '',
   'de' => '',
'es' => '',
   'it' => '',
   'fr' => ''
);
define('DEFAULT_LANG', 'en');


When I wo to the admin area (http://www.blabla.com/cms/admin), I can log in and when I go to pages, it looks like this:
Image

Olaf
OlafNoehring
Forum Members
Forum Members
Posts: 78
Joined: Mon Oct 23, 2006 4:43 pm

Re: "Languages not set" in multilang

Post by OlafNoehring »

Hi again

well also I tried something else..
I reinstalled - and cerated an empty config_lang with chmod 777-
after install  the file looks like this (plus php tags):

  define('DEFAULT_LANG', 'en');

no languages were added.

Olaf
katon

Re: "Languages not set" in multilang

Post by katon »

I don't know the exact reason, but I assume that you upgraded a German unilingual web site to MLE.  You have probably renamed db columns from content_title and menu_text to content_title_de and menu_text_de, which is logical if these columns contained German text.  However, your *_en columns remained empty, and since English is your default language, you can't see the page names in the admin area.  I would recommend changing the default language to "de" in config_lang.php.

I see it's time to create a FAQ/Troubleshooter for MLE, since the way it works now causes a lot of troubles, and the redesign to fix the problems won't come soon.
katon

Re: "Languages not set" in multilang

Post by katon »

OlafNoehring wrote: Hi again

well also I tried something else..
I reinstalled - and cerated an empty config_lang with chmod 777-
after install  the file looks like this (plus php tags):

  define('DEFAULT_LANG', 'en');

no languages were added.

Olaf
Please make the entire directory writable (not recursively) for the time of the installation process.
OlafNoehring
Forum Members
Forum Members
Posts: 78
Joined: Mon Oct 23, 2006 4:43 pm

Re: "Languages not set" in multilang

Post by OlafNoehring »

Hi Katon

your 1st post: no, I did not upgrade, but did a clean installation with latest mle, I did not do anything to the database (before, while, after) the install.

your 2nd post: I deleted the first instalation, made my /cms "chmod 777" and explicitly config.php and config_lang.php also to chmod 777: Same result after installation is done: "Not found" error.
The config_lang.php seems now correct (but after the last entry in the array there is a "," - which should not be there).

What columns do you mean (what should their name be, in which tables)?

In the database I find for example the table
cms7_content
with the fields
content_name
menu_text
...
prop_names

In prop_names I can find value: "content_en,content_de,content_es,content_fr"

In the table
cms7_content_props
I can find records with ID and prop_name corresponding to teh entries in cms7_content - this seems to be correct (afaik)



Olaf
katon

Re: "Languages not set" in multilang

Post by katon »

Then I just don't understand how you get 4 pages after a clean install.  The install creates only one page.  Or did you create the 3 other pages manually after the installation?
OlafNoehring
Forum Members
Forum Members
Posts: 78
Joined: Mon Oct 23, 2006 4:43 pm

Re: "Languages not set" in multilang

Post by OlafNoehring »

Hi

sorry,

yes, I created the other pages after Install because I thought (at that time I did not see any flags) you can choose the language of a page while creating it.
But it was a clean install.

Olaf
Locked

Return to “[locked] Installation, Setup and Upgrade”