Page 1 of 2

Upgrading from 1.1.8 to 1.2.8

Posted: 04 Nov 2011, 17:20
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!

Re: Upgrading from 1.1.8 to 1.2.8

Posted: 04 Nov 2011, 17:25
by atrol
read file doc/INSTALL chapter UPGRADING of your MantisBT download.

Re: Upgrading from 1.1.8 to 1.2.8

Posted: 04 Nov 2011, 18:14
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?

Re: Upgrading from 1.1.8 to 1.2.8

Posted: 04 Nov 2011, 20:56
by atrol
Which version of PHP do you use?

Re: Upgrading from 1.1.8 to 1.2.8

Posted: 07 Nov 2011, 13:15
by TesterMatt
I'm using PHP 5.2.9, as part of an XAMPP install (1.7.1)

Re: Upgrading from 1.1.8 to 1.2.8

Posted: 07 Nov 2011, 13:32
by atrol
Have a look at the apache logfiles.
Any errors, warnings, ...?

Re: Upgrading from 1.1.8 to 1.2.8

Posted: 07 Nov 2011, 13:45
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.

Re: Upgrading from 1.1.8 to 1.2.8

Posted: 07 Nov 2011, 14:07
by atrol
can you attach your config_inc.php?

Re: Upgrading from 1.1.8 to 1.2.8

Posted: 07 Nov 2011, 14:16
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.

Re: Upgrading from 1.1.8 to 1.2.8

Posted: 07 Nov 2011, 14:35
by atrol
First of all you should remove the line

Code: Select all

?>
from your config_inc.php

Re: Upgrading from 1.1.8 to 1.2.8

Posted: 07 Nov 2011, 15:07
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.

Re: Upgrading from 1.1.8 to 1.2.8

Posted: 07 Nov 2011, 16:17
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
....

Re: Upgrading from 1.1.8 to 1.2.8

Posted: 07 Nov 2011, 17:23
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.

Re: Upgrading from 1.1.8 to 1.2.8

Posted: 07 Nov 2011, 20:24
by atrol
enter the following line after line 30

Code: Select all

die( dirname( dirname( __FILE__ ) ) . DIRECTORY_SEPARATOR . 'core.php' );

Re: Upgrading from 1.1.8 to 1.2.8

Posted: 07 Nov 2011, 20:31
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.