Post by HKOCH » Sat Apr 03, 2010 8:06 pm

I get these warnings:

Notice: Undefined index: in /volume1/web/opencart_14/admin/index.php on line 110Notice: Undefined index: in /volume1/web/opencart_14/admin/index.php on line 112Notice: Undefined index: in /volume1/web/opencart_14/admin/index.php on line 113Error: Could not load language !

My catalog part is working ? (with all my products copied from a 1.3.4 version)
I first installed the 1.4.0 without any problems. Copied the 1.4.6 files and ran the scripts from Q.

And as said the catalog part is working -but not the Admin - then i get the the lines above !!

I tried to check the "setting" table and checked that "en" is the config_language - it is ????

Please advice - what can be wrong ?

// Henrik

New member

Posts

Joined
Sun Dec 20, 2009 3:33 am
Location - near to Copenhagen, Denmark

Post by i2Paq » Sat Apr 03, 2010 9:33 pm

HKOCH wrote:I get these warnings:

Could not load language !
[HOW To] Upgrade older languages to newer releases

Norman in 't Veldt
Moderator OpenCart Forums

_________________ READ and Search BEFORE POSTING _________________

Our FREE search: Find your answer FAST!.

[How to] BTW + Verzend + betaal setup.


User avatar
Global Moderator

Posts

Joined
Mon Nov 09, 2009 7:00 pm
Location - Winkel - The Netherlands

Post by HKOCH » Sat Apr 03, 2010 11:15 pm

Thanks for your replay.

I will of coarse read this.

But i'm thinking why does this happen, because the language is set to english which of all languages should be the one which nearly for sure should be complete ?

That's my question :-)

New member

Posts

Joined
Sun Dec 20, 2009 3:33 am
Location - near to Copenhagen, Denmark

Post by i2Paq » Sun Apr 04, 2010 12:30 am

Sorry, I had the impression you had a second language (IT) installed.

Norman in 't Veldt
Moderator OpenCart Forums

_________________ READ and Search BEFORE POSTING _________________

Our FREE search: Find your answer FAST!.

[How to] BTW + Verzend + betaal setup.


User avatar
Global Moderator

Posts

Joined
Mon Nov 09, 2009 7:00 pm
Location - Winkel - The Netherlands

Post by HKOCH » Sun Apr 04, 2010 12:38 am

In fact I do (old "da" files from 1.3.4) - but my point is when the database says that the config_language is set to "en" why does it then come with the errors shown in my previous submit ?

Anybody who can tell me how to solve this problem ?

My table "language" does now only contain the english language
My table "setting" does have the config_language "en"

What is wrong ? :-\

// Henrik

New member

Posts

Joined
Sun Dec 20, 2009 3:33 am
Location - near to Copenhagen, Denmark

Post by rph » Sun Apr 04, 2010 3:34 am

Admin language isn't set. Go to phpMyAdmin and enter this SQL query:

Code: Select all

INSERT INTO `setting` (
`setting_id` ,
`group` ,
`key` ,
`value` 
)
VALUES (
NULL , 'config', 'config_admin_language', 'en'
);
This one might be the most difficult upgrade for users yet.

-Ryan


rph
Expert Member

Posts

Joined
Fri Jan 08, 2010 5:05 am
Location - Lincoln, Nebraska

Post by HKOCH » Sun Apr 04, 2010 4:16 am

Thanks Ryan

I missed to see the 'config_admin_language' :-[

But i was very near myself :

I in fact tested with the admin|index.php

//----------------------------------------------------------------------------------------------------------
// HJK
//$config->set('config_language_id', $languages[$config->get('config_admin_language')]['language_id']);
$config->set('config_language_id', 1);
//$language = new Language($languages[$config->get('config_admin_language')]['directory']);
$language = new Language('english');
//$language->load($languages[$config->get('config_admin_language')]['filename']);
$language->load('english');
//----------------------------------------------------------------------------------------------------------

And that made me able to go to it - but I did'nt see that this "config_admin_language" was missing
Why didn't the Qphoric script put that into the table?

Thanks anyway Ryan - I'm finally now running 1.4.6 (just testing :-) )

New member

Posts

Joined
Sun Dec 20, 2009 3:33 am
Location - near to Copenhagen, Denmark

Post by rph » Sun Apr 04, 2010 5:25 am

It is in the table. It's a new setting so if you restore your products from a previous version backup it gets deleted.

-Ryan


rph
Expert Member

Posts

Joined
Fri Jan 08, 2010 5:05 am
Location - Lincoln, Nebraska

Post by JakePehrson » Mon Apr 05, 2010 2:38 am

I also had this problem. This script above fixed it.

I installed the cart new using 1.4.5 about 2 weeks ago. I just updated to 1.4.6. I have never "restored" so I am assuming this setting was never set in 1.4.5.

Thanks,

Newbie

Posts

Joined
Mon Apr 05, 2010 2:21 am

Post by sferguson98 » Tue Oct 05, 2010 1:13 am

I just used the script in 1.4.9 and it was the solution.

Thanks HKOCK!!! :)

Newbie

Posts

Joined
Fri Mar 12, 2010 11:53 pm
Who is online

Users browsing this forum: No registered users and 4 guests