-
-
Notifications
You must be signed in to change notification settings - Fork 824
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix unreplaced template vars in civicrm.settings.php when using legacy installer #21692
Conversation
(Standard links)
|
Jenkins retest this please.
|
This looks safe and reasonable on its own. Not a blocker, but possibly related - I don't see |
Oh that probably has the same problem then. And wp-cli if it does installs too. |
Have added #21710 as alternate but for readability I think I'd prefer this one and just try to find all the spots where it's used, but the upgrade message might be useful either way. |
I meant I would move the upgrade message here and close that one if this is the more desirable route. |
@totten @demeritcowboy this looks almost there but to have lost momentum ... |
If the upgrade message is a holdup I can remove it. The actual change is just the blanks. There's similar PRs for drush at civicrm/civicrm-drupal-8#67, civicrm/civicrm-drupal#650, civicrm/civicrm-backdrop#151, and the wp-cli and joomla ones are merged. |
@demeritcowboy so I'm confused what this is blocked on - my take is that when we weren't swapping out the ssl variables in our civicrm.settings.php we couldn't load the site - but if you think this is a misconfiguration that might be in operation then I think the message is OK for the edge case |
It's cosmetic at the moment because the
The upgrade message isn't an edge case. It's anyone who used the legacy installer or drush since FiveTwentySomething would likely have the |
@demeritcowboy ok - but those hitting the upgrade message - it's an optional thing for them to fix? |
At the moment yes. Theoretically it could cause problems in the future if there was some change to DSN parsing or usage. I can tone down the message? |
@demeritcowboy it feels like it should be a status check IMHO. I'm inclined to say pull it out of this PR & we'll merge this one & then the other PR can deal with informing people |
Ok I'll pull it out. I don't know if it should be a status check because the person who would deal with it is often not the person who sees the status check message. Maybe it could be communicated some other way TBD. |
unrelated fail |
Overview
When using the legacy installer (e.g. sites/all/modules/civicrm/install/index.php) it leaves behind some unreplaced ssl-related template variables.
Before
DSN in civicrm.settings.php looks like
mysql://foo:bar@localhost/cividb?new_link=true%%dbSSL%%
after install.After
mysql://foo:bar@localhost/cividb?new_link=true
Technical Details
The ssl vars are only replaced when using the newer civicrm-setup.
Comments
See also civicrm/civicrm-joomla#63