Rerolling 100 for latest 10.3.x
Did you install the module using composer?
Fixed in 2.x dev release
Renaming
I believe so.
To switch PHP versions for different platforms we use hook_provision_apache_vhost_config in /var/aegir/.drush/modvhost.drush.inc
Our default version of php for the server is 8.1 so this only uses 7.4 if the platform name starts with hostmaster or php7
<?php
function modvhost_provision_apache_vhost_config($uri, $data) {
$query = '@platform_php7';
$hostmaster = '@platform_hostmaster';
if ((substr(d()->platform->name, 0, strlen($query)) === $query) || (substr(d()->platform->name, 0, strlen($hostmaster)) === $hostmaster)) {
return array('Include /etc/apache2/conf-available/php7.4-fpm.conf');
} else {
return array('Include /etc/apache2/conf-available/php8.1-fpm.conf');
}
}
Here is a basic patch to give you the files you need for d10
Updated for 3.0.0.
This is really quite important and should be committed considering how simple the patch is.
MR fixes this issue.
Included a version for 8.x-1.4 release
Patch the right way around this time
Dropping PHP support like that is quite a big deal. Obviously it is your choice but this should be mentioned very clearly on the module page. Currently the page says Drupal 9.3 is supported which isn't really true anymore due to points already raised by samalander. I didn't actually realise this had happened until today as it is easy to miss when updating things via composer - commerce just doesn't move past 8.x-2.33
Line 165 of the patch to js/paypal-checkout-custom-card-fields.js in this commit breaks the card field on checkout. It throws a console error and you can not progress through the checkout:
Uncaught TypeError: Cannot read properties of undefined (reading 'split')
at HTMLInputElement.<anonymous> (paypal-checkout-custom-card-fields.js?rp1r4m:167:45)
at Function.each (jquery.min.js?v=3.6.3:2:3003)
You can do this manually by creating a file in /var/aegir/.drush/
This example is for apache but you can use drush_hook_provision_nginx_vhost_config for nginx.
<?php
function foo_provision_apache_vhost_config($uri, $data) {
$sites = [
'www.site1.com',
'www.site2.com',
];
if (in_array($uri, $sites)) {
return array("
Include /etc/apache2/conf-available/php7.2-fpm.conf
");
} else {
return array("
Include /etc/apache2/conf-available/php7.4-fpm.conf
");
}
}