Closed (fixed)
Project:
Ubercart
Version:
6.x-2.x-dev
Component:
Documentation
Priority:
Critical
Category:
Task
Assigned:
Issue tags:
Reporter:
Created:
16 Dec 2008 at 23:13 UTC
Updated:
2 Jan 2014 at 23:45 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
cha0s commentedGot a snapshot of the livetest going, but I'm having some (non Ubercart-related) problems getting it updated to Drupal 6. Posting updates here!
Comment #2
cha0s commentedAlright, I got the livetest upgraded to Drupal 6. The upgrade process was not automatic, there was some fiddling that had to be done in order to make it work. I will outline the steps I had to take to get this working here.
like cp -rp sites/ files/ ../backup/
With your files directory though, you're going to want to ensure that wherever you had it configured at before, you put it in the exact same spot. Drupal is going to update and look for it in the same spot, so make sure you do this. It was a source of a lot of headaches for me during this process.
Click 'Continue', then click 'Update'. If this process fails there is a serious problem with your Drupal site. I have never encountered this, so you'd be better off asking in the proper channels.
Alright! So at this point you should (God-willing! :D) have a site up that resembles your old site, but it's in Drupal 6 now... On to a couple of tweaks needed for Ubercart...
In Linux you can do something like chmod -R 0777 files/ to make files/ (recursively, meaning all its sub directories as well) world-writeable. I put www-data in the same group as the owner of these files, so I make mine 0775, but you may find that isn't possible with your setup. If you want, try it, and if it doesn't work, make it fully world-writeable (is this a security issue..?)
Great, hopefully at this point you have an Ubercart site that is working in Drupal 6 now! The only thing that might be sketchy as of now are things like custom workflow stuff, unfortunately I don't have enough experience with that to be able to offer any tips. Bug Ryan... ;)
P.S. Remember that if you set $update_free_access = TRUE; in settings.php, to change TRUE back to FALSE. Seriously, or puppies will eat your firstborn goldfish.
Comment #3
cha0s commentedI have attached a patch that will automate the imagecache migration aspect. Once this is in core, there will be no need to do the step of visiting admin/store to do the imagecache configuration again, nor hacking the db to set the widget_active's to TRUE (1).
Comment #4
Island Usurper commentedJust committed a different update 6004, so this will need a reroll.
Comment #5
cha0s commentedRerolled.
Comment #6
cha0s commentedComment #7
Island Usurper commentedThe widget_active stuff has to do with the complex updates that CCK does. Basically, CCK requires all of the field modules to be enabled before they all can perform their updates. I think when that happens, widget_active gets set to 1, so those fields become usable again. I did an upgrade and then ran update.php again after enabling filefield and imagefield, and imagecache worked fine without the patch or mucking around in the database.
The only error I got during the upgrade pertaining to Ubercart was the one from the uc_roles_products model index. That code was to fix people who had early versions of the 6.x branch, but not those upgrading from 5.x now. I think that update can go away, since the index name doesn't really matter for those few people still on that old dev version.
There's still no upgrade path from workflow-ng to conditional actions. Well, there kind of is, but it hasn't been tested yet.
I think the long post would make a good handbook page, with a few changes. Make sure to mention how important it is to upgrade to ImageCache 5.x-2.x first, and then start the Drupal upgrade. I've had to start over several times because I kept forgetting that.
Comment #8
Island Usurper commentedI've fixed the uc_roles index update, so now we just need to put this into a handbook page and work on converting workflow-ng configurations to CA. I'll make a separate issue for that, and repurpose this one for documentation.
Edit: See #384652: Convert Workflow-ng configurations into CA predicates during upgrade to D6
Comment #9
Island Usurper commentedTagged: update
Comment #10
cha0s commentedGot the book page started up at http://www.ubercart.org/docs/general/9410/upgrading_ubercart_drupal_5_dr.... Feel free to suggest any changes here, I may have missed something, but I removed the ImageCache and widget_active stuff, since I think I was just screwing up for that to be necessary.
Should we close this issue now and focus on the workflow-ng configuration issue?
Comment #11
Island Usurper commentedYep. That's what we'll do.