[Mahara-contributors] [Bug 1067724] Re: Unable to read language directory

2012-10-17 Thread Jan Korous
My solution is just a hotfix which saves the day but doesn't take care
of the primary reason for this issue.

Please let someone check it.

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
https://bugs.launchpad.net/bugs/1067724

Title:
  Unable to read language directory

Status in Mahara ePortfolio:
  Triaged

Bug description:
  Running Mahara 1.5 here. No relation to system or PHP version I guess.

  On page:
 admin/users/pendingregistrations.php
  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)glob(get_config('dataroot') . 'langpacks/*', 
GLOB_MARK | GLOB_ONLYDIR);
  assign array(0 => false) to $datarootpaths

  My 3 line patch goes directly below that line and looks like this:
foreach($datarootpaths as $key => $path)
if(!is_string($path))
unset($datarootpaths[$key]);

  
  *** full error log ***
  Call stack (most recent first):
  log_message("Unable to read language directory lang/", 8, true, true) at 
/srv/http/mahara/testing/mahara_code/lib/errors.php:109
  log_warn("Unable to read language directory lang/") at 
/srv/http/mahara/testing/mahara_code/lib/mahara.php:564
  get_languages() at /srv/http/mahara/testing/mahara_code/lib/web.php:3346
  language_select_form() at /srv/http/mahara/testing/mahara_code/lib/web.php:437
  smarty(array(size 0), array(size 0), array(size 0), array(size 2)) at 
/srv/http/mahara/testing/mahara_code/auth/lib.php:1009
  auth_draw_login_page(null, object(Pieform)) at 
/srv/http/mahara/testing/mahara_code/auth/lib.php:516
  auth_setup() at /srv/http/mahara/testing/mahara_code/init.php:291
  require("/srv/http/mahara/testing/mahara_code/init.php") at 
/srv/http/mahara/testing/mahara_code/admin/users/pendingregistrations.php:30

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1067724/+subscriptions

___
Mailing list: https://launchpad.net/~mahara-contributors
Post to : mahara-contributors@lists.launchpad.net
Unsubscribe : https://launchpad.net/~mahara-contributors
More help   : https://help.launchpad.net/ListHelp


[Mahara-contributors] [Bug 1056069] Re: cannot change password

2012-10-17 Thread Jan Korous
+1 for this bug

Unfortunately I am also without logs being on shared hosting :-/

I have checked usr.password in database before and after submitting the
NEW password. It does change. However neither the old one nor the new
one work.

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
https://bugs.launchpad.net/bugs/1056069

Title:
  cannot change password

Status in Mahara ePortfolio:
  Incomplete

Bug description:
  Mahara Version 1.5.3
  Plattform: LAMP
  Browser: Chrome

  After installing mahara it is not possible to change the admin's password. So 
I'm not able to log in.
  When submitting the the new password only the login screen appears. But 
nothing happens. The password is still the same.

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1056069/+subscriptions

___
Mailing list: https://launchpad.net/~mahara-contributors
Post to : mahara-contributors@lists.launchpad.net
Unsubscribe : https://launchpad.net/~mahara-contributors
More help   : https://help.launchpad.net/ListHelp


[Mahara-contributors] [Bug 1067724] [NEW] Unable to read language directory

2012-10-17 Thread Jan Korous
Public bug reported:

Running Mahara 1.5 here. No relation to system or PHP version I guess.

On page:
   admin/users/pendingregistrations.php
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)glob(get_config('dataroot') . 'langpacks/*', 
GLOB_MARK | GLOB_ONLYDIR);
assign array(0 => false) to $datarootpaths

My 3 line patch goes directly below that line and looks like this:
foreach($datarootpaths as $key => $path)
if(!is_string($path))
unset($datarootpaths[$key]);


*** full error log ***
Call stack (most recent first):
log_message("Unable to read language directory lang/", 8, true, true) at 
/srv/http/mahara/testing/mahara_code/lib/errors.php:109
log_warn("Unable to read language directory lang/") at 
/srv/http/mahara/testing/mahara_code/lib/mahara.php:564
get_languages() at /srv/http/mahara/testing/mahara_code/lib/web.php:3346
language_select_form() at /srv/http/mahara/testing/mahara_code/lib/web.php:437
smarty(array(size 0), array(size 0), array(size 0), array(size 2)) at 
/srv/http/mahara/testing/mahara_code/auth/lib.php:1009
auth_draw_login_page(null, object(Pieform)) at 
/srv/http/mahara/testing/mahara_code/auth/lib.php:516
auth_setup() at /srv/http/mahara/testing/mahara_code/init.php:291
require("/srv/http/mahara/testing/mahara_code/init.php") at 
/srv/http/mahara/testing/mahara_code/admin/users/pendingregistrations.php:30

** Affects: mahara
 Importance: Undecided
 Status: New

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
https://bugs.launchpad.net/bugs/1067724

Title:
  Unable to read language directory

Status in Mahara ePortfolio:
  New

Bug description:
  Running Mahara 1.5 here. No relation to system or PHP version I guess.

  On page:
 admin/users/pendingregistrations.php
  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)glob(get_config('dataroot') . 'langpacks/*', 
GLOB_MARK | GLOB_ONLYDIR);
  assign array(0 => false) to $datarootpaths

  My 3 line patch goes directly below that line and looks like this:
foreach($datarootpaths as $key => $path)
if(!is_string($path))
unset($datarootpaths[$key]);

  
  *** full error log ***
  Call stack (most recent first):
  log_message("Unable to read language directory lang/", 8, true, true) at 
/srv/http/mahara/testing/mahara_code/lib/errors.php:109
  log_warn("Unable to read language directory lang/") at 
/srv/http/mahara/testing/mahara_code/lib/mahara.php:564
  get_languages() at /srv/http/mahara/testing/mahara_code/lib/web.php:3346
  language_select_form() at /srv/http/mahara/testing/mahara_code/lib/web.php:437
  smarty(array(size 0), array(size 0), array(size 0), array(size 2)) at 
/srv/http/mahara/testing/mahara_code/auth/lib.php:1009
  auth_draw_login_page(null, object(Pieform)) at 
/srv/http/mahara/testing/mahara_code/auth/lib.php:516
  auth_setup() at /srv/http/mahara/testing/mahara_code/init.php:291
  require("/srv/http/mahara/testing/mahara_code/init.php") at 
/srv/http/mahara/testing/mahara_code/admin/users/pendingregistrations.php:30

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1067724/+subscriptions

___
Mailing list: https://launchpad.net/~mahara-contributors
Post to : mahara-contributors@lists.launchpad.net
Unsubscribe : https://launchpad.net/~mahara-contributors
More help   : https://help.launchpad.net/ListHelp