Error to Update 2.1.0 - Need Help

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
benjaminrc78
Posts: 11
Joined: 02 Feb 2011, 09:32

Error to Update 2.1.0 - Need Help

Post 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:

Image

An this when try to enter (in spanish):

Image

What I do it Wrong ?????
atrol
Site Admin
Posts: 8555
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Error to Update 2.1.0 - Need Help

Post 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
Please use Search before posting and read the Manual
benjaminrc78
Posts: 11
Joined: 02 Feb 2011, 09:32

Re: Error to Update 2.1.0 - Need Help

Post 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 !!
atrol
Site Admin
Posts: 8555
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Error to Update 2.1.0 - Need Help

Post 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
Please use Search before posting and read the Manual
benjaminrc78
Posts: 11
Joined: 02 Feb 2011, 09:32

Re: Error to Update 2.1.0 - Need Help

Post 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
atrol wrote: Did you execute step "3 Copy the configuration files" after unzipping?
https://mantisbt.org/docs/master/en-US/ ... ll.upgrade
Yes
But Works good, only have a database problem I think !!!

Now I can change somethings and show me that.

Image

and when Try Login

Image

Thanks
atrol
Site Admin
Posts: 8555
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Error to Update 2.1.0 - Need Help

Post by atrol »

There is a database table mantis_config_table.
Which value do you see where config_id is "database_version"?
Please use Search before posting and read the Manual
benjaminrc78
Posts: 11
Joined: 02 Feb 2011, 09:32

Re: Error to Update 2.1.0 - Need Help

Post by benjaminrc78 »

atrol wrote:There is a database table mantis_config_table.
Which value do you see where config_id is "database_version"?
Image
atrol
Site Admin
Posts: 8555
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Error to Update 2.1.0 - Need Help

Post 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.
Please use Search before posting and read the Manual
benjaminrc78
Posts: 11
Joined: 02 Feb 2011, 09:32

Re: Error to Update 2.1.0 - Need Help

Post 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 !!!
atrol
Site Admin
Posts: 8555
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Error to Update 2.1.0 - Need Help

Post by atrol »

It's quite obvious that someone manipulated your database.
Please use Search before posting and read the Manual
benjaminrc78
Posts: 11
Joined: 02 Feb 2011, 09:32

Re: Error to Update 2.1.0 - Need Help

Post 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 :wink:
atrol
Site Admin
Posts: 8555
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Error to Update 2.1.0 - Need Help

Post 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.
Please use Search before posting and read the Manual
benjaminrc78
Posts: 11
Joined: 02 Feb 2011, 09:32

Re: Error to Update 2.1.0 - Need Help

Post 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.
Post Reply