ATutor

Learning Management Tools







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


ATutor upgrade problem


  • 2007-06-30 02:03:58

    ATutor upgrade problem

    [system info= Apache-AdvancedExtranetServer/2.0.53 (Mandriva Linux/PREFORK-9.4.102mdk) mod_ssl/2.0.53 OpenSSL/0.9.7e PHP/4.3.1]

    I am trying to upgrade to 1.5.4 from 1.5.3.3 but get the following error:

    Warning: Invalid argument supplied for foreach() in ....ATutor/install/include/common.inc.php on line 136

    The initial installation status tests run ok, but the process hangs on this error in upgrade.php

    Any suggestions as to how I can sort this problem?

    Thanks.

  • 2007-07-01 01:13:11

    Re: ATutor upgrade problem

    I still can't solve this problem!

    Could someone outline the process of using a clean installation to upgrade an existing one [i]without[/i] using the 'upgrade' option?

  • 2007-07-01 08:39:20

    Re: ATutor upgrade problem

    I'd suggest first commenting out line 136, and the following two lines, in install/include/common.inc.php then running the Upgrade again.

    The foreach loop at line 136 presents the feedback after each step. (so feedback won't be presented if its commented)

    If that fails, the manual process goes like this:

    1. move the original version and unpack the new version in its place

    2. take a backup of the original database (in case something goes wrong so it can be restored)

    2. copy the over the /include/config.inc.php file

    3. copy over the content directory

    4. run the SQL upgrade file install/include/db/atutor_upgrade_1.5.3.3_to_1.5.4.sql, either at the command prompt or using something like phpMyAdmin.


    mysql -u adminuser -p atutor < ./include/db/atutor_upgrade_x.x_to_y.y.sql


    ...where adminuser is the mysql admin users, and atutor is the name of the ATutor database

    5. download and install the language pack for 1.5.4

    http://www.atutor.ca/atutor/translate/index.php

    The manual upgrade process is described in the older upgrade instructions
    http://www.atutor.ca/atutor/docs/installation_pre_1_3.php#upgrade

  • 2007-07-01 10:15:55

    Re: ATutor upgrade problem

    Thanks a lot for your help...I'll let you know what happens.

  • 2007-07-01 10:54:18

    Re: ATutor upgrade problem

    I tried commenting out the parts of common.inc.php as suggested - the error message in my first post disappears but the upgrade process hangs at the first step (locate old version) and gives the following error:

    Fatal error: [] operator not supported for strings in ...cgibin/ATutor/install/include/ustep1.php on line 26

    So I suppose I should go for a manual upgrade?

    Do I need to have write permissions for the sql database in order to upgrade or is my existing database sufficient.

    Thanks again for any help.

  • 2007-07-01 11:39:27

    Re: ATutor upgrade problem

    The mysql user does need table create permissions.

  • 2007-07-02 05:09:16

    Re: ATutor upgrade problem

    Thanks.

    The people in charge of my network say that I might be do with php versions and the syntax of new functions.

    ...so I'll go for the manual process.