mahara-contributors team mailing list archive
-
mahara-contributors team
-
Mailing list archive
-
Message #11995
[Bug 1170587] [NEW] Problem with multi-level mkdir() in artefact/file/db/upgrade.php
Public bug reported:
While upgrading demo.mahara.org from 1.6.4 to 1.7.0, I found the upgrade
script errored out repeatedly, because in artefact/file/db/upgrade.php,
in the section for version 2012092400, it tried to create a new
directory "artefact/file/originals" under the dataroot. But, the base
"artefact" directory itself didn't exist in my dataroot, and mkdir()
defaults to NOT creating intermediate directories.
So, I changed mkdir to create the intermediate directories, and then the
installation went through okay.
I'm not sure whether this is a problem other people might encounter, or
whether it's due to the peculiarities of demo.mahara.org (which is reset
by a script on a daily basis). But it wouldn't hurt to add it.
** Affects: mahara
Importance: Medium
Assignee: Aaron Wells (u-aaronw)
Status: In Progress
** Affects: mahara/1.7
Importance: Undecided
Status: New
** Affects: mahara/1.8
Importance: Undecided
Status: New
** Also affects: mahara/1.7
Importance: Undecided
Status: New
** Also affects: mahara/1.8
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contrib members
https://bugs.launchpad.net/bugs/1170587
Title:
Problem with multi-level mkdir() in artefact/file/db/upgrade.php
Status in Mahara ePortfolio:
In Progress
Status in Mahara 1.7 series:
New
Status in Mahara 1.8 series:
New
Bug description:
While upgrading demo.mahara.org from 1.6.4 to 1.7.0, I found the
upgrade script errored out repeatedly, because in
artefact/file/db/upgrade.php, in the section for version 2012092400,
it tried to create a new directory "artefact/file/originals" under the
dataroot. But, the base "artefact" directory itself didn't exist in my
dataroot, and mkdir() defaults to NOT creating intermediate
directories.
So, I changed mkdir to create the intermediate directories, and then
the installation went through okay.
I'm not sure whether this is a problem other people might encounter,
or whether it's due to the peculiarities of demo.mahara.org (which is
reset by a script on a daily basis). But it wouldn't hurt to add it.
To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1170587/+subscriptions
Follow ups
-
[Bug 1170587] Re: Problem with multi-level mkdir() in artefact/file/db/upgrade.php
From: Aaron Wells, 2013-05-02
-
[Bug 1170587] A change has been merged
From: Mahara Bot, 2013-05-02
-
[Bug 1170587] Re: Problem with multi-level mkdir() in artefact/file/db/upgrade.php
From: Aaron Wells, 2013-05-02
-
[Bug 1170587] Re: Problem with multi-level mkdir() in artefact/file/db/upgrade.php
From: Aaron Wells, 2013-05-02
-
[Bug 1170587] Re: Problem with multi-level mkdir() in artefact/file/db/upgrade.php
From: Kristina Hoeppner, 2013-04-28
-
[Bug 1170587] A change has been merged
From: Mahara Bot, 2013-04-22
-
[Bug 1170587] A change has been merged
From: Mahara Bot, 2013-04-22
-
[Bug 1170587] Re: Problem with multi-level mkdir() in artefact/file/db/upgrade.php
From: Aaron Wells, 2013-04-22
-
[Bug 1170587] Re: Problem with multi-level mkdir() in artefact/file/db/upgrade.php
From: Aaron Wells, 2013-04-19
-
[Bug 1170587] [NEW] Problem with multi-level mkdir() in artefact/file/db/upgrade.php
From: Aaron Wells, 2013-04-19
References