Page 1 of 1
Error to Update 2.1.0 - Need Help
Posted: 31 Jan 2017, 18:19
by benjaminrc78
Hi.
I try to update a old Mantis to the new 2.1.0
I do it all steps and when install give me this error:
An this when try to enter (in spanish):
What I do it Wrong ?????
Re: Error to Update 2.1.0 - Need Help
Posted: 31 Jan 2017, 19:11
by atrol
benjaminrc78 wrote:
What I do it Wrong ?????
Hard to say as you did not provide that much information.
E.g.version of your old Mantis, operation system, PHP, web server, database.
Step by step instructions of what you did.
Did you
exactly follow those steps
https://mantisbt.org/docs/master/en-US/ ... ll.upgrade
Re: Error to Update 2.1.0 - Need Help
Posted: 31 Jan 2017, 22:05
by benjaminrc78
atrol wrote:benjaminrc78 wrote:
What I do it Wrong ?????
Hard to say as you did not provide that much information.
E.g.version of your old Mantis, operation system, PHP, web server, database.
Step by step instructions of what you did.
Did you
exactly follow those steps
https://mantisbt.org/docs/master/en-US/ ... ll.upgrade
Hi,
Yes I use the guide.
The version of mantis don´t know exactly what is (where can see?)
I use a linux
Apache Version 2.2.29
PHP Version 5.3.29
MySQL Version 5.6.26-cll-lve
I download and unzip in new directory. Then install and give the user and database of older Mantis, and show me error !!
Re: Error to Update 2.1.0 - Need Help
Posted: 01 Feb 2017, 09:22
by atrol
benjaminrc78 wrote:
The version of mantis don´t know exactly what is (where can see?)
Goto page "Manage" where you see the MantisBT Version and the database schema version.
In case your instance is no longer running, check file core/constant_inc.php of your old installation.
There is something like
Code: Select all
define( 'MANTIS_VERSION', '1.2.20' );
benjaminrc78 wrote:
I download and unzip in new directory.
Did you execute step "3 Copy the configuration files" after unzipping?
https://mantisbt.org/docs/master/en-US/ ... ll.upgrade
benjaminrc78 wrote:
PHP Version 5.3.29
Not supported, see
https://mantisbt.org/docs/master/en-US/ ... e.versions
Re: Error to Update 2.1.0 - Need Help
Posted: 01 Feb 2017, 09:51
by benjaminrc78
atrol wrote:.Goto page "Manage" where you see the MantisBT Version and the database schema version.
In case your instance is no longer running, check file core/constant_inc.php of your old installation.
There is something like
Code: Select all
define( 'MANTIS_VERSION', '1.2.20' );
MANTIS_VERSION - 1.1.2
Yes
But Works good, only have a database problem I think !!!
Now I can change somethings and show me that.
and when Try Login
Thanks
Re: Error to Update 2.1.0 - Need Help
Posted: 01 Feb 2017, 11:15
by atrol
There is a database table mantis_config_table.
Which value do you see where config_id is "database_version"?
Re: Error to Update 2.1.0 - Need Help
Posted: 01 Feb 2017, 11:22
by benjaminrc78
atrol wrote:There is a database table mantis_config_table.
Which value do you see where config_id is "database_version"?

Re: Error to Update 2.1.0 - Need Help
Posted: 01 Feb 2017, 12:48
by atrol
There must be an entry for config_id "database_version" in database table mantis_config_table before starting the upgrade.
Value should have been 63 if your old Mantis version was 1.1.2.
Re: Error to Update 2.1.0 - Need Help
Posted: 01 Feb 2017, 14:09
by benjaminrc78
atrol wrote:There must be an entry for config_id "database_version" in database table mantis_config_table before starting the upgrade.
Value should have been 63 if your old Mantis version was 1.1.2.
No have this value !!
The 1.1.2 works good and not have this value !!!
Re: Error to Update 2.1.0 - Need Help
Posted: 01 Feb 2017, 14:16
by atrol
It's quite obvious that someone manipulated your database.
Re: Error to Update 2.1.0 - Need Help
Posted: 01 Feb 2017, 14:21
by benjaminrc78
atrol wrote:It's quite obvious that someone manipulated your database.
Is not posible that the versión no have this value ?
The database is not manipulated, I´m sure !
And version 1.2.1 works good. Is online until more than 2-3 years and works good.
But if I lack that value I can put it directly .. but would that solve the problem?
A lot of thanks for your time

Re: Error to Update 2.1.0 - Need Help
Posted: 01 Feb 2017, 19:34
by atrol
benjaminrc78 wrote:Is not posible that the versión no have this value ?
It's not possible if your database has been created by the Mantis installation process.
It's possible if your database has been created by some other tool, e.g. this guy converted from bugzilla and got a similar issue.
http://www.mantisbt.org/bugs/view.php?id=9378
benjaminrc78 wrote:And version 1.2.1 works good.
1.2.1? You wrote 1.1.2 before.
It's important to know the right version, as the value for database_version in case of 1.2.1 would be 183.
benjaminrc78 wrote:Is online until more than 2-3 years and works good.
Does not astonish me, as database_version entry is not needed during runtime, just for upgrade.
benjaminrc78 wrote:
But if I lack that value I can put it directly .. but would that solve the problem?
It might solve the problem if you enter the value
before starting the upgrade.
Re: Error to Update 2.1.0 - Need Help
Posted: 02 Feb 2017, 11:16
by benjaminrc78
I dont know, but my database not have this value and works all good.
What need to alter to have the value and what value ?
The version is 1.1.2 in core/constant_inc.php
I remember that is possible that one time do a update but not remember.
I want to try update if you say me what I need to put.
Otherwise, will install as a new install and try to export data directly in mysql !
A lot of thanks.