user_pref_get_language()
Moderators: Developer, Contributor
Re: user_pref_get_language()
Ok, nevermind, I solved this issue. There was problem from my side, cause I changed some 'require_once' instructions in mantis code few months earlier and forgot about this
-
- Posts: 1
- Joined: 17 May 2016, 05:22
Hello,
I have been install mantis 1.2.19 on Window 7 pc, I use Xampp server,
1) Relationship_api.php
class BugRelationshipData {
public $id;
public $src_bug_id;
public $src_project_id;
public $dest_bug_id;
public $dest_project_id;
public $type;
2) user_pref_get_language'
$t_lang = user_pref_get_language( auth_get_current_user_id(), ALL_PROJECTS );
These two changes i have already done.
-but when I insert username and password then some error coming.
- I click on forgot password in that i create username and password then mail coming on my register email, but when i access these link and enter these new 'username' and 'password' then Error is shows like
Fatal error: Uncaught Error: Call to undefined function user_pref_get_language() in C:\xampp\htdocs\mantisbt\core\lang_api.php:104 Stack trace: #0 C:\xampp\htdocs\mantisbt\core\error_api.php(82): lang_get_default() #1 C:\xampp\htdocs\mantisbt\core\string_api.php(33): error_handler(8192, 'Methods with th...', 'C:\\xampp\\htdocs...', 31, Array) #2 C:\xampp\htdocs\mantisbt\core\string_api.php(33): require_once() #3 C:\xampp\htdocs\mantisbt\core\email_api.php(40): require_once('C:\\xampp\\htdocs...') #4 C:\xampp\htdocs\mantisbt\core\bug_api.php(33): require_once('C:\\xampp\\htdocs...') #5 C:\xampp\htdocs\mantisbt\core\project_api.php(36): require_once('C:\\xampp\\htdocs...') #6 C:\xampp\htdocs\mantisbt\core.php(239): require_once('C:\\xampp\\htdocs...') #7 C:\xampp\htdocs\mantisbt\account_update.php(30): require_once('C:\\xampp\\htdocs...') #8 {main} thrown in C:\xampp\htdocs\mantisbt\core\lang_api.php on line 104
I have been install mantis 1.2.19 on Window 7 pc, I use Xampp server,
1) Relationship_api.php
class BugRelationshipData {
public $id;
public $src_bug_id;
public $src_project_id;
public $dest_bug_id;
public $dest_project_id;
public $type;
2) user_pref_get_language'
$t_lang = user_pref_get_language( auth_get_current_user_id(), ALL_PROJECTS );
These two changes i have already done.
-but when I insert username and password then some error coming.
- I click on forgot password in that i create username and password then mail coming on my register email, but when i access these link and enter these new 'username' and 'password' then Error is shows like
Fatal error: Uncaught Error: Call to undefined function user_pref_get_language() in C:\xampp\htdocs\mantisbt\core\lang_api.php:104 Stack trace: #0 C:\xampp\htdocs\mantisbt\core\error_api.php(82): lang_get_default() #1 C:\xampp\htdocs\mantisbt\core\string_api.php(33): error_handler(8192, 'Methods with th...', 'C:\\xampp\\htdocs...', 31, Array) #2 C:\xampp\htdocs\mantisbt\core\string_api.php(33): require_once() #3 C:\xampp\htdocs\mantisbt\core\email_api.php(40): require_once('C:\\xampp\\htdocs...') #4 C:\xampp\htdocs\mantisbt\core\bug_api.php(33): require_once('C:\\xampp\\htdocs...') #5 C:\xampp\htdocs\mantisbt\core\project_api.php(36): require_once('C:\\xampp\\htdocs...') #6 C:\xampp\htdocs\mantisbt\core.php(239): require_once('C:\\xampp\\htdocs...') #7 C:\xampp\htdocs\mantisbt\account_update.php(30): require_once('C:\\xampp\\htdocs...') #8 {main} thrown in C:\xampp\htdocs\mantisbt\core\lang_api.php on line 104
Re: user_pref_get_language()
You could try a nightly build (1.2.20dev) https://www.mantisbt.org/builds.php
or try to apply the changes mentioned at https://www.mantisbt.org/bugs/view.php?id=20864
or try to apply the changes mentioned at https://www.mantisbt.org/bugs/view.php?id=20864