ATutor

Learning Management Tools







Pages:1 2 3 4 5 6 7 8 9 10 11 12 13 14 15


Upgrade gone bad


  • 2010-03-24 15:59:51

    Upgrade gone bad

    I just ran an upgrade from 1.6.2 to 1.6.4 and everything seemed to go fine (according to the upgrade script) - databse tables updated fine with all green check marks etc.

    Now when trying to log in I get this:

    Warning: Invalid argument supplied for foreach() in /xxxxxxx/www/kurssenter/include/classes/Language/LanguageManager.class.php on line 156

    Warning: Invalid argument supplied for foreach() in /xxxxxxx/www/kurssenter/include/classes/Language/LanguageManager.class.php on line 170

    Warning: reset() [function.reset]: Passed variable is not an array or object in /xxxxxxxx/www/kurssenter/include/classes/Language/LanguageManager.class.php on line 198

    Warning: current() [function.current]: Passed variable is not an array or object in /xxxxxxxxx/www/kurssenter/include/classes/Language/LanguageManager.class.php on line 200
    There are no languages installed!


    Any tips would be greatly appreciated.

  • 2010-03-24 16:03:32

    Re: Upgrade gone bad..

    Sorry for doble posting.

    Problem is real though....

  • 2010-03-24 16:11:46

    Re: Upgrade gone bad..

    Normally it defaults to English after an upgrade, then you reinstall other languages.

    Is there language in the language_text table? And. are language listed in the languages table?

  • 2010-03-24 16:24:18

    Re: Upgrade gone bad..

    There are ca 2200 rows in the language_text table. English, but not *all* terms seem translated.

    The languages table is empty. 0 rows.

  • 2010-03-24 16:28:47

    Re: Upgrade gone bad..

    strange

    You can manually add English to the table.

    INSERT INTO `AT_languages` (`language_code`, `char_set`, `direction`, `reg_exp`, `native_name`, `english_name`, `status`) VALUES
    ('en', 'utf-8', 'ltr', 'en([-_][[:alpha:]]{2})?|english', 'English', 'English', 3);

  • 2010-03-24 16:35:21

    Re: Upgrade gone bad..

    Hmm.

    "You have error in your SQL syntax"

    "near )"

  • 2010-03-24 17:22:16

    Re: Upgrade gone bad..

    Try again. There was an extra parenthesis at the end, now fixed.

  • 2010-03-24 17:38:13

    Re: Upgrade gone bad..

    Thanks, Greg! I can log in now.

    I think I know why this happened:

    In my old installation I had removed the english translation (I only use Norwegian).

    I probably should have reinstalled English befor doing the upgrade.

    Thx a lot.