Page 1 of 1

Notice: Undefined index: en

Posted: Sat May 19, 2012 11:16 am
by vbeatz
Hello,

Having trouble to enter the site (http://www.weartheluxury.com), because if the error message:

Notice: Undefined index: en in /home/wearthel/public_html/index.php on line 178Notice: Undefined index: en in /home/wearthel/public_html/index.php on line 179Notice: Undefined index: en in /home/wearthel/public_html/index.php on line 182Notice: Undefined index: en in /home/wearthel/public_html/index.php on line 183Notice: Error: Could not load language ! in /home/wearthel/public_html/system/library/language.php on line 39

This happened right after I have tried to add another language. There is no access to admin controls eighther.
Please help to fix this error and install new language.

Thanx a lot...

Re: Notice: Undefined index: en

Posted: Sat May 19, 2012 2:05 pm
by Avvici
Yup, you've locked yourself out lol. You misspelled the English language code. It's looking for 'en' but finding something else. Open up your database in PHP ADMIN. Click on the language table. Find English row and click EDIT. Look for the "code" field and make sure it says "en"
That will fix your problem.

Re: Notice: Undefined index: en

Posted: Sun May 20, 2012 12:45 am
by vbeatz
Thanx a lot, I guess this helped, but there is another error message now:

Notice: Error: Unknown column 'name' in 'order clause'
Error No: 1054
SELECT * FROM language ORDER BY sort_order, name in /home/wearthel/public_html/system/database/mysql.php on line 49

Hm... Don't know what to do...((( Please help...

Re: Notice: Undefined index: en

Posted: Sun May 20, 2012 3:40 am
by Avvici
What version of OC did you upgrade from? You are missing some SQL

Re: Notice: Undefined index: en

Posted: Sun May 20, 2012 3:58 am
by vbeatz
I have bought a template, that works only on 1.5.1.3... Can I just add what is missing? :-)

thanx

Re: Notice: Undefined index: en

Posted: Sun May 20, 2012 4:04 am
by Avvici
The name field in your language table. Remember how to get to it in Php My Admin? You need to add a field called "name"
This is what your language table should look like in 1.5.1.3:
nametable.jpg

nametable.jpg (197.29 KiB) Viewed 6722 times


Re: Notice: Undefined index: en

Posted: Sun May 20, 2012 4:22 am
by vbeatz
thanx!!!!!!!!!!!!!!!!


it worked fo me. I am gonna start learning some stuff not to find myself in such situation again... ;D