Unable to read language directory
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mahara |
Fix Released
|
Low
|
Aaron Wells | ||
1.8 |
Fix Released
|
Low
|
Aaron Wells |
Bug Description
Running Mahara 1.5 here. No relation to system or PHP version I guess.
On page:
admin/
I get this error:
Unable to read language directory lang [full log appended but not necessary]
which is because in lib/mahara.php on line 596 (+/- 5 lines)
$datarootpaths = (array)
assign array(0 => false) to $datarootpaths
My 3 line patch goes directly below that line and looks like this:
foreach(
if(
unset(
*** full error log ***
Call stack (most recent first):
log_message("Unable to read language directory lang/", 8, true, true) at /srv/http/
log_warn("Unable to read language directory lang/") at /srv/http/
get_languages() at /srv/http/
language_
smarty(array(size 0), array(size 0), array(size 0), array(size 2)) at /srv/http/
auth_draw_
auth_setup() at /srv/http/
require(
Changed in mahara: | |
milestone: | 1.7.0 → 1.8.0 |
Changed in mahara: | |
milestone: | 1.8rc1 → 1.8.0 |
Changed in mahara: | |
status: | Fix Committed → Fix Released |
no longer affects: | mahara/1.9 |
Hi Jan,
If you would like, you can submit this patch to our review system. See https:/ /wiki.mahara. org/index. php/Developer_ Area/Contributi ng_Code# Submitting_ commits_ for_review
Or, if you prefer, one of our developers can do it on your behalf.
Cheers,
Hugh