View Issue Details

IDProjectCategoryView StatusLast Update
0021639mantisbtadministrationpublic2016-08-28 01:13
Reporterspacomp Assigned Toatrol  
PrioritynormalSeverityblockReproducibilityalways
Status closedResolutionfixed 
Product Version1.3.0 
Summary0021639: Fatal error: 401 in C:\xampp\htdocs\MY_Application_Folder\core\database_api.php on line 460
Description

ISSUE ENCOUNTERED WITH FRESH INSTALLATION OF MANTISBT 1.3.0

I am trying to install the latest version of MantisBT, i.e. 1.3.0

I am getting this FATAL ERROR

"Fatal error: 401 in C:\xampp\htdocs\MY_Application_Folder\core\database_api.php on line 460"

Has anyone came across same issue?

Have you found a solution for this? Please share the solution [If any]

Steps To Reproduce
  1. Copied the latest source file from exctracted zip folder "MantisBT1.3.0.zip" into the desired application folder
  2. Placed this folder into \htdocs...
  3. Created a database by name "MY_Application_Folder"
  4. Launched the "http://localhost/MY_Application_Folder/admin/install.php"

All the parameters look GOOD

But still I end up getting the Fatal error: 401 in C:\xampp\htdocs\MY_Application_Folder\core\database_api.php on line 460

TagsNo tags attached.
Attached Files
FATAL ERROR.jpg (167,373 bytes)   
FATAL ERROR.jpg (167,373 bytes)   
FATAL ERROR.png (59,692 bytes)   
FATAL ERROR.png (59,692 bytes)   

Activities

atrol

atrol

2016-08-23 03:52

developer   ~0053882

spacomp,

I was not able to reproduce the issue (used XAMPP 7.0.6 for it)

Please provide detailed, step-by-step instructions to reproduce the issue.

spacomp

spacomp

2016-08-23 04:09

reporter   ~0053883

Dear Atrol,

Following are my details of Service packages

ApacheFriends XAMPP (Basispaket) version 1.7.4
  • Apache 2.2.17
  • MySQL 5.5.8 (Community Server)
  • PHP 5.3.5 (VC6 X86 32bit) + PEAR
  • XAMPP Control Version 2.5 from www.nat32.com
  • XAMPP Security
  • SQLite 2.8.15
  • OpenSSL 0.9.8o
  • phpMyAdmin 3.3.9
  • ADOdb 5.11
  • Mercury Mail Transport System v4.62
  • FileZilla FTP Server 0.9.37
  • Webalizer 2.01-10
  • Zend Optimizer 3.3.0
  • Perl 5.10.1
  • Mod_perl 2.0.4
  • Tomcat 7.0.3

Coming to the steps

  1. Copied the latest source file from exctracted zip folder "MantisBT1.3.0.zip" into the desired application folder
  2. Placed this folder into \htdocs...
  3. Created a database by name "DATABASE_NAME"
  4. Launched the "http://localhost/MY_Application_Folder/admin/install.php"

Installation proceeds for a while, and after some point of time, I get the error

401 in C:\xampp\htdocs\MY_Application_Folder\core\database_api.php on line 460

As highlighted in the image.


Note: I have installed 1.2.19 and other earlier versions in the same environment. And I never had this issue.


atrol

atrol

2016-08-23 04:36

developer   ~0053884

XAMPP (Basispaket) version 1.7.4
I don't want to invest time in installing complete outdated XAMPP versions.
I might finally find that there is a bug in one of the PHP functions on Windows.

Please try a newer XAMPP version (5.6.23 or 7.0.8 at the moment)

spacomp

spacomp

2016-08-25 08:47

reporter   ~0053886

I tried with the proper environment. Now I have the issue with "$g_crypto_master_salt", searched the topics based on this, no proper solutions.


During Installation we get this error


POSSIBLE PROBLEM
Unable to find a random number source for cryptographic purposes. You will need to edit C:\xampp\htdocs\MTCI-Prototype\config\config_inc.php and set a value for $g_crypto_master_salt manually


During login we are having this message


PPLICATION ERROR #2900
For security reasons MantisBT will not operate when $g_crypto_master_salt is not specified correctly in config_inc.php or is shorter than 16 characters long.
Please use the "Back" button in your web browser to return to the previous page. There you can correct whatever problems were identified in this error or select another action. You can also click an option from the menu bar to go directly to a new section.

spacomp

spacomp

2016-08-25 08:47

reporter   ~0053887

Refer "Application Error 2900.png"

Application Error 2900.png (75,932 bytes)   
Application Error 2900.png (75,932 bytes)   
spacomp

spacomp

2016-08-25 09:01

reporter   ~0053888


Following is the content from Config_inc.php


<?php
$g_hostname = 'localhost';
$g_db_type = 'mysqli';
$g_database_name = 'MY_Application_Folder';
$g_db_username = 'username';
$g_db_password = 'password';

$g_db_table_prefix = 'TablePrefix';

$g_default_timezone = 'Asia/Kolkata';

$g_crypto_master_salt = '';

atrol

atrol

2016-08-25 09:06

developer   ~0053889

This is the message you got:
For security reasons MantisBT will not operate when $g_crypto_master_salt is not specified correctly in config_inc.php or is shorter than 16 characters long.

Your setting is
$g_crypto_master_salt = '';

It's probably shorter than 16 characters long.

spacomp

spacomp

2016-08-26 03:50

reporter   ~0053891

Whats the solution?

Any changes to be done?

atrol

atrol

2016-08-26 04:19

developer   ~0053892

Read [1] to understand about what we are talking.

After that, change the setting to something like
$g_crypto_master_salt = 't5aPbHDmHBfnC4dJ';

https://mantisbt.org/docs/master-1.3.x/en-US/Admin_Guide/html-single/#admin.config.security

spacomp

spacomp

2016-08-26 05:18

reporter   ~0053893

This worked like a Charm!!!

Thanks a lot Atrol.

!!!!"Mantis Rocks"!!!!

atrol

atrol

2016-08-26 05:47

developer   ~0053894

spacomp,

This is not a bug or feature request for MantisBT (you are asking for help on how to configure the system). I am therefore resolving this issue as "no change required".

Please use the forums, the mantisbt-help mailing list or IRC to get support on customizing and using MantisBT (refer to http://www.mantisbt.org/support.php for links and further details).