View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0020484 | mantisbt | installation | public | 2016-01-07 01:31 | 2016-01-30 09:59 |
Reporter | biju_ps | Assigned To | atrol | ||
Priority | high | Severity | crash | Reproducibility | always |
Status | closed | Resolution | no change required | ||
Platform | Windows | OS | Windows 2008 Server | ||
Product Version | 1.2.19 | ||||
Summary | 0020484: Internal Server Error -500 after installation | ||||
Description | I am are trying Mantis. I have successfully installed Mantis on the system. Mantis showing the login screen .While I am trying to login with user name administrator and password root , I am getting a Internal Serever Error (500) Using Mysql 5.6 64 bit , connecting using Mysqli | ||||
Additional Information | Php Error log[07-Jan-2016 11:39:05 Asia/Kolkata] PHP Fatal error: Uncaught Error: Call to undefined function user_pref_get_language() in C:\inetpub\wwwroot\kalyanTickets\core\lang_api.php:104 | ||||
Tags | No tags attached. | ||||
Attached Files | |||||
Which PHP version do you use? Are you able to fix the issue by following those steps 0011584:0030648? |
|
PHP version 7 |
|
Did you read/try my second hint?
|
|
No ,I have changed var to Public in relationship_api.php , but no luck |
|
I have downgraded to PHP 5.6, Working perfectly in PHP 5.6 |
|
Thanks for the feedback. We will hardly certify/change version 1.2.x to run with PHP 7. |
|
Hello, replace because the same name class with the constructor is not supported by php7 |
|
Concerning 0020484:0052301, this is fixed, see 0020501 |
|
Thanks |
|
FYI: A colleague of mine fixed it in the following fashion, here is his text to the issue:
I do not know what the correct fix is (the one recommended in the MantisBT bug tracker does not work). However, the following will work around the problem. In the file [.core]lang_api.php around line 98 you will find the following function which starts as follows: function lang_get_default() {
Change it by adding two lines so it reads as follows: function lang_get_default() {
This will simply include the file that has the missing function. As to why it works in one version of PHP but not another, I do not have an answer. Unless, somehow, the lang_get_default function is called differently depending on something about the PHP version. |
|