Upgrading from 1.1.8 to 1.2.8

Get help from other users here.

Moderators: Developer, Contributor

TesterMatt
Posts: 15
Joined: 01 Apr 2011, 18:24

Upgrading from 1.1.8 to 1.2.8

Post by TesterMatt »

I'm running in to some issues with integrating Mantis with TestRail, and I suspect it may be due to the relatively old version of Mantis I'm running (1.1.8). I have a test VM set up, and would like to update it to 1.2.8, but I haven't been able to find any sort of upgrade instructions (the Admin Guide only seems to talk about new installs). Since I don't have a lot of info, and Google hasn't turned up much for me, I've got the following questions:

- Is there documentation on the upgrade process? If not, can I just dump the new files in to my existing Mantis directory?
- Are there any gotchas associated with upgrading from this old a version?

Any assistance would be greatly appreciated!
atrol
Site Admin
Posts: 8571
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Upgrading from 1.1.8 to 1.2.8

Post by atrol »

read file doc/INSTALL chapter UPGRADING of your MantisBT download.
Please use Search before posting and read the Manual
TesterMatt
Posts: 15
Joined: 01 Apr 2011, 18:24

Re: Upgrading from 1.1.8 to 1.2.8

Post by TesterMatt »

Thanks for the pointer, and sorry for the newb question.

I've followed the instructions included with 1.2.8, but when I run install.php, all I get is a blank page. I've looked at the forum posts that refer to blank pages, but I don't think they really apply to me. Any ideas?
atrol
Site Admin
Posts: 8571
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Upgrading from 1.1.8 to 1.2.8

Post by atrol »

Which version of PHP do you use?
Please use Search before posting and read the Manual
TesterMatt
Posts: 15
Joined: 01 Apr 2011, 18:24

Re: Upgrading from 1.1.8 to 1.2.8

Post by TesterMatt »

I'm using PHP 5.2.9, as part of an XAMPP install (1.7.1)
atrol
Site Admin
Posts: 8571
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Upgrading from 1.1.8 to 1.2.8

Post by atrol »

Have a look at the apache logfiles.
Any errors, warnings, ...?
Please use Search before posting and read the Manual
TesterMatt
Posts: 15
Joined: 01 Apr 2011, 18:24

Re: Upgrading from 1.1.8 to 1.2.8

Post by TesterMatt »

I've checked the access and error logs, and neither indicates an error. The access log shows the page accesses, but with an HTTP code of 200.

As an experiment, I tried accessing the root directory, which normally redirects me to the login page, and got the following error:

Code: Select all

APPLICATION WARNING #100: Configuration option "session_validation" not found.

APPLICATION WARNING #100: Configuration option "class_path" not found.

SYSTEM WARNING: require_once(MantisPlugin.class.php) [function.require-once]: failed to open stream: No such file or directory


Fatal error: require_once() [function.require]: Failed opening required 'MantisPlugin.class.php' (include_path='D:\xampp\htdocs\mantis\core\;D:\xampp\htdocs\mantis\library;.;D:\xampp\php\pear\') in D:\xampp\htdocs\mantis\core\plugin_api.php on line 33
I'm not sure if this error is only being generated because the install script hasn't been run, or because there's something else going on, but I thought I'd include it just in case it gives some hint I'm not seeing.
atrol
Site Admin
Posts: 8571
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Upgrading from 1.1.8 to 1.2.8

Post by atrol »

can you attach your config_inc.php?
Please use Search before posting and read the Manual
TesterMatt
Posts: 15
Joined: 01 Apr 2011, 18:24

Re: Upgrading from 1.1.8 to 1.2.8

Post by TesterMatt »

Here's a copy of my config_inc.php. I've removed the email addresses, and changed the IPs, only because this is a public forum. Also, I changed the extension to allow it to be uploaded.
Attachments
config_inc-Updated.php.txt
(2.52 KiB) Downloaded 1096 times
atrol
Site Admin
Posts: 8571
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Upgrading from 1.1.8 to 1.2.8

Post by atrol »

First of all you should remove the line

Code: Select all

?>
from your config_inc.php
Please use Search before posting and read the Manual
TesterMatt
Posts: 15
Joined: 01 Apr 2011, 18:24

Re: Upgrading from 1.1.8 to 1.2.8

Post by TesterMatt »

Tried that, but no change in behaviour. I was looking over that error again, and tried tracking down the file "MantisPlugin.class.php". I was able to find it in mantis\core\classes, but that path isn't explicitly mentioned in the Mantis config file. Not sure if that's relevant, but it seems a bit odd to me.
atrol
Site Admin
Posts: 8571
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Upgrading from 1.1.8 to 1.2.8

Post by atrol »

Try some "old style debugging" by adding test prints.

Make a copy of admin/install.php
Start at the beginning of file install.php by adding the following line after line 1

Code: Select all

die ("MantisBT alive");
run admin/install.php and see what happens.
You should get a page with "MantisBT alive"
If yes, remove the line and add the line after line 37 and see what happens
You should get a page with "MantisBT alive"
If yes, remove the line and add the line after line 87 and see what happens
....
Please use Search before posting and read the Manual
TesterMatt
Posts: 15
Joined: 01 Apr 2011, 18:24

Re: Upgrading from 1.1.8 to 1.2.8

Post by TesterMatt »

Interesting...I tried what you suggested, and "MantisBT alive" appears when I put it on line 2, but not on line 38. I tried adding it in other spots before line 37, and the last place it seems to work is between lines 30 and 31.

Code: Select all

define( 'PLUGINS_DISABLED', true );
die ("MantisBT alive");
@require_once( dirname( dirname( __FILE__ ) ) . DIRECTORY_SEPARATOR . 'core.php' );
When I put the die command anywhere after 31, I'm presented with a blank page again. I'm thinking that the code on line 31 isn't working correctly with my install. I've reviewed the old install file from 1.1.8, to see if maybe there's some changes there (I wasn't here for the original install), but it looks like the relevant line of code appears to be the same. The only other thing I thought was that maybe lines 32 and/or 33 were the cause, but commenting either/both of these out didn't seem to have any positive effect either.
atrol
Site Admin
Posts: 8571
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Upgrading from 1.1.8 to 1.2.8

Post by atrol »

enter the following line after line 30

Code: Select all

die( dirname( dirname( __FILE__ ) ) . DIRECTORY_SEPARATOR . 'core.php' );
Please use Search before posting and read the Manual
TesterMatt
Posts: 15
Joined: 01 Apr 2011, 18:24

Re: Upgrading from 1.1.8 to 1.2.8

Post by TesterMatt »

I got the following response from Mantis:

Code: Select all

D:\xampp\htdocs\mantis\core.php
I took a look in that directory, and the file does exist. I also took a look in the file, to see if there was anything that stood out as being weird, but nothing as far as I can see.
Post Reply