Upgrading from 1.1.8 to 1.2.8

Get help from other users here.

Moderators: Developer, Contributor

Re: Upgrading from 1.1.8 to 1.2.8

Postby atrol » Nov 07, 2011 3:32 pm

Remove the "die" line and change
Code: Select all
@require_once( dirname( dirname( __FILE__ ) ) . DIRECTORY_SEPARATOR . 'xcore.php' );
to
Code: Select all
require_once( dirname( dirname( __FILE__ ) ) . DIRECTORY_SEPARATOR . 'xcore.php' );
Please use Search before posting and read the Manual
Use Mantis2Go to try MantisBT on Windows or to reproduce issues
atrol
 
Posts: 3632
Joined: Mar 26, 2008 4:37 pm
Location: Germany

Re: Upgrading from 1.1.8 to 1.2.8

Postby TesterMatt » Nov 08, 2011 8:21 am

When I used the line of code you provided, I got the following error:

Code: Select all
Warning: require_once(D:\xampp\htdocs\mantis\xcore.php) [function.require-once]: failed to open stream: No such file or directory in D:\xampp\htdocs\mantis\admin\install.php on line 31

Fatal error: require_once() [function.require]: Failed opening required 'D:\xampp\htdocs\mantis\xcore.php' (include_path='.;D:\xampp\php\pear\') in D:\xampp\htdocs\mantis\admin\install.php on line 31


I noticed that your code referenced "xcore.php" instead of "core.php", but such a file doesn't seem to exist. I tried changing the file to "core.php", 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


The problem seems to be this "MantisPlugin.class.php" file. The file does exist, but in a subdirectory to mantis\core, so I copied it up a directory and re-ran the install. It was marginally more successful, but I got the following errors:

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

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

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

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

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


As well, the Install Check returned the following error:

Code: Select all
Config File Exists but Database does not.
POSSIBLE PROBLEM
Bad config_inc.php?


I know for certain that the DB exists, and the config file refers to it, so I'm not sure why it would return this error.
TesterMatt
 
Posts: 15
Joined: Apr 01, 2011 1:24 pm

Re: Upgrading from 1.1.8 to 1.2.8

Postby atrol » Nov 08, 2011 9:24 am

TesterMatt wrote:I noticed that your code referenced "xcore.php" instead of "core.php",
It was late in the evening, someone dropped an x by mistake ;-)

Add the following line after line 171 of config_defaults_inc.php
Code: Select all
die ($g_class_path);
Please use Search before posting and read the Manual
Use Mantis2Go to try MantisBT on Windows or to reproduce issues
atrol
 
Posts: 3632
Joined: Mar 26, 2008 4:37 pm
Location: Germany

Re: Upgrading from 1.1.8 to 1.2.8

Postby TesterMatt » Nov 08, 2011 9:29 am

Darn internet gremlins ;)

I've added that to the config_defaults_inc.php file, and I get the following error:

Code: Select all
Notice: Undefined variable: g_class_path in D:\xampp\htdocs\mantis\config_defaults_inc.php on line 172


A quick google didn't give me any hints as to what this g_class_path is, but from the error I'm thinking that one of the files I have is broken.
TesterMatt
 
Posts: 15
Joined: Apr 01, 2011 1:24 pm

Re: Upgrading from 1.1.8 to 1.2.8

Postby atrol » Nov 08, 2011 9:33 am

I get that uncertain feeling that you copied config_defaults_inc.php from your 1.1.8 to 1.2.8
Please use Search before posting and read the Manual
Use Mantis2Go to try MantisBT on Windows or to reproduce issues
atrol
 
Posts: 3632
Joined: Mar 26, 2008 4:37 pm
Location: Germany

Re: Upgrading from 1.1.8 to 1.2.8

Postby TesterMatt » Nov 08, 2011 9:38 am

That seems to have done the trick! I renamed the file that was in my mantis directory, and re-copied the file from the install archive. The install page now loads correctly and doesn't report any issues.

Thanks a million!!
TesterMatt
 
Posts: 15
Joined: Apr 01, 2011 1:24 pm

Re: Upgrading from 1.1.8 to 1.2.8

Postby atrol » Nov 08, 2011 9:52 am

Check also, that you didn't copy any other file from 1.1.8 to 1.2.8
Ensure that you did follow the instructions
* Extract the tarball into a clean directory; do NOT extract into an existing
installation,
as some files have been moved or deleted between releases
Please use Search before posting and read the Manual
Use Mantis2Go to try MantisBT on Windows or to reproduce issues
atrol
 
Posts: 3632
Joined: Mar 26, 2008 4:37 pm
Location: Germany

Re: Upgrading from 1.1.8 to 1.2.8

Postby TesterMatt » Nov 08, 2011 9:53 am

The only other file I copied was config_inc.php, and the archive was extracted to a separate folder.
TesterMatt
 
Posts: 15
Joined: Apr 01, 2011 1:24 pm

Previous

Return to Help

Who is online

Users browsing this forum: Google [Bot] and 2 guests

cron