Undefined index in include.php o

This is a FORK of the CMS Made Simple project and is not oficially supported in any way by the CMS Made Simple development team.
Locked
JR
Forum Members
Forum Members
Posts: 16
Joined: Thu Jun 04, 2009 3:36 pm

Undefined index in include.php o

Post by JR »

Hello,

Since I created manually the arabic language in config_lang.php (language that does not exist with the standard installation) the following notices keep appearing at the CMS login page:

Notice: Undefined index: in C:\Program Files\Apache Group\Apache2\htdocs\prj\include.php on line 262
Notice: Undefined index: in C:\Program Files\Apache Group\Apache2\htdocs\prj\include.php on line 263
Notice: Undefined index: in C:\Program Files\Apache Group\Apache2\htdocs\prj\include.php on line 264

The CMS is functionning normally once I log in. When I try to re-log in, the messages disappear.
FYI: the file ar_LB.php has been created in all places, modules as well as admin folder

Is there a way to avoid this?

Thanks
alby

Re: Undefined index in include.php o

Post by alby »

JR wrote: Is there a way to avoid this?
Global Settings > MLE languages is ok?
Global Settings > MLE settings > Tests are ok?

Alby
JR
Forum Members
Forum Members
Posts: 16
Joined: Thu Jun 04, 2009 3:36 pm

Re: Undefined index in include.php o

Post by JR »

MLE languages are ok
MLE settings tests are ok

The problem persists
alby

Re: Undefined index in include.php o

Post by alby »

JR wrote: The CMS is functionning normally once I log in. When I try to re-log in, the messages disappear.
I don't understand, this message is in admin part only and in login only?

Alby
JR
Forum Members
Forum Members
Posts: 16
Joined: Thu Jun 04, 2009 3:36 pm

Re: Undefined index in include.php o

Post by JR »

Yes, this is exactly what it is happening. It happens the first time after turning on PC. When I log in and then log out, messages disappear completely on the login page until Pc reboot.
The same behaviour on Mozilla and IE, even more, If I login through Mozilla, IE still giving the same messages until I log in through IE and vice-versa. It only disturbs the site administrator with no impact on any CMS functionalities (until now!).

Thanks
alby

Re: Undefined index in include.php o

Post by alby »

JR wrote: Yes, this is exactly what it is happening. It happens the first time after turning on PC. When I log in and then log out, messages disappear completely on the login page until Pc reboot.
The same behaviour on Mozilla and IE, even more, If I login through Mozilla, IE still giving the same messages until I log in through IE and vice-versa. It only disturbs the site administrator with no impact on any CMS functionalities (until now!).
Can you post:
- your config_lang.php
- what use in config.php for: $config['url_rewriting']
- have you set something in My Preferences » User Preferences » Language?

Alby
JR
Forum Members
Forum Members
Posts: 16
Joined: Thu Jun 04, 2009 3:36 pm

Re: Undefined index in include.php o

Post by JR »

This is my config_lang.php:

$hls = array(
'fr_FR' => array(
'locale_cms'=>'fr_FR',
'block'=>'fr',
'parent'=>'fr',
'flag'=>'',
'text'=>'Français (French)',
'locale'=>'fr_FR.UTF-8'
),
'ar_LB' => array(
'locale_cms'=>'ar_LB',
'block'=>'ar',
'parent'=>'ar',
'flag'=>'',
'text'=>'عربي',
'locale'=>'ar_LB.UTF-8'
),
);
?>



$config['url_rewriting'] is set to none.

in My Preferences » User Preferences » Language = English


That is all.

Thanks
alby

Re: Undefined index in include.php o

Post by alby »

JR wrote: in My Preferences » User Preferences » Language = English
ok, change your language preference to Français
Thank you, will fix in 1.6.1

Alby
JR
Forum Members
Forum Members
Posts: 16
Joined: Thu Jun 04, 2009 3:36 pm

Re: Undefined index in include.php o

Post by JR »

Hi Alby,

FYI:
I changed my language preference to french, I thought too, when I saw it, to change Français to Français in my config_lang.php.
Unfortunately, the problem persists.

Thank you again, waiting for CMS 1.6.1.
alby

Re: Undefined index in include.php o

Post by alby »

I talk of user preferences in admin part

Alby
JR
Forum Members
Forum Members
Posts: 16
Joined: Thu Jun 04, 2009 3:36 pm

Re: Undefined index in include.php o

Post by JR »

Yes, of course, this is what I did.
JR
Forum Members
Forum Members
Posts: 16
Joined: Thu Jun 04, 2009 3:36 pm

Re: Undefined index in include.php o

Post by JR »

Hi Alby,

I would like to re-open this issue because I have new elements to give.
I tried to take a new installation and I followed exactly MLE installation. When I delete cookies, the problem reappears.

Could you resolve it please and tell us the solution. I would like to deliver my project without this bug.
FYI: I tried to debug it by myself, no success.

thanks in advance.

JR
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12709
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: Undefined index in include.php o

Post by Dr.CSS »

One thing I noticed that was a problem in my MLE installs is that you have no space between your languages in config_lang.php...

  'locale'=>'fr_FR.UTF-8'
),
'ar_LB' => array(

Maybe...

  'locale'=>'fr_FR.UTF-8'
),

'ar_LB' => array(
alby

Re: Undefined index in include.php o

Post by alby »

JR wrote: Could you resolve it please and tell us the solution. I would like to deliver my project without this bug.
install MLE 1.6.1

Alby
JR
Forum Members
Forum Members
Posts: 16
Joined: Thu Jun 04, 2009 3:36 pm

[SOLVED]: Undefined index in include.php

Post by JR »

Wonderful, it is solved

Many thanks

JR
Locked

Return to “[locked] CMSMS MLE fork”