Drupal 10, the latest version of the open-source digital experience platform with even more features, is here.Named placeholders aren't allowed in D6's db_query, and the data fetcher needs to be different.

Named placeholders aren't allowed in D6's db_query, and the data fetcher needs to be different.

Comments
Comment #1
gboudrias CreditAttribution: gboudrias at Praxis Labs Coop commentedForgot to mark this as "needs review". Can probably wait until 3.2.
Comment #2
ergonlogicSo this is to allow Aegir3 to import sites from Aegir2? I'm marking this critical, as this is our recommended upgrade path from 2 to 3. Shouldn't block a 3.1 release.
Comment #3
gboudrias CreditAttribution: gboudrias at Praxis Labs Coop commentedYeah as far as I can tell Aegir2 -> Aegir3 imports won't work without this patch.
Comment #4
ergonlogicLooks like there a missing EOL on that patch, as I got:
Comment #5
gboudrias CreditAttribution: gboudrias at Praxis Labs Coop commentedWeird, here's the updated version.
Comment #6
ergonlogicUpon testing this, it looks like it always defaults to the remote being Aegir 2. Rather than the regex, I switched to pulling out the 'aegir_api' variable directly. Also, the check for $platform being set could mask other problems, so I dropped that as well.
I've posted an updated patch that works for me. I also pushed a new branch with the same fix: dev/2538788.
Comment #7
kienan CreditAttribution: kienan commentedThe string returned by the remote call isn't simply 2 or 3 against the server I'm testing against (6.x-2.5)
I re-rolled the patch to handle cases where it's the varname: value in response.
Comment #9
ergonlogicMerged the dev/2538788 branch that had the patch from #6 and added @kienan's contribution that supports older versions of Drush.