error upgrading 1.3.5 to 2.5.1

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
mushu
Posts: 349
Joined: 04 Jan 2017, 17:41

error upgrading 1.3.5 to 2.5.1

Post by mushu »

Windows Server 2012 R2
PHP 5.3.28 (cli) (built: Dec 10 2013 22:06:17)
Mantis 2.5.1 (trying to install/upgrade)

Following the upgrade instructions at http://www.mantisbt.org/docs/master/en- ... ll.upgrade and running into a problem. It says to copy the config_inc.php file into the NEW config directory, however that causes an error because of these lines in the config file:

Code: Select all

   /** * path to your installation as seen from the web browser
	 * requires trailing /
	 * @global string $g_path 	 */
	$g_path	= $t_protocol . '://' . $t_host . $t_path;
	/** 	 * path to your images directory (for icons)
	 * requires trailing /
	 * @global string $g_icon_path 	 */
	$g_icon_path			= '%path%images/';
	/** 	 * Short web path without the domain name
	 * requires trailing /
	 * @global string $g_short_path 	 */
	$g_short_path			= $t_path;
	/** 	 * absolute path to your installation.  Requires trailing / or \
	 * @global string $g_absolute_path 	 */
	$g_absolute_path		= dirname( __FILE__ ) . DIRECTORY_SEPARATOR;
   /** 	 * absolute patch to your core files. The default is usually OK,
	 * unless you moved the 'core' directory out of your webroot (recommended).
	 * @global string $g_core_path 	 */
	$g_core_path			= $g_absolute_path . 'core' . DIRECTORY_SEPARATOR;
	/** 	 * absolute path to class files.  Requires trailing / or \
	 * @global string $g_class_path 	 */
	$g_class_path			= $g_core_path . 'classes' . DIRECTORY_SEPARATOR;
I did not move any of the directories from their defaults.
When the new version reads this config file (which used to reside in the base program directory) it assumes it is still in that location because of the concatenation and gets the wrong path to the core and classes files. So I moved the config file out of the config directory and into the base program directory which got me the admin setup screen, but then this error (see screenshot). What do I do now?
Attachments
mantis-inst-ss1.jpg
mantis-inst-ss1.jpg (126.87 KiB) Viewed 2311 times
mushu
Posts: 349
Joined: 04 Jan 2017, 17:41

Re: error upgrading 1.3.5 to 2.5.1

Post by mushu »

So, I renamed the old config file I copied over, then proceeded with the "upgrade" which acted, of course, like a new install. Now I will go through and edit the config files and update all of the new settings to my old settings. I had to use the existing database settings but it seemed to work. I'd suggest updating the upgrade instructions webpage to either say you cannot just copy over your config file and move it into the config directory, or else find the bug in the installer code and fix it.
Post Reply