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.
Problem/Motivation
Follow-up to #2551725-14: Remove system_requirements() SafeMarkup::set() use with 'value' key
system_requirements() php warnings and errors use the same key, so only one is ever shown
steps to reproduce
Get an old version of php (or hack core to make it think it is old) (either pre 5.6.5 or 5.5.21)
Steps for installer phase:
- make it so the install will fail (rename settings.php)
- make warnings or errors show
- attempt to install
- look at the requirements page
Steps for runtime phase:
- install
- make warnings or errors show
- look at admin/reports/status
Proposed resolution
Use different keys for each message
Remaining tasks
Review patch
Manual testing
User interface changes
When more than one requirement message is relevant, they will both show.
Installer - before:
Installer - after:
Similarly at runtime.
API changes
No.
Data model changes
Comment | File | Size | Author |
---|---|---|---|
#25 | 2552061-25.patch | 986 bytes | Shubham Chandra |
Comments
Comment #2
cilefen CreditAttribution: cilefen commentedIs this block the issue? If not, the summary isn't clear enough for me to understand the problem.
Comment #3
YesCT CreditAttribution: YesCT commentedI think we might as well wait on #2551725: Remove system_requirements() SafeMarkup::set() use with 'value' key but we dont strictly need to.
the problem is that, we cannot, for example, see the warning about both phpinfo and the phpversion, cause whatever the last description is, overwrites other (php) messages that might be relevant.
Comment #4
cilefen CreditAttribution: cilefen commentedI think those sections ought to be smushed together.
Comment #5
stefan.r CreditAttribution: stefan.r commentedThis is not really something that can be automatically tested unless we wrap the call to phpversion(), or have testbots with those outdated PHP versions, which I don't think we do.
Comment #6
stefan.r CreditAttribution: stefan.r commentedUpdated the wording as well.
Comment #7
stefan.r CreditAttribution: stefan.r commentedComment #8
stefan.r CreditAttribution: stefan.r commentedUpdating issue summary to reflect this only affects the PDO warning, for the others I think we _want_ them to override the existing description.
Comment #9
stefan.r CreditAttribution: stefan.r commentedAdding before & after screenshots to IS
Comment #10
stefan.r CreditAttribution: stefan.r commentedComment #11
dawehnerIt is more about not recommended right? I mean this is not an error, just INFO
Comment #12
stefan.r CreditAttribution: stefan.r commentedWhat is "not supported" is the PDO multiple statement disabling. The value will only ever appear along with the description so it's probably fine like this:
I don't think "Not recommended" would be correct either as the value describes the current state of the title (multiple statement disabling).
Maybe "not available"?
Comment #21
andypostno longer applies
Comment #22
pooja saraah CreditAttribution: pooja saraah at Srijan | A Material+ Company for Drupal India Association commentedRerolled patch against 9.4.x
Attached rerolled diff
Comment #25
Shubham Chandra CreditAttribution: Shubham Chandra as a volunteer and at Dotsquares Ltd. commentedRe-rolled patch against #22 in drupal 10.1.x
Comment #26
andypostFiled bug report as failures are unrelated #3320483: Remove unused variable $pos in system.install
Comment #27
andypostComment #28
andypostmessed with tabs, sorry
Comment #29
andypostClosing it as the issue only possible on PHP 5.5 but 9.x and 10.x require 7 and 8