place link to Drupal's PHP requirement first on PHP too old install error

Created on 6 May 2025, about 1 month ago

Problem/Motivation

If a user tries to install Drupal with a PHP version that is too old, the get this error message:

PHP
8.2.28
Your PHP installation is too old. Drupal requires at least PHP 8.3.0. It is recommended to upgrade to PHP version 8.3.0 or higher for the best ongoing support. See PHP's version support documentation and the Drupal PHP requirements page for more information.

Since the link to Drupal's PHP requirements page is placed last, it is easily missed, which is too bad, since it offers not only an explanation, but also a solution (install DDEV).

This can cause new users to use time on solutions, such as XAMPP, which currently ships with PHP 8.2, which is outdated for Drupal 11:

From https://www.apachefriends.org/

Steps to reproduce

Try to install Drupal with a PHP version that is too old, get an error message, and miss a link to a solution, because it's placed last.

Proposed resolution

Switch the order of the links, placing drupal.org PHP requirements page link first:

PHP
8.2.28
Your PHP installation is too old. Drupal requires at least PHP 8.3.0. It is recommended to upgrade to PHP version 8.3.0 or higher for the best ongoing support. See the Drupal PHP requirements page and PHP's version support documentation for more information.

Also, let's update the php.net link to use https :)

Remaining tasks

User interface changes

Introduced terminology

API changes

Data model changes

Release notes snippet

📌 Task
Status

Active

Version

11.0 🔥

Component

base system

Created by

🇩🇰Denmark ressa Copenhagen

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024