Error while installing mahara

Bug #1312077 reported by gaurav
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Mahara
Invalid
Undecided
Unassigned

Bug Description

mahara version:- 1.9

OS :- windows 7 (64 bit)

Installation of mahara is taking too much time and lastly it gives following error

Failed to install (check logs for xmldb errors)
Call stack (most recent first):

    install_from_xmldb_file("C:\wamp\www\mahara/lib/db/install.xml") at C:\wamp\www\mahara\lib\upgrade.php:291
    upgrade_core(object(stdClass)) at C:\wamp\www\mahara\admin\upgrade.json.php:78

Revision history for this message
gaurav (gauravd) wrote :
Revision history for this message
Matthias Ermeling (ermeling) wrote :

I got the same Error, trying to install the 1.9 Mahara.
OS is also Windows 7 64-bit, but I´m using the xampp-package

description: updated
Revision history for this message
Matthias Ermeling (ermeling) wrote :

Now I got the Installation runnig by a little work-around.
But I´m not realy sure, what the consequences for Mahara are.

I just deactivated the line 291 in the /lib/upgrade.php

290 if (!empty($upgrade->install)) {
291 //install_from_xmldb_file($location . 'install.xml');
292 }

At first sight this seems to have no visible effect on the functionality of Mahara.

Revision history for this message
Son Nguyen (ngson2000) wrote :

Hi Matthias;

This function is required to install all Mahara tables. Bypass this will cause later problems.

Can you provide the error log?

Revision history for this message
Aaron Wells (u-aaronw) wrote :

To expand on what Son, said, the call to install_from_xmldb_file() is what actually creates ALL the tables in the database. If your Mahara installation is still working even after you comment this out, then it probably means that on your first installation attempt, Mahara successfully created the tables before it stalled out. Then on your subsequent attempts to install, it choked because the tables were already present.

Normally it's recommended to delete and recreate the tables and the dataroot between installation attempts, in order to avoid these kinds of problems.

Changed in mahara:
milestone: none → 1.9.1
status: New → Incomplete
tags: added: install windows
Robert Lyon (robertl-9)
Changed in mahara:
milestone: 1.9.1 → 1.9.2
Robert Lyon (robertl-9)
Changed in mahara:
milestone: 1.9.2 → 1.9.3
Aaron Wells (u-aaronw)
Changed in mahara:
status: Incomplete → Invalid
Son Nguyen (ngson2000)
Changed in mahara:
milestone: 1.9.3 → none
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.