News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Upgrade to 2.x and move to root level

Started by jstop, January 06, 2016, 07:46:38 PM

Previous topic - Next topic

jstop

My current SMF forum 1.1.21 is in a sub folder(kifourwheelers.com/forum), I want to upgrade to version 2.0 and place in the root level (http://www.kifourwheelers.com), What kind of issues will I run into?
Website admin for
-------------------------------------------------
http://bridgestonemotorcycleparts.com
http://www.6x6talk.com

Sir Osis of Liver

Upload the large upgrade package to root, copy your Settings.php from sub to root, run upgrade.php in root, run repair_settings.php in root.  You will have to reinstall 2.0 versions of themes and mods.
Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

Kindred

Ummm... No.

Upgrade in place.
THEN move the files and run repair_settings.php
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Sir Osis of Liver

Should work either way, shouldn't it, as long as Settings.php connects new root install to existing database?  Saves step of moving files, and eliminates any junk in old install.
Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

Kindred

If you move the files and run upgrade before running the repair, then it will be screwed up
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Sir Osis of Liver

Ok, just tried it.  Had the right idea, just the wrong order.  This works -

- Upload 2.0.11 large upgrade package to root.
- Copy Settings.php and Settings_bak.php from sub to root.
- Run repair_settings.php in root.
- Run upgrade.php in root.
- Reinstall 2.0 versions of themes and mods.

This method results in a clean 2.0.11 install, with no crap carried over from old sub install.
Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

jstop

Website admin for
-------------------------------------------------
http://bridgestonemotorcycleparts.com
http://www.6x6talk.com

Sir Osis of Liver

Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

Illori

actually you need to run repair_settings with the 1.1.* files first before you upload the 2.0 files and run upgrade.php otherwise not all the paths will get corrected.

Sir Osis of Liver

The object is to create a clean install in the root, and not use the old 1.1.21 files at all.  What would be the point in uploading the old files to new directory, running repair_settings.php, then uploading 2.0.11 upgrade package, and running upgrade.php?  Just extra work, and you end up with garbage from the old install in the new one.  You still have to copy over attachments and avatars, and possibly fix some minor paths (like smileys?), but you have a clean install when you're done. 
Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

Illori

repair_settings.php has to find the correct entries in the database for the theme paths etc, these may have had their names changed between SMF 1.1 and SMF 2.0. if they did change they need to fix the paths before running upgrade.php so the paths are correct.

Sir Osis of Liver

Curve works fine after the upgrade using my method.  Other themes are irrelevant when going from 1.1.x to 2.0.x, and they constitute much of the garbage that will be carried over from old to new if you start out with the 1.1.x files.

Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

Kindred

I tend to disagree with your method and prefer to do one step at a time in the correct order -- Using your method, the user may encounter an issue and we won't know whether the issue was with the move or the upgrade.

-- The contents should either be moved (and repair_settings.php used)
-- then confirmed that the move resulted in a working forum
-- and then, the upgrade done
-- and lastly, confirm that the upgrade was successful and the forum works
or
-- The upgrade should be done IN PLACE
-- confirm that the upgrade was successful and the forum works
-- and then the move can be done (and repair_settings.php used)
-- and lastly, confirm that the move resulted in a working forum

there are 4 main steps

and, although you can switch the order as shown above, the steps SHOULD NOT be combined...
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Sir Osis of Liver

Using either of your methods, you end up with a new install containing all the old crap that accumulates over years in any production forum.  I prefer to do a clean install, it's simpler and works fine.
Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

Illori

Quote from: Sir Osis of Liver on January 07, 2016, 02:47:02 PM
Using either of your methods, you end up with a new install containing all the old crap that accumulates over years in any production forum.  I prefer to do a clean install, it's simpler and works fine.


you will end up uploading the clean set of files from the large upgrade package, that will clean up a lot of that anyway. either way they need to run repair_settings.php with the old files in place, so the correct paths do end up getting corrected. go ahead test it out with a 1.1 forum that is moved, not just a 2.0 forum that you move. if the op wants they can delete the Themes and Sources folders to clean things before uploading the new files if they really want to make the old junk has been removed.

Sir Osis of Liver

I did test it with a new 2.0 install in an empty directory, using the procedure I outlined above, and it worked fine.  Did not use any of the old 1.1.21 files.  Clean install, database updated successfully, no path problems.
Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

Illori

that is the issue, you did not test what the OP has to do. the tables and the contents of them has changed between 1.1 and 2.0, that is why repair_settings.php has to be run with the 1.1 files in place so it knows what it is looking for to fix the paths.

jstop

I did this:

- Upload 2.0.11 large upgrade package to root.
- Copy Settings.php and Settings_bak.php from sub to root.
- Run repair_settings.php in root.
- Run upgrade.php in root.

But now my attachments and avatars don't show up, I copied the avatars and attachments to the new install but it did not work. the rest of the site is fine.
Any Ideas?

Jim
Website admin for
-------------------------------------------------
http://bridgestonemotorcycleparts.com
http://www.6x6talk.com

Kindred

we have been telling you why it was not a good idea to do it in the shorter step method.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Sir Osis of Liver

Admin -> Attachments and Avatars  Just fix the paths for each in settings.  You may also have to reset paths in Admin -> Smileys and Message Icons.
Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

Illori

Quote from: jstop on January 08, 2016, 08:02:21 PM
But now my attachments and avatars don't show up, I copied the avatars and attachments to the new install but it did not work. the rest of the site is fine.

you did not move your attachments and avatars folder over did you?

jstop

It was too late, I did it the way that was posted already. I checked the paths, they are correct.
Website admin for
-------------------------------------------------
http://bridgestonemotorcycleparts.com
http://www.6x6talk.com

jstop

Quote from: Illori on January 09, 2016, 08:42:34 AM
Quote from: jstop on January 08, 2016, 08:02:21 PM
But now my attachments and avatars don't show up, I copied the avatars and attachments to the new install but it did not work. the rest of the site is fine.

you did not move your attachments and avatars folder over did you?


Yes, I moved the attachments and avatar folders also.
Website admin for
-------------------------------------------------
http://bridgestonemotorcycleparts.com
http://www.6x6talk.com

Sir Osis of Liver

Sorry to leave you hanging, mope, Sir Osis has been unwell.  If you haven't fixed this, would need to know how you moved attachments and avatars to new install.
Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

Advertisement: