View Issue Details

IDProjectCategoryView StatusLast Update
0013687mantisbtbugtrackerpublic2011-12-30 10:02
Reporterflaviojs Assigned Toatrol  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionduplicate 
Product Version1.2.8 
Summary0013687: Call to undefined function user_pref_get_language()
Description

Fatal error: Call to undefined function user_pref_get_language() in D:\xampplite\htdocs\mantisbt\core\relationship_api.php on line 79

Additional Information

Fresh install of Mantis 1.2.8.

It appeared when I logged in as administrator to create the first project after installing; tried going to the main page and it had the same problem.
There is no user_pref_get_language in core\relationship_api.php, which got me really confused...

I changed 'var' to 'public' as described in http://www.mantisbt.org/forums/viewtopic.php?p=29012#p29012 and it became fine.

I'm not sure but it's probably related to the php version being used (5.1.2) and this note from http://www.php.net/manual/en/language.oop5.visibility.php :
"Note: The PHP 4 method of declaring a variable with the var keyword is still supported for compatibility reasons (as a synonym for the public keyword). In PHP 5 before 5.1.3, its usage would generate an E_STRICT warning."

My test environment:
Windows 7 (64 bit version)
ApacheFriends XAMPP Lite version 1.5.2:

  • Apache 2.2.0
  • MySQL 5.0.20
  • PHP 5.1.2 + PEAR (basic package)
TagsNo tags attached.

Relationships

duplicate of 0011584 closedgrangeway Call to undefined function user_pref_get_language() 

Activities

There are no notes attached to this issue.