Forums | Mahara Community

Support /
Unable to Upgrade to 17.10.1 from 17.04.4


Peter Westebbe's profile picture
Posts: 8

11 January 2018, 9:42 PM

When starting the upgrade I get the message cor upgrade failed.

It seems there is something wrong with the languagepack. What can I do to fix it?

 

AH01071: Got error 'PHP message: [WAR] 8c (lib/mahara.php:627) Unable to read language directory /var/www/vhosts/mahara.vhs-bayern.de/maharadata/langpacks/__MACOSX/lang/\nPHP message: Call stack (most recent first):\nPHP message: * log_message(string(size 106), integer, true, true) at /var/www/vhosts/mahara.vhs-bayern.de/httpdocs/lib/errors.php:95\nPHP message: * log_warn(string(size 106)) at /var/www/vhosts/mahara.vhs-bayern.de/httpdocs/lib/mahara.php:627\nPHP message: * get_languages() at /var/www/vhosts/mahara.vhs-bayern.de/httpdocs/lib/web.php:4449\nPHP message: * language_select_form() at /var/www/vhosts/mahara.vhs-bayern.de/httpdocs/lib/web.php:160\nPHP message: * smarty() at /var/www/vhosts/mahara.vhs-bayern.de/httpdocs/admin/index.php:80\nPHP message: \n', referer: https://mahara.vhs-bayern.de/admin/index.php    Apache-Fehler
AH01071: Got error 'PHP message: [WAR] 37 (lib/mahara.php:627) Unable to read language directory /var/www/vhosts/mahara.vhs-bayern.de/maharadata/langpacks/__MACOSX/lang/\nPHP message: Call stack (most recent first):\nPHP message: * log_message(string(size 106), integer, true, true) at /var/www/vhosts/mahara.vhs-bayern.de/httpdocs/lib/errors.php:95\nPHP message: * log_warn(string(size 106)) at /var/www/vhosts/mahara.vhs-bayern.de/httpdocs/lib/mahara.php:627\nPHP message: * get_languages() at /var/www/vhosts/mahara.vhs-bayern.de/httpdocs/lib/web.php:4449\nPHP message: * language_select_form() at /var/www/vhosts/mahara.vhs-bayern.de/httpdocs/lib/web.php:160\nPHP message: * smarty() at /var/www/vhosts/mahara.vhs-bayern.de/httpdocs/index.php:89\nPHP message: \n', referer: https://mahara.vhs-bayern.de/admin/index.php

Robert Lyon's profile picture
Posts: 367

12 January 2018, 10:21 AM

Hi Peter

The error is saying Mahara can't read '/var/www/vhosts/mahara.vhs-bayern.de/maharadata/langpacks/__MACOSX/lang/' directory.

As none of the langpack dirs should be '_MACOSX' I suspect that directory has been added by something else.

You should be able to move that directory out of the way and try again.

Cheers

Robert

Peter Westebbe's profile picture
Posts: 8

13 January 2018, 12:56 AM

Hi Robert,

after deleting _MACOSX and starting a new upgrade I got the same error message "Update failed".

The error protocoll:

AH01071: Got error 'PHP message: [WAR] 9a (lib/errors.php:859) Failed to get a recordset: mysqli error: [1054: Unknown column 'time' in 'field list'] in EXECUTE("SELECT event, data, time\nPHP message: [WAR] 9a (lib/errors.php:859) FROM "event_log"\nPHP message: [WAR] 9a (lib/errors.php:859) WHERE event = 'createuser'\nPHP message: [WAR] 9a (lib/errors.php:859) AND POSITION(',"password":"",' IN data) = 0\nPHP message: [WAR] 9a (lib/errors.php:859) ")Command was: SELECT event, data, time\nPHP message: [WAR] 9a (lib/errors.php:859) FROM "event_log"\nPHP message: [WAR] 9a (lib/errors.php:859) WHERE event = ?\nPHP message: [WAR] 9a (lib/errors.php:859) AND POSITION(',"password":"",' IN data) = 0\nPHP message: [WAR] 9a (lib/errors.php:859) and values was (0:createuser)\nPHP message: Call stack (most recent first):\nPHP message: * log_message(string(size 693), integer, true, true) at /var/www/vhosts/mahara.vhs-bayern.de/httpdocs/lib/errors.php:95\nPHP message: * log_warn(string(size 693)) at /var/www/vhosts/mahara.vhs-bayern.de/httpdocs/lib/errors.php:859\nPHP message: * SQLException->__construct(string(size 693)) at /var/www/vhosts/mahara.vhs-bayern.de/httpdocs/lib/dml.php:517\nPHP message: * get_recordset_sql(string(size 269), array(size 1), string(size 0), string(size 0)) at /var/www/vhosts/mahara.vhs-bayern.de/httpdocs/lib/dml.php:714\nPHP message: * get_records_sql_array(string(size 269), array(size 1)) at /var/www/vhosts/mahara.vhs-bayern.de/httpdocs/lib/db/upgrade.php:4986\nPHP message: * xmldb_core_upgrade(string(size 10)) at /var/www/vhosts/mahara.vhs-bayern.de/httpdocs/lib/upgrade.php:347\nPHP message: * upgrade_core(object(stdClass)) at /var/www/vhosts/mahara.vhs-bayern.de/httpdocs/admin/upgrade.json.php:87\nPHP message: \n', referer: https://mahara.vhs-bayern.de/admin/upgrade.php

Does this help?

Cheers

Peter

Robert Lyon's profile picture
Posts: 367

05 February 2018, 1:49 PM

Hi Peter,

Yes that does help, thank you.

Ok there is an error in Mahara upgrade process - I'll begin a patch for that https://bugs.launchpad.net/mahara/+bug/1747320 - but in the meantime you should be able to change the word 'time' to 'ctime' in line 4982 in htdocs/lib/db/upgrade.php

Cheers

Robert

4 results