Closed (fixed)
Project:
Drupal core
Version:
8.5.x-dev
Component:
base system
Priority:
Critical
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
30 Nov 2017 at 00:48 UTC
Updated:
18 Feb 2018 at 23:29 UTC
Jump to comment: Most recent, Most recent file




Comments
Comment #2
xjmComment #3
xjmComment #4
xjmComment #5
larowlanI think we have to get the specific dates into 8.5 so people know they have 12 months
Comment #6
wim leersComment #7
wim leersComment #8
webchickThe new error message is vastly better, thanks. My concern with the first version is it didn't place a timeline on "a future Drupal release," leading to widespread panic. :) Letting people know they've gotta do something by March 2019 will cut down on that significantly.
Comment #9
larowlanI think this is good to go - but one tiny question - should we also link to the release schedule on d.o - can link from the
will be released on March 6 2019for example?Comment #10
wim leers#9 Sure! Which URL is that you want me to link to? (I scanned both this issue and #2842431: [policy] Remove PHP 5.5, 5.6 support in Drupal 8.7, didn't find which URL you meant.) I think perhaps we don't have that URL yet because https://docs.google.com/document/d/1kQG4E2L6Ye-M0RUuz7UkTZfyUPKoI-Vd2s8Y... hasn't been updated+posted?
Comment #11
larowlanI was thinking https://www.drupal.org/core/release-cycle-overview, but it only deals with the next cycle
Comment #12
yoroy commentedThe specific date introduced here is very welcome information.
@larowlan's question is a good one. Ideally we would be able to link to this information on d.o. (would be weird that the installer knows about this but d.o. doesn't mention it). Do we have a page that mentions dates for future releases?
I only have questions/concerns with the bits of text that are not changed so probably out of scope:
- First sentence is a repeat of the actual info this is the description for. Could be dropped without loss of meaning
- "…receive Drupal updates … remains secure" reads as if running a newer PHP automagically takes care of updates, security. More like: *can* receive updates … *able* to keep secure?)
Comment #13
wim leers#12: I'd be happy to make those string changes if that's what @webchick + @larowlan also prefer!
Comment #14
yoroy commentedOk. Lets leave out the link to info that isnt available yet. As is this is already solid.
Comment #15
xjmAh, so the reason the dates aren't there is that right after we set the dates, we started discussing a couple of changes to the release cycle. We might shift our release dates to better match PHP's and Symfony's, and we're also looking at whether a 4-month cycle (three minors per year) would be better. The date is likely correct though. Should we remove the minor version number but keep the date?
The PHP requirements page will also have the date now that we've set it. I think that's a more appropriate status report link (and it's already in there). The release cycle page is more developer-focused and maybe too in the weeds.
Also, should we make the textual improvements proposed in #12?
Thanks!
Comment #17
catchLet's do that, good plan.
Comment #18
wim leersOn it!
Comment #19
wim leersDone.
Interdiff isn't very helpful. This is what changed:
Comment #20
wim leersI didn't see @catch +1'ing this, but given that both @yoroy and @xjm think this is a good idea, I think he wouldn't oppose it either. So, did that too, separately, so you can still easily go back to #19.
Interdiff isn't very helpful. This is what changed:
+
+
Comment #21
wim leersUpdated "after" screenshot in IS.
Comment #22
David_Rothstein commentedI think "Drupal" needs to be retained in one of the first two sentences - removing that reintroduces some of the ambiguity that was in the earlier patches in #2670966: Warn users of old PHP versions (where it was unclear if it was talking about Drupal security support or PHP security support).
So I suggest changing the first sentence to:
Otherwise looks good, but:
'%version' => $phpversioncan be removed if it's no longer used in the stringComment #23
xjmFor #22.
Comment #24
xjmI also did some rewriting on https://docs.google.com/document/d/1kQG4E2L6Ye-M0RUuz7UkTZfyUPKoI-Vd2s8Y... -- this issue's scope includes getting that announcecment done as well.
Comment #25
wim leersAddressed #22.
Comment #26
wim leersI did some rewriting (well, leaving suggestions, because I can't edit it) of https://docs.google.com/document/d/1kQG4E2L6Ye-M0RUuz7UkTZfyUPKoI-Vd2s8Y... as well. Notable:
Other than that, I think it looks fine.
Comment #27
andypostComment #28
wim leers@xjm and I pushed forward the document. Both the patch and that document need review, and hopefully can be RTBC'd.
Comment #29
larowlanLooks good to me
Comment #30
xjmSo the message is being displayed for PHP 5.5, 5.6, and 7.0. However, we've only finalized EOL for 5.5 and 5.6 support. I guess one approach might be to just change
DRUPAL_RECOMMENDED_PHP to 7.0. OTOH, we do actually recommend that users update to 7.1+ since 7.0 support may also end on that date.Thoughts?
Comment #31
catchDo you mean change DRUPAL_RECOMMENDED_PHP to 7.1? I think we should do that regardless.
Comment #32
wim leersThis is what it's set to in HEAD:
This is also what causes you to see a warning during the installation process if you're on PHP 7.0.
This is why @xjm proposed to change it to:
Comment #33
catchHmm OK. Can we hardcode 7.0 instead of using DRUPAL_MINIMUM_PHP for the message with the dates? I think we'd want to keep 7.1 recommended.
Comment #34
xjmAh yeah, good idea. Because obviously the dates only apply to the specific versions mentioned.
So we should have one message (info rather than warning, runtime only) that has
Your PHP installation is running version %version. It is recommended to upgrade to PHP version %recommended or higher for the best ongoing support.And then keep current scarier stuff in the existing warning but hardcode 7.0.
Comment #35
wim leersDone.
I wasn't 100% sure what was meant with . My understanding is that we want to keep the "warning" message we've been having so far for sites that are on PHP 5.x, but want to change it to an "info" message in case the site has at least PHP 7.0, and show it during runtime only. That's what I implemented. If my interpretation was incorrect, I'll soon find out in the comments below :)
IS updated to reflect both possible states in the status report now (PHP 5.x vs PHP 7.0).
Comment #36
wim leersFurther expanding the screenshots in the IS to clarify the changes.
Comment #37
wim leersBTW, @xjm published the PHP 5.5/5.6 EOL announcement: https://groups.drupal.org/node/518200. It was also widely tweeted: https://twitter.com/drupal/status/955699298615922693. Finally, the CR for this issue was published: https://www.drupal.org/node/2938726.
Comment #39
xjmOh boy. That's my excellent test coverage proving it works. ;)
Probably fastest for me to fix it since I wrote the tests, so assigning to myself.
Comment #40
xjmSomeone mentioned on Twitter that they thought it was important to backport this patch. We are definitely going to do so. (The only reason this was filed against 8.5.x before the bulk update is that we ended up reverting it from 8.4.x because without the dates the message is pretty alarming, and we hadn't set the exact dates by the time 8.4.4 shipped.) So setting the version accordingly. Thanks!
Comment #41
xjmThis should resolve the test failures.
Comment #42
wim leersYou used a string.
I used a float.
Both work, but we should probably make this consistent.
Comment #44
xjmThe constants are strings, so let's use strings.
Comment #45
xjmAlso
7.1.3or the like won't be a valid float. :)I added back the second sentence for the info message since the handbook pages are still relevant for PHP 7.0 as well.
Comment #46
David_Rothstein commentedNow that https://groups.drupal.org/node/518200 is posted, shouldn't the message on the status report link to that (either directly, or at least indirectly via a link on https://www.drupal.org/docs/8/system-requirements/drupal-8-php-requirements)?
It would also probably be a good idea to have that (or something like it) as a front page post on the main drupal.org site, eventually.
Comment #47
xjm@David_Rothstein, yep, agree. I think what might actually be best is to incorporate parts of the g.d.o/core announcement into the handbook (minus the in-the-weeds parts that are mainly for core developers). That way people will also see the information when looking through Drupal's requirements before they download it, etc.
We're also talking about adding it to the frontpage announcement we do for each minor.
Comment #48
xjmI tried to boil it down to the essentials, changes here:
https://www.drupal.org/node/2891690/revisions/view/10778527/10813778
Comment #49
xjmNote that the PHP 7.0 screenshot is out of date, but just has the same second sentence as the others.
Comment #50
webchickChecked over both the proposed text and the handbook page changes; both look good to me. I made one small tweak to the language around PHP 7.2 support in 8.5.0 to make it more clear that the issue has been resolved in 8.5.0 (or at least #2923015: [PHP 7.2] Incompatible method declarations is Closed (Fixed)) vs. before it sounded more like we were kinda "targeting" support for that release. https://www.drupal.org/node/2891690/revisions/view/10813778/10818984
The PHP 5 version of the error is very easy to trigger from SimplyTest.me; verified that it displays the warning upon install:
I can't trigger the PHP 7.0 one as easily to test it, but in reading it, it seems fine.
Marking RTBC. Thanks a lot for the hard work on this, all!
Comment #51
larowlanIs this still needs work for #46? Not sure if #47(xjm) is saying yes to #46 or that it should go in handbook instead
Comment #52
xjm@larowlan, yep, adding it to the handbook was one of David's suggestions so I did that. That way it's there as a resource outside of just sites as well.
Comment #53
larowlanAdding review credits for those who shaped the patch
Comment #55
larowlanCommitted as 05b9f0a and pushed to 8.6.x.
Cherry-picked as d85dada and pushed to 8.5.x.
Thanks all
Comment #57
tr commentedFollow up - this removes the duplicate "If" in an inline comment that was added by the commit in #54/#56:
Comment #58
lendude@TR nice catch, but please open up a new issue for that so that credit attribution works correctly. Of course feel free to post a link to the follow up here so people that worked on this can help out.
Comment #59
tr commentedNo, I'm not going to open a new issue - that will just get ignored by the people who made this mistake, and then the new issue will stay open for many years until the code gets rewritten and the patch is obsolete. (Think I'm exaggerating? I can give you a dozen examples ...) I don't give a crap about credit. Everyone makes mistakes, and the simplest thing to do is to fix it right here right now while it's still familiar to the participants.
Comment #60
David_Rothstein commentedFor quick non-controversial followups I think it's fine to do it in the same issue rather than jumping through all the hoops to create a new one; I think that's one of the reasons "Fixed" issues can still be reopened (https://www.drupal.org/issue-queue/status#fixed).
The followup patch is fine; the rest of the original commit (and the documentation changes) looked good to me on a quick skim-through also.
Comment #63
larowlanCommitted as 9b4915d and pushed to 8.6.x
Cherry-picked as 9117bdb and pushed to 8.5.x.
Agree
The tone here is borderline