-
-
Notifications
You must be signed in to change notification settings - Fork 827
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
dev/core#1937 - Upgrade message about needing composer patching turned on and updating mysql in DSN strings #18174
dev/core#1937 - Upgrade message about needing composer patching turned on and updating mysql in DSN strings #18174
Conversation
(Standard links)
|
@demeritcowboy can we ALSO check for their dsn having mysqli & notify all sites with that? |
The good thing here is that anyone doing upgrades by composer should have some basic knowledge - I think we should add a simple blog to point people to |
I can add the mysqli part but that's not the actual problem here it's just one symptom. I can do that as a separate message for all cms's. Based on the drupal chat channel being filled with composer questions I'm not sure basic knowledge is a given. There's probably a lot of people who aren't interested in composer and are only using it because there's no tarball. |
@demeritcowboy ok - that makes sense - I think we want somewhere to point people to though - I like a blog because it has visibility - but it could be a gitlab. I'll add to the email I'm preparing to send to the dev list |
Oh I see - you DO have a link - seems good to me then - @seamuslee001 |
Oops I have a typo. One minute... |
I had copied the url for the docs link from somewhere and I'm not sure if redirection has changed on the docs server or if the other one was wrong too. I don't want to link to the "en" version directly so I'm not sure what the right url is. |
Arrggh - civicrm-core/CRM/Utils/System.php Line 1419 in dd76c9c
Doesn't handle installation doclinks. |
be14521
to
f0c70f4
Compare
I think the idea of an automatic message about composer patching is a really good one, and I completely agree that knowledge of TLDR: Create a composer package/plugin whose sole purpose is to complain vociferously if the root package doesn't have Rationales:
|
a4141d3
to
8117f38
Compare
I removed the mysql part but left in the pre-announcement about patches. |
I think this looks OK - & there might be some follow ons... |
Overview
https://lab.civicrm.org/dev/core/-/issues/1937
In drupal 8 you need composer's enable-patching to be turned on for civi patches to get applied.
Technical Details
In particular for 5.30 because pear::DB has moved, the patch that would get applied to handle automatically using mysqli instead of mysql in the dsn string won't get applied, so it crashes. Most sites likely still have mysql in their civicrm.settings.php dsn strings.
But there's other patches for civi needed too even pre-5.30, you just don't get a crash without them.
Comments
There's still more needed because you won't even be able to get to this upgrade message if you go straight from your current version to 5.30 and don't try to install a pre-5.30 version first.