Guest Posted October 21, 2005 Share Posted October 21, 2005 Hey everybody, this doing each individual step thing is quite the pain for those people who still have 3.0.0 available to them in Fantastico, etc. So what I've done is write up an update.php version that will update your database from any existing version to the current. You then simply upload the files to your web server and you're good to go. (skipping the global.inc.php and home.inc.php files of course) To help that, I even pull the contents of the global.inc.php for you and display them so you're sure to have an accurate copy in case you overwrite it. And, since this file shows priviledged database access info, it is password protected. When you execute it, you simply use your superuser admin id and it will do the rest. Of course make sure you have a backup of everything, but I did a 3.0.0 to 3.0.5 upgrade tonight in one step. It was very nice. This of course only works with non-modded stores, but hey, that's still a LOT of people. And without further adieu, here's the download link: http://www.swscripts.com/downloads/upgrade.zip Download link fixed -- Thanks Homer! Quote Link to comment Share on other sites More sharing options...
Guest Posted October 21, 2005 Share Posted October 21, 2005 Sorry guys, I had the download link messed up. It's all fixed now thanks to a note from evilhomer. :) Quote Link to comment Share on other sites More sharing options...
Guest theorbo Posted October 21, 2005 Share Posted October 21, 2005 Wow! That's great - I've been putting off doing 3.0.4 - 3.0.5.... Thanks! Quote Link to comment Share on other sites More sharing options...
Guest Posted October 21, 2005 Share Posted October 21, 2005 Keep in mind, you still need to protect your global.inc.php and /language/XX/home.inc.php but other than that, just run this on the database and upload the new files. Oh, don't bother to re-upload the skins or /pear if you don't just have to. There are no changes in them and they'll just waste your time. :w00t: Quote Link to comment Share on other sites More sharing options...
Guest theorbo Posted October 21, 2005 Share Posted October 21, 2005 Good to know. I have a bunch of backup folders, just in case, but that info definitely helps. Quote Link to comment Share on other sites More sharing options...
Guest maxxtraxx Posted October 25, 2005 Share Posted October 25, 2005 what about from v2 to v3.0.5? hey, you said "any" version...... Quote Link to comment Share on other sites More sharing options...
Guest Posted October 26, 2005 Share Posted October 26, 2005 Not yet max. While I am slowly cooking up a complete V2 to V3 update utility, it's not ready yet. Still working out all the database translations. WooHoo... B) Quote Link to comment Share on other sites More sharing options...
Guest maxxtraxx Posted October 27, 2005 Share Posted October 27, 2005 right on, right on! ;) Quote Link to comment Share on other sites More sharing options...
Guest Posted October 28, 2005 Share Posted October 28, 2005 Sir William: Will this work upgrading from 2.x version to the latest 3.x version? Frank Quote Link to comment Share on other sites More sharing options...
Guest idara Posted October 28, 2005 Share Posted October 28, 2005 Not yet max. While I am slowly cooking up a complete V2 to V3 update utility, it's not ready yet. Still working out all the database translations. WooHoo... @fswica This is what Sir William said above to your question ;) Quote Link to comment Share on other sites More sharing options...
Guest intro2 Posted October 29, 2005 Share Posted October 29, 2005 I'm trying to upgrade from v3.0.2 to 3.0.5 I've tried running your upgrade.php script but when I enter my username and password I just keep getting it rejected. I've tried using my cubecart admin username and password combination, and I've even tried using my sever superadmin combo but I still cant get it to work. Has anyone else ran into this problem? Has anyone else got ideas on how I can deal with this? Quote Link to comment Share on other sites More sharing options...
Guest Posted October 30, 2005 Share Posted October 30, 2005 The only way I can think of that it would fail would be if you uploaded it to the wrong place on your server. It has to be uploaded to the root directory of your store. That may be the root of your domain or yourdomain.com/store or whatever, but it has to be in the store's root directory. ;) Quote Link to comment Share on other sites More sharing options...
Guest idara Posted October 30, 2005 Share Posted October 30, 2005 Hi Sir William Me too got this problem with the universal updater, while updating my store from v3.0.4 to v3.0.5, I uploaded the upgrade.php in my store root directory (mydomain.com/store). I replaced it with the original upgrade script (3.0.4-3.0.5) that worked fine Yunus Quote Link to comment Share on other sites More sharing options...
Guest intro2 Posted October 30, 2005 Share Posted October 30, 2005 Hi Sir William, I have uploaded the script to the correct folder. I get the Apache popup box for me to input my username and password, that your upgrade.php script initiates. If the script wasn't in the root folder I would be getting an error page telling me that the file does not exist. It still has me stumpt. Help... Quote Link to comment Share on other sites More sharing options...
Guest Posted November 1, 2005 Share Posted November 1, 2005 So far, I've not been able to not get it to work. The user/pass you use should be the FIRST admin user in the database. If it's still not working right, then contact me privately and we'll work out what the problem is. I can add in some debugging info to your copy and we'll see what it's seeing and what it's not. :w00t: Quote Link to comment Share on other sites More sharing options...
Guest Posted November 10, 2005 Share Posted November 10, 2005 Did anyone figure this out, I'm having the username/password problem. Jen Quote Link to comment Share on other sites More sharing options...
Guest daleross Posted November 10, 2005 Share Posted November 10, 2005 Hey everybody, this doing each individual step thing is quite the pain for those people who still have 3.0.0 available to them in Fantastico, etc. So what I've done is write up an update.php version that will update your database from any existing version to the current. You then simply upload the files to your web server and you're good to go. (skipping the global.inc.php and home.inc.php files of course) To help that, I even pull the contents of the global.inc.php for you and display them so you're sure to have an accurate copy in case you overwrite it. And, since this file shows priviledged database access info, it is password protected. When you execute it, you simply use your superuser admin id and it will do the rest. Of course make sure you have a backup of everything, but I did a 3.0.0 to 3.0.5 upgrade tonight in one step. It was very nice. This of course only works with non-modded stores, but hey, that's still a LOT of people. And without further adieu, here's the download link: http://www.swscripts.com/downloads/upgrade.zip Download link fixed -- Thanks Homer! will this work for the upgrade to 3.06 too? Thanks, Dale Quote Link to comment Share on other sites More sharing options...
Guest Posted November 10, 2005 Share Posted November 10, 2005 Ok, the authentication has now been fixed to run on any system. The script now takes your database to 3.0.6 specs. But be aware, there is next to no database difference between 3.0.5 and 3.0.6. The only thing changed is allowing 3 decimal digits in the weight field of the database. I've already updated the download file on my site. So feel free to grab it. Thanks so much to Jen from Grassmeyer Design for letting me use one of her sites as a guinea pig. I'll probably close this thread and start a new one. FYI http://www.swscripts.com/downloads/upgrade.zip :unsure: Quote Link to comment Share on other sites More sharing options...
Guest Posted November 10, 2005 Share Posted November 10, 2005 You're welcome, thanks for writing such a great script! Jen Quote Link to comment Share on other sites More sharing options...
Guest Denver Dave Posted November 14, 2005 Share Posted November 14, 2005 Haven't used it yet, but great idea. If you have new versions of the upgrade.zip file, you might place version numbers or something, so we know we have the latest upgrade script. I assumed cubecart would handle this minor multi version updates and I would have been wrong. Thanks !! Quote Link to comment Share on other sites More sharing options...
Guest Posted November 15, 2005 Share Posted November 15, 2005 Well, you can trust that I'll update it within 24-48 hours max of Brooky's releases. But I'll probably setup a page specifically for it on my site. Or....Brooky will incorporate it into the next release code and we won't have to worry about it anymore. As for your other question about the extra version of 3.0.6, there was one variable changed in one file to fix a bug I found. The original flawed version was out for less than 12 hours before it was patched. If you can login to your Admin Control Panel, you're ok. Have fun! :) Quote Link to comment Share on other sites More sharing options...
Guest estelle Posted November 15, 2005 Share Posted November 15, 2005 Sir Will, has anyone reported problems of a valid "super user" username & password not working? I tried to use similar Admin authentication code into a database upgrade utility for one of my next mods, and it worked fine for me but not for my client. I looked it up in the php manual and tried changing the $PHP_WHATEVER to $_SERVER['PHP_WHATEVER'], but it still didn't work. Any idea if the problem could be because my client is using a subdomain? Anyway, its not a big deal. Would be nice if i could get it to work though, cause I've added an Uninstall option to my upgrade utility! ;) Quote Link to comment Share on other sites More sharing options...
Guest Posted November 15, 2005 Share Posted November 15, 2005 Estelle, I tried to do it the way you're talking about by using traditional HTTP_AUTH, but due to version and configuration differences between PHP installations on different servers, it won't work consistently. So what I did is use a simple form, take the login credentials, compare against the admin database, then set a custom admin session cookie. Then if the cookie is present, allow access to the rest of the script. No biggie. Have fun! ;) Quote Link to comment Share on other sites More sharing options...
Guest imitccom Posted November 18, 2005 Share Posted November 18, 2005 What am I doing wrong?? It is not working for me... I have 3.04 and want to upgrade to 3.06. Is there a special folder i need to put it in or something? i was able to upgrade b 4 but now it is not working.... help... thank you!! imitccom Quote Link to comment Share on other sites More sharing options...
Guest Posted November 18, 2005 Share Posted November 18, 2005 You simply put the upgrade.php file (extracted from the .zip file) into the root directory of your store. You then call that file, log in and then tell it to upgrade. It ONLY upgrades your database, you still need to upload the files, but it does all necessary database changes at once in one place so you don't have to do incremental upgrades with the different upgrade scripts. :whistle: Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.