Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I have had the problem since boa 2.1.1 and it persists in 2.1.3 that sites in the acquia ubercart platform cannot be migrated to upgraded ubercart platforms that an octopus upgrade provides - aegir doesn't even see the new platforms in the migration task, so the upgraded platforms cannot be chosen. The upgraded platform is shown as a valid platform in aegir, it's only the migration task that doesn't allow you to choose it. Is this problem correctly listed here on boa, or should I file a report with aegir or acquia ubercart platform?
Comments
Comment #1
Anonymous (not verified) CreditAttribution: Anonymous commentedIt seems the latest version boa 2.1.3 of the acquia ubercart platform can only be chosen under vanilla minimal, and all the former versions were vanilla standard. Is this the problem, and how to resolve?
Comment #2
omega8cc CreditAttribution: omega8cc commentedYeah, there is a problem if you have installed a site on Ubercart 3 platform when it used Standard D7 profile or acquia profile.
We had to move it to use Minimal, because we realized that if we will use Standard, it will never be possible to migrate any previously installed Ubercart site (which typically used acquia profile for legacy reasons), since Aegir already hardcodes the built-in upgrade path from D6 (default) to D7 (standard) and thus it is not possible (without hacking Provision) to provide upgrade path like acquia->standard or uberdrupal->standard etc.
Currently the hardcoded logic is as below:
Not sure how we could satisfy all conflicting legacy migration paths between profiles, so any suggestions are welcome.
Comment #3
Anonymous (not verified) CreditAttribution: Anonymous commentedAre you suggesting that I could make a temporary modification to that file, above, in order to transfer the acquia_ubercart d7 sites that used a standard profile to the current ubercart 7.24 platform which uses a minimal profile, by adding, or modifying:
elseif ($profile->name == 'minimal') {
$profile->info['old_short_name'] = 'acquia';
or
elseif ($profile->name == 'minimal') {
$profile->info['old_short_name'] = 'standard';
and run the migrate tasks, and then change that file back to its original values?
What is the path and name of that file, please?
Or do you think physically moving all a sites files to a newly-created directory in the new platform and then restoring the database backup (and of course modifying the sites.php file for each platform accordingly) would be the easier and surer way to get ubercart 7.23 (acquia or standard profile) sites to the recently updated 7.24 ubercart minimal profile platform?
Comment #4
mrP CreditAttribution: mrP commentedProbably the easiest thing is to just add
old_short_name = acquia
(orold_short_name = standard
depending on your site's current profile) to the new ubercart-3.5.1-7.24.1/profiles/minimal/minimal.info and re-verify.https://omega8.cc/migrate-sites-between-installation-profiles-111
Comment #5
omega8cc CreditAttribution: omega8cc commentedYeah, normally it should work like this. We have started to force/pre-define some pairs for
old_short_name
because you can setold_short_name
only when you have an access to the platform root, which is not the case with built-in platforms (unless you have a system root). This needs more work, though.Comment #6
omega8cc CreditAttribution: omega8cc commentedWe have added extra Ubercart platform with different profile to cover most of possible issues:
http://drupalcode.org/project/octopus.git/commit/ad48177
http://drupalcode.org/project/octopus.git/commit/ac2184e
http://drupalcode.org/project/octopus.git/commit/2ff3abb
Comment #7
mrP CreditAttribution: mrP commentedI hate to reopen this, but what would the BOA procedure now be to upgrade from D6 ubercart to D7 commerce?
Comment #8
omega8cc CreditAttribution: omega8cc commentedIt has been fixed, and for more details you may need to wait for release if it is too hard to determine from commits and the comment above.
Comment #9
omega8cc CreditAttribution: omega8cc commentedBesides, you probably already know that there is no straightforward upgrade path for ubercart to commerce. BOA job is just to make it possible to
use commerce platform as a target for ubercart based sitesuse any theoretically compatible profiles as source-target pairs, but this in no way makes it magically working out of the box if the profiles itself don't provide working upgrade path.Comment #10
omega8cc CreditAttribution: omega8cc commentedOh, please note that this issue is *not* about ubercart to commerce upgrade path. I have managed to confuse myself after your question which has nothing to do with BOA, really. It is like asking how to upgrade Commons to Open Atrium. The issue here is mainly about Ubercart with D6 to Ubercart with D7 upgrade and confusion caused by profiles changes.
Comment #11
omega8cc CreditAttribution: omega8cc commentedSo, if you want to try to migrate ubercart site to commerce (which will explode probably anyway), you will need to follow standard docs: https://omega8.cc/migrate-sites-between-installation-profiles-111
Comment #12
mrP CreditAttribution: mrP commentedGot it. Thanks for your feedback.
My reopen was more about overriding provision based old_short_name using the d6 ubercart to d7 commerce as an extreme example (my initial tests appeared as if provision takes precedence over .info settings, making further overrides impossible). I'll test in next release and create a new issues if necessary.
Comment #13
omega8cc CreditAttribution: omega8cc commentedCurrent stable does override everything, but I think we have fixed this in head -- you could try this: http://drupalcode.org/sandbox/omega8cc/1074910.git/commit/0257b12