- Issue created by @SocialNicheGuru
- π¬π§United Kingdom longwave UK
There is no evidence this is a bug in Drupal, so changing to a support request - this seems to be a settings.php problem or an nginx configuration problem.
PHP message: Drupal\Core\Database\ConnectionNotDefinedException: The specified database connection is not defined: default
This would appear to be the issue, for some reason it can't find your
$settings['database']['database']
in settings.php.FWIW I use this in nginx config for Drupal, which is the same as the two lines commented out, instead of the two uncommented ones:
fastcgi_split_path_info ^(.+\.php)(/.+)$; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- Status changed to Postponed: needs info
over 1 year ago 3:42pm 24 May 2023 This issue is developing an official nginx configuration. Anything you need should be there or could take the form of feedback by you on the proposed configuration.
- πΊπΈUnited States SocialNicheGuru
I realized that this is an Aegir/Provision/Hostmaster specific issue.
I did have to add the location block above to /var/aegir/config/includes/nginx_vhost_common.conf
I had to follow this, https://docs.aegirproject.org/usage/sites/, and add a line to drushrc.php:
Set $options['provision_db_cloaking'] = FALSE; in the site's drushrc.php and then re-verify the site.
This has security implications.
Then i had to set $database['default']['default'] equal to their corresponding databse values from $options in drushrc.php.
This seems like a lot to just get /update.php to work as now since the next step goes to /update.php/selection
- Status changed to Active
over 1 year ago 12:28pm 25 May 2023 - π΅π±Poland memtkmcc
Aegir 3.x actually supports both PHP 8.1/8.2 and latest Drupal 9.x but not in this main/current upstream version but in the BOA fork, so we are working on backporting all accumulated fixes/patches.
- Status changed to Closed: won't fix
11 months ago 8:50pm 1 February 2024 - π¬π§United Kingdom steven jones
@SocialNicheGuru tbh I'm not sure using update.php via the web is supposed to be supported in Aegir.
You should be migrating between platforms to run database updates etc.
- π΅π±Poland memtkmcc
This has been fixed in BOA and we need to commit the fix back. While not recommended, itβs still useful for users trying to fix issues they canβt fix with system nor local Drush.