Page 2 of 2

Re: Upgrading from 1.1.8 to 1.2.8

Posted: 07 Nov 2011, 20:32
by atrol
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' );

Re: Upgrading from 1.1.8 to 1.2.8

Posted: 08 Nov 2011, 13:21
by TesterMatt
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.

Re: Upgrading from 1.1.8 to 1.2.8

Posted: 08 Nov 2011, 14:24
by atrol
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);

Re: Upgrading from 1.1.8 to 1.2.8

Posted: 08 Nov 2011, 14:29
by TesterMatt
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.

Re: Upgrading from 1.1.8 to 1.2.8

Posted: 08 Nov 2011, 14:33
by atrol
I get that uncertain feeling that you copied config_defaults_inc.php from your 1.1.8 to 1.2.8

Re: Upgrading from 1.1.8 to 1.2.8

Posted: 08 Nov 2011, 14:38
by TesterMatt
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!!

Re: Upgrading from 1.1.8 to 1.2.8

Posted: 08 Nov 2011, 14:52
by atrol
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

Re: Upgrading from 1.1.8 to 1.2.8

Posted: 08 Nov 2011, 14:53
by TesterMatt
The only other file I copied was config_inc.php, and the archive was extracted to a separate folder.