Jump to content


Click here to lend your support to: Traq and make a donation at pledgie.com !
Photo

How can I upgrade from 2.3 to 3.6 ?

upgrade

  • Please log in to reply
10 replies to this topic

#1 nkeseci

nkeseci

    Member

  • Members
  • PipPip
  • 13 posts

Posted 28 July 2016 - 06:32 PM

Hi!

 

I know I'm late to upgrade.

 

I want to upgrade my old 2.3 to the last version. Is there any step by step instruction and links for necessary files?

 

Thanks,



#2 Jack

Jack

    Project Founder

  • Administrators
  • 673 posts
  • LocationAustralia

Posted 30 July 2016 - 02:51 AM

The process to upgrade from 2.x to 3.x is rather tricky, it's mostly because 2.x is old, but it can be done.

 

In order to upgrade from 2.3 to 3.6 you will need to upgrade to Traq 2.4.1 then migrate to Traq 3.0 and then upgrade to Traq 3.6

 

Once you have upgraded to Traq 2.4.1 and downloaded and extracted the files Traq 3.0, run the migration script in the browser, here's a guide step by step guide:

# Upgrade to Traq 2.4.1
# First extract the files and setup the config file then head to:
http://your.site/path/to/traq2.4.1/install/upgrade.php

# Migrate to Traq 3.0
# Extract the files and setup the config file and head to:
http://your.site/path/to/traq3.0/install/migrate.php

# Upgrade to Traq 3.6
# Extract the files and setup the config file and head to:
http://your.site/path/to/traq3.6/install/upgrade.php



#3 nkeseci

nkeseci

    Member

  • Members
  • PipPip
  • 13 posts

Posted 02 August 2016 - 11:31 AM

Hi!

 

Thank you for your response.

 

Upgrade to Traq 2.4.1 is done without problem.

 

But I have following error while Migrating to Traq 3.0 :

 

Warning: require(/home/mysite/public_html/traq/vendor/avalon/autoloader.php): failed to open stream: No such file or directory in /home/mysite/public_html/traq/install/bootstrap.php on line 24

Fatal error: require(): Failed opening required '/home/mysite/public_html/traq/vendor/avalon/autoloader.php' (include_path='.:/opt/php55/lib/php') in /home/mysite/public_html/traq/install/bootstrap.php on line 24

 

--

P.S. /home/mysite/public_html/traq/vendor/avalon folder is empty!



#4 nkeseci

nkeseci

    Member

  • Members
  • PipPip
  • 13 posts

Posted 03 August 2016 - 11:54 AM

I'm trying to figure out the problem.

 

Working 2.4.1 database and files backup has been taken. Traq 3.0 files extracted on the working 2.4.1 files.

 

I downloaded Avalon framework from https://github.com/nirix/avalonand extracted in /home/mysite/public_html/traq/vendor/avalon/ directory.

 

/home/mysite/public_html/traq/vendor/traq/config/database.default.php file has renamed to database.php and configured.

 

Migration successfully completed after running .../install/migrate.phpbut does not display expected. Database seems to be ok, I'm not sure. Is it possible that Avalon was incorrectly installed or configured?

 

 

After ../install/migrate.php, I get this :

Migration Completed
You may now login.

after login (without error) only this screen comes:

* Login
* Register

Traq 

* Projects

Powered by Traq 3.0 © 2009-2016 Traq.io

None of the above links does work. Any idea?

 

I would be appreciate for your support.



#5 Jack

Jack

    Project Founder

  • Administrators
  • 673 posts
  • LocationAustralia

Posted 04 August 2016 - 08:38 AM

Oh, sorry. I had forgotten the GitHub archives I linked didn't include the Avalon submodule. I'll have to fix that when I get some time.

 

As for the links not working, renaming "htaccess.txt" to ".htaccess" should fix that.

 

If there are any other issues, try cloning the git repository and checking out the version you need and pulling in the submodule(s) like so:

git clone https://github.com/nirix/traq.git
git checkout v3.0
git submodule init
git submodule update
cp htaccess.txt .htaccess


#6 nkeseci

nkeseci

    Member

  • Members
  • PipPip
  • 13 posts

Posted 05 August 2016 - 09:26 AM

Great! 3.0 is working well with the followings:

git clone https://github.com/nirix/traq.git
cd traq
git checkout v3.0
git submodule init
git submodule update
cp htaccess.txt .htaccess

Many thanks..

 

İts time to upgrade to 3.6. :)



#7 nkeseci

nkeseci

    Member

  • Members
  • PipPip
  • 13 posts

Posted 05 August 2016 - 10:52 AM

After the successful upgrade from 3.0 to 3.6, the results again like the previous one, unfortunately.

 

In addition, I tried 3.7 instead of 3.6. The result is the same.

Database seems to be ok.

* Login
Traq 

* My Project1
* My Project 2

* Projects

Powered by Traq 3.7.0 © 2009-2016 Traq.io

Is there any other instruction can be forgotten? or any ather idea?



#8 Jack

Jack

    Project Founder

  • Administrators
  • 673 posts
  • LocationAustralia

Posted 06 August 2016 - 09:32 AM

So the CSS isn't being applied to the page?



#9 nkeseci

nkeseci

    Member

  • Members
  • PipPip
  • 13 posts

Posted 07 August 2016 - 03:25 PM

How can I fix the issue?



#10 Jack

Jack

    Project Founder

  • Administrators
  • 673 posts
  • LocationAustralia

Posted 08 August 2016 - 09:52 AM

Make sure the "htaccess.txt" file has been copied to ".htaccess" then try to login and go to the Settings page in the AdminCP and set the theme.



#11 nkeseci

nkeseci

    Member

  • Members
  • PipPip
  • 13 posts

Posted 09 August 2016 - 03:58 PM

I had already copied "htaccess.txt" to ".htaccess".

 

I noticed that error_log file has following error:

[~/public_html/traq]# tail  error_log
[09-Aug-2016 10:28:56 America/Chicago] PHP Fatal error:  Call to undefined method avalon\http\Request::init() in /home/mysite/public_html/traq/css.php on line 39

I tried to download avalon again:

[~/public_html/traq/vendor/avalon]# git clone https://github.com/nirix/avalon.git

now everything is working properly :)

 

Thank you for your effort!





Also tagged with one or more of these keywords: upgrade

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users