Page 1 of 1

Undefined index in include.php o

Posted: Fri Jul 10, 2009 11:39 am
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

Re: Undefined index in include.php o

Posted: Fri Jul 10, 2009 12:37 pm
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

Re: Undefined index in include.php o

Posted: Fri Jul 10, 2009 8:49 pm
by JR
MLE languages are ok
MLE settings tests are ok

The problem persists

Re: Undefined index in include.php o

Posted: Sun Jul 12, 2009 7:32 pm
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

Re: Undefined index in include.php o

Posted: Mon Jul 13, 2009 7:48 am
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

Re: Undefined index in include.php o

Posted: Mon Jul 13, 2009 11:34 am
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

Re: Undefined index in include.php o

Posted: Mon Jul 13, 2009 4:06 pm
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

Re: Undefined index in include.php o

Posted: Mon Jul 13, 2009 5:52 pm
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

Re: Undefined index in include.php o

Posted: Tue Jul 14, 2009 9:51 am
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.

Re: Undefined index in include.php o

Posted: Tue Jul 14, 2009 10:08 am
by alby
I talk of user preferences in admin part

Alby

Re: Undefined index in include.php o

Posted: Tue Jul 14, 2009 5:50 pm
by JR
Yes, of course, this is what I did.

Re: Undefined index in include.php o

Posted: Fri Jul 24, 2009 4:30 pm
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

Re: Undefined index in include.php o

Posted: Sat Jul 25, 2009 9:05 pm
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(

Re: Undefined index in include.php o

Posted: Sat Jul 25, 2009 9:31 pm
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

[SOLVED]: Undefined index in include.php

Posted: Sun Jul 26, 2009 12:57 pm
by JR
Wonderful, it is solved

Many thanks

JR