Upgrade Mantis ?

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
khali91
Posts: 30
Joined: 12 Aug 2010, 14:04

Upgrade Mantis ?

Post by khali91 »

Hi,

I have an issue to upgrade MantisBT. In fact, I have Mantis v1.1.8 and I want to upgrade to Mantis 1.2.2. I follow the instructions of the Install file :
UPGRADING

* Backup your existing installation and database -- really!

* Extract the tarball into a clean directory; do not extract into an existing
installation, as some files have been moved or deleted between releases

* Point your browser to http://path/to/mantisbt/admin/check.php to ensure that
your webserver is compatible with MantisBT and configured correctly

* Copy your configuration from the old installation to the new directory,
including config_inc.php, custom_strings_inc.php, and
custom_constants_inc.php if they exist.

* Point your browser to http://path/to/mantisbt/admin/install.php to upgrade
the database schema

* Click install/upgrade

* Upgrading is complete
When I click on Upgrade, I have a message which says that upgrade is complete, but when I go to Mantis, it's always Mantis 1.1.8... :?:

Thank you for your help

Best regards.
atrol
Site Admin
Posts: 8536
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Upgrade Mantis ?

Post by atrol »

Did you rename the directory of your old version and created the new version in same directory that the old version was before?
Please use Search before posting and read the Manual
khali91
Posts: 30
Joined: 12 Aug 2010, 14:04

Re: Upgrade Mantis ?

Post by khali91 »

I have a directory named "mantis", it's my current config. I created a new directory named "mantis-1.2.2" and I dezip Mantis 1.2.2 here. But no, i don't rename the original directory.

So I must to rename the directory "mantis" and I put the files of Mantis 1.2.2 in this renamed directory ? So, I replace and delete the current config ?
atrol
Site Admin
Posts: 8536
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Upgrade Mantis ?

Post by atrol »

1. rename mantis to mantis_old
2. create an empty directory mantis
3. extract the contents of the new mantis 1.2.2 to the empty mantis directory
4. copy your old configuration (at least the file config_inc.php) from mantis_old to mantis
5. point your browser to mantis/admin/install.php
Please use Search before posting and read the Manual
khali91
Posts: 30
Joined: 12 Aug 2010, 14:04

Re: Upgrade Mantis ?

Post by khali91 »

Thank you for your help.
I do all what you say me. It's ok until I update Mantis. I click on "update Mantis" and i have a lot of errors messages in red about requests like that :
SYSTEM WARNING: htmlentities() expects parameter 1 to be string, array given
SYSTEM WARNING: Invalid argument supplied for foreach()
And, I have this message :
Your database has not been created yet. Please create the database, then install the tables and data using the information above before proceeding.
I click on "Continue" and I have this error :
APPLICATION ERROR #401

Échec de la requête de base de données. L'erreur renvoyée par la base de données était #1146 : Table 'bugtracker.mantis_category_table' doesn't exist pour la requête : SELECT c.*, p.name AS project_name FROM mantis_category_table AS c
LEFT JOIN mantis_project_table AS p
ON c.project_id=p.id
WHERE project_id=0
ORDER BY c.name .
It's about the database but my databade is created and I don't touch it...
khali91
Posts: 30
Joined: 12 Aug 2010, 14:04

Re: Upgrade Mantis ?

Post by khali91 »

Sorry, finally, work it. I don't select this option
Print SQL Queries instead of Writing to the Database
and it's ok, I access to Mantis 1.2.2.

Thank you very much for your fast help. :)
atrol
Site Admin
Posts: 8536
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Upgrade Mantis ?

Post by atrol »

khali91 wrote: SYSTEM WARNING: htmlentities() expects parameter 1 to be string, array given
SYSTEM WARNING: Invalid argument supplied for foreach()
This is a known bug which was fixed today.
http://www.mantisbt.org/bugs/view.php?id=11364

Have fun with your updated version.
Please use Search before posting and read the Manual
Post Reply