[Upgrade 1.1.1] Problem

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
momazia
Posts: 6
Joined: 03 Jun 2009, 04:00

[Upgrade 1.1.1] Problem

Post by momazia »

Hi everyone

I have a customized 1.1.1 version of Mantis. I do not know which parts of codes are customized.
So I did as below:

1. Download the original 1.1.1 version, Compare each file with 1.1.1 customized version.
2. Apply the same changes to 1.1.7 files. remove Admin folder, and upload the files.
3. Im getting below error:

APPLICATION ERROR #2700
Invalid session handler.
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.

I realized the error happens because of the error handler at line 135 of Session_api.php as shown below:

switch( strtolower( $g_session_handler ) ) {
case 'php':
$g_session = new MantisPHPSession( $p_session_id );
break;

case 'adodb':
# Not yet implemented
case 'memcached':
# Not yet implemented
default:
trigger_error( ERROR_SESSION_HANDLER_INVALID, ERROR );
break;
}

Please help me how I can fix it, or is there any other ways to upgrade the version of Mantis for those customized versions or not.

Ur help is really appreciated.
lmarincl
Posts: 3
Joined: 31 Jul 2009, 03:20
Location: Chile
Contact:

Re: [Upgrade 1.1.1] Problem

Post by lmarincl »

The error occurred because you replaced the file config_defaults.php in the 1.1.1. directory’s for the same file in the 1.1.8. directory.

The files are different, not replace.

Edit it manually.


#############################
# Web Server 1.1.1 version
#############################

# Using Microsoft Internet Information Server (IIS)
if ( isset( $_SERVER['SERVER_SOFTWARE'] ) ) { # SERVER_SOFTWARE in case of php-cgi.exe
$g_use_iis = ( strstr( $_SERVER['SERVER_SOFTWARE'], 'IIS' ) !== false ) ? ON : OFF;
} else {
$g_use_iis = OFF;
}


#############################
# Web Server 1.1.8 version
#############################

# Using Microsoft Internet Information Server (IIS)
if ( isset( $_SERVER['SERVER_SOFTWARE'] ) ) { # SERVER_SOFTWARE not defined in case of php-cgi.exe
$g_use_iis = ( strstr( $_SERVER['SERVER_SOFTWARE'], 'IIS' ) !== false ) ? ON : OFF;
} else {
$g_use_iis = OFF;
}

# Session handler. Possible values:
# 'php' -> Default PHP filesystem sessions
# 'adodb' -> Database storage sessions
# 'memcached' -> Memcached storage sessions
$g_session_handler = 'php';

# Session key name. Should be unique between multiple installations to prevent conflicts.
$g_session_key = 'MantisBT';

# Session save path. If false, uses default value as set by session handler.
$g_session_save_path = false;

# Form security validation.
# This protects against Cross-Site Request Forgery, but some proxy servers may
# not correctly work with this option enabled because they cache pages incorrectly.
# WARNING: Disabling this IS a security risk!!
$g_form_security_validation = ON;
momazia
Posts: 6
Joined: 03 Jun 2009, 04:00

Re: [Upgrade 1.1.1] Problem

Post by momazia »

ok thank you.
fixed already
Post Reply