upgrade when you've got many mods installed

Started by Harro, June 09, 2005, 07:27:57 PM

Previous topic - Next topic

Harro

As far as I know, you loose all mods when you use the upgrade.
So my question is:
will there ever be a mod-like upgrade package that allows you do upgrade everything manual, just like installing a mod manual.
I know that phpBB has this, but it would be great if SMF would also get this.
Cuz for the moment, I don't feel like installing all my mods again, just to upgrade to 1.0.4 , and maybe in a few weeks again to 1.1

Oldiesmann

If you use the "patch" in the package manager (go to the package manager and read the entire page... You should see some stuff at the top about a patch), you shouldn't run into any problems as that will make the appropriate changes directly to the files instead of just replacing the files.

When you decide to upgrade to 1.1 (either by becoming a charter member or when the public beta is released), you will have to live without your mods for a bit or wait a little while to upgrade, because there are so many changes in 1.1 that it is unlikely many mods from 1.0.x would work with 1.1 without some changes.

Harro

Problem is that I can't use the package manager due to safemod restrictions.
And I did try the tool that somebody posted here. Didn't work for me.

Somebody did gave me a tip how I could solve this problem, but it's not sure that that would work, and I still have to learn a little more php for that :p

Oldiesmann


Harro

I'll take a look at that. thanks  :)

btw, sollution he gave me was to write a script to change the permissions using this
http://be2.php.net/system
Still have to try that though.
Will probably be something after my exams are over.

Oldiesmann

Yeah, you could do that, but you would have to run that every time you download a new package and/or theme... open_basedir makes it so you don't really need to have safe mode enabled in the first place (open_basedir prevents PHP from opening files or directories that are located outside of the specified directories).

Grudge

Also Harro, if you do want to install the update manually simply download the "package" update:

mods.simplemachines.org/downloads/smf_1-0-4_package.tar.gz

Extract it onto your own PC and make the changes documented in the .mod file. .mod files are *very* easy to understand.
I'm only a half geek really...

Harro

Woohoo, thanks!
That was exactly what I was looking for :)
But this file isn't included in the regular zip file is it?
Cuz I looked there, but couldn't find it.
But thanks, Now I can start upgrading (and hopefully won't mess up any of the mods).

Grudge

No, this file is a "special" file which is only for use with the package manager. The files on the download page here are for "full" upgrades (Where you lose your mods and need to reinstall them all), the package I linked to above is for the "patch" upgrade - which shouldn't affect other mods.
I'm only a half geek really...

Harro

I see..
Thanks for it, I'll start upgrading as soon as my exams are over ;)
Thanks for the help.

rbrown3rd

#10
I have a few mods in my style.css and a custom logo, not major mods but I do not want to lose them.  In my package manager I have the following:

Modification Packages
      Mod Name    Version     
1.    SMF 1.0.4 Update Package    1.0.4    [ Apply Mod ] [ List Files ] [ Delete ]

Can I just apply the mod?  Do I have to do anything in advance of applying the mod or is that it? 

Thanks.  I have never used the package manager so this is a bit new to me.

I used the "install patch" option on my other smaller and less used site and it worked perfectly.  I then tried it on my heavily used site that has thousands of users and is on a different server.  It returned the following:

2: fopen(): SAFE MODE Restriction in effect.

I have no idea what this means.

Bob

Harro

there are many topics about that error.
I also had it, and none of the ways to fix it worked for me.
So I installed the whole thing maually. Didn't take very long...

rbrown3rd

Thanks Harro.  I guess I am going to have to do that but I am concerned about losing all of my posts and user accounts as well as the few mods that I have made.  Do I use the upgrade package or the update package?  As I understand it if you have any mods you should use the upgrade package.   Upload all to the server overwriting the existing files, (man that scares me to death), and then run the upgrade script?  I suppose the script will give you some options to keep certain things as they are such as the style.css and any custom graphics?  I am being overly cautious because this particular site has a ton of users on it and I don't want to cause them any problems.

[Unknown]

The database contains all your important data.  If you're worried, just make a backup.  If anything happens, we can help you restore it.

Upload the upgrade package is the safest route, and only uninstalls your mods.  Everything else stays the same - your posts won't even notice.

You shouldn't change the default theme; if you haven't, uploading the new templates won't affect anything.

-[Unknown]

rbrown3rd

#14
That is encouraging and thanks for the offer of support.  SMF has served us well over at http://fs-freeflow.com/ and I am just being careful not to interupt the users.  the only changes I made were:

A color tweak in style.css and I have the backup for that.
A custom logo to replace smflogo.gif and I have a backup for that.

If you look at that site you will see that we are running it with MKPortal.  That makes a very nice combination.  We love SMF.  Thanks so much for contributing such a wonderful package to the online community.

Sorry for asking such basic questions but I am pretty new at administering a forum with a large number of users like this so I am being very careful. 

Thanks very much for your support,

Bob http://fs-freeflow.com/

PS..... because of the Safemod on situation I guess the package manager will not work for me at all on that particular site.  Right?

Harro

And if you want to keep your mods, download this:
mods.simplemachines.org/downloads/smf_1-0-4_package.tar.gz
And just do it all manually :)

rbrown3rd

#16
Quote from: Harro on June 17, 2005, 05:16:24 PM
And if you want to keep your mods, download this:
mods.simplemachines.org/downloads/smf_1-0-4_package.tar.gz
And just do it all manually :)
Wow, that is great.  Thanks so much.  I downloaded and unpacked the tar file.  In it I see two files, an XML file, and a Mod file.  I have them, what do I do now?  Sorry for such basic questions but this is my first upgrade.

Harro

You open the .mod file with notepad or something like that. and then just follow the instructions.
open files, search for certain parts of the file, and replace them, or add piece of code below it,...

rbrown3rd

Quote from: Harro on June 19, 2005, 03:14:10 AM
You open the .mod file with notepad or something like that. and then just follow the instructions.
open files, search for certain parts of the file, and replace them, or add piece of code below it,...
Great.  I understand and can handle that. 

rbrown3rd

Firstly, I downloaded and backed up my entire forum folder.  Then I went in and edited each of the following files by hand:

Quote$boarddir/changelog.txt
$boarddir/changelog-themes.txt
$boarddir/index.php
$sourcedir/Admin.php
$sourcedir/Subs.php
$themedir/Admin.template.php
$themedir/languages/Admin.english.php
$themedir/Profile.template.php

The results were less than satisfactory.  After doing the edits by following the actions in the MOD script to find text strings and replace or add new text my forum would not run.  I then uploaded each of the above files from my backup and I am back and running again.  Am I doing this correctly?  I am sure that doing it by hand I probably made an error somewhere.  I am going to do it again using a copy of the files I downloaded to backup the forum and then upload those into the correct location in my online folder. 

I think all of this would have been unnecessary had the provider I am using not had the Safemod on.  But, since the server and the provider are donated to me I cannot complain about it.  I will assume that I made a typo somewhere even though I was doing a copy and paste from the Mod script into the files. 

As support for my confidence would one of you SMF experts comment on my approach?

Thanks so much,

Bob

Advertisement: