user_pref_get_language()

Get help from other users here.

Moderators: Developer, Contributor

caro
Posts: 11
Joined: 14 Jun 2013, 12:05

Re: user_pref_get_language()

Post by caro »

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 ;)
amitbandgar
Posts: 1
Joined: 17 May 2016, 05:22

Post by amitbandgar »

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
atrol
Site Admin
Posts: 8378
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: user_pref_get_language()

Post by atrol »

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
Please use Search before posting and read the Manual
Post Reply