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.
Expected behaviour: When you edit sites/default/settings.php and uncomment the line $conf['site_name'] = 'My Drupal site';
and save the file, the site name should change to "My Drupal site."
Actual behaviour: It doesn't. drush cc all
doesn't help.
There's a chance this might be 3am syndrome, but I think I double-checked everything.
Comment | File | Size | Author |
---|---|---|---|
#5 | conf_sitename-1716920-5.patch | 549 bytes | Albert Volkman |
Comments
Comment #1
aspilicious CreditAttribution: aspilicious commentedtry this:
$conf['system.site']['name'] = 'My Drupal site'
Comment #2
aspilicious CreditAttribution: aspilicious commentedTried it myself, it works and we have tests for this ;)
Comment #3
webchickOh, well that makes sense. However, there's still a bug here. But now it's normal and novice. :)
Comment #4
webchickYou can find this documentation in sites/default/default.settings.php.
Comment #5
Albert Volkman CreditAttribution: Albert Volkman commentedHere ya go.
Comment #6
aspilicious CreditAttribution: aspilicious commentedI would like to change all the examples once the conversion is done. Most of these will change in the near future.
Comment #7
COBadger CreditAttribution: COBadger commentedI applied the patch, removed the leading hash tag in front of:
$conf['system.site']['name'] = 'My Drupal site';
Cleared caches and reloaded the page; site name did not change and I don't see a row in 'variable' table in db for site name.
Didn't work for me.
Comment #8
jfhovinne CreditAttribution: jfhovinne commented@jordanlgraham: I think you need to apply the patch before installing Drupal.
Applied the patch to current 8.x-dev; installed Drupal; uncommented
$conf['system.site']['name'] = 'My Drupal site';
in settings.php; the site name is correctly updated to "Welcome to My Drupal site", so the example is ok.Comment #9
webchickAwesome!
Committed and pushed to 8.x as a stop-gap. Agreed that we're going to need to update this as further conversions take place, however. Probably makes sense to postpone this for now on #1775842: [meta] Convert all variables to state and/or config systems.
Comment #10
mgiffordOk, so #2167109: Remove Variable subsystem replaced #1775842: [meta] Convert all variables to state and/or config systems so can this be closed or are there further conversions that need to take place?
Comment #11
jhodgdonIf this is still valid, it seems like it is base config system, not Configuration Manager module?
Comment #12
mgiffordCurrently, without the patch it's
# $config['system.site']['name'] = 'My Drupal site';
so I'm marking this closed.