ATutor

Learning Management Tools







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


Error in LanguageManagerclassphp


  • 2007-09-15 04:28:07

    Error in LanguageManagerclassphp

    Hello, I've a big problem with the ATutor of my school.

    I've updated ATutor 1.5.4 to 1.5.5 version.

    And now show the message:

    "Warning: Invalid argument supplied for foreach() in /web/htdocs/www.escolateide.com/home/ATutor/include/classes/Language/LanguageManager.class.php on line 155"

    You can see it in: http://www.escolateide.com/ATutor/
    (ATutor version 1.5.5 installed)

    Things to describe:
    ATutor Version: 1.5.5 (build r7026 - 2007-08-02 13:01:30)
    Operating System: Linux 2.6.9-55.0.2.ELsmp #1 SMP Tue Jun 26 14:30:58 EDT 2007 i686
    Web Server: Apache/2.0
    PHP Version: 4.4.7
    MySQL Version: 5.0.45-community-log

    Langs installed before in 1.5.4 version: Spanish (UTF8) and Catalan (UTF8)

    I think that the problem is that ATutor can't found any lang package, neither default language "english iso-8859-1". I try to find in what folder ATutor save the lang package for install it manually the new english version, but I can't find the folder.

    I try to reinstall the old version 1.5.4 and backup my old SQL data, but ATutor show the same warning message.

    Please, can you help me?

  • 2007-09-15 08:05:37

    Re: Error in LanguageManager.class.php

    The language is is the database in the language_text table. English should have been installed by default. The old language is removed and replace with the language for the new version, so you will need to reinstall the Spanish, and the Catalan when its complete for 1.5.5.

    Look in the database to see if the language is there. If not you can take the english language pack from the language download page on atutor.ca, unzip it, then run the SQL file manually to install the language. If you have phpMyAdmin installed, it will make these steps easier.

  • 2007-09-16 06:21:59

    Well! work fine1

    If you are asking for help, provide lots of detail so problems can be reproduced.

    Things to describe:
    operating system -
    version of ATutor -
    versions of php -
    version of mysq l -
    webserver & version -
    copies of error messages -
    changes to default settings -
    web browser being used -
    and anything else relevant -

  • 2007-09-16 06:37:50

    Well! work fine!

    I do the next steps for repair my ATutor (for somebody that have my same problem in futur).

    1).- I've donwload "english iso-8859-1" language pack for 1.5.5 ATutor version, and unzip it.

    2).- I changed the file "language_text.sql":

    * I've replaced the string "INSERT INTO `languages`" by "INSERT INTO `AT_languages`"

    * I've replaced too "INSERT INTO `AT_language_text`" by the new string "INSERT INTO `AT_language_text`"

    If I don't do this replace, the mySQL control panel show an error when do the import (error: the table "language" don't exist).

    3).- I opened mySQL control panel and imported the file ""language_text.sql".

    Now my ATutor work in English, in the next step, I was entered in ATutor admin account and imported Spanish lang pack, and the program is now working perfect and in Spanish. :)

    Thaks for your help Greg, you are "ATutor Angel"! :)

  • 2007-09-16 06:40:21

    opps

    In my before email has a error:

    the line:

    * I've replaced too "INSERT INTO `AT_language_text`" by the new string "INSERT INTO `AT_language_text`"

    is:


    * I've replaced too "INSERT INTO `language_text`" by the new string "INSERT INTO `AT_language_text`"

    sorry :P