@@ -2018,7 +2019,7 @@ function install_check_translations($langcode, $server_pattern): array {
$requirements['translations directory exists']=[
'title'=>t('Translations directory'),
'value'=>t('The translations directory does not exist.'),
'severity'=>REQUIREMENT_ERROR,
'severity'=>RequirementSeverity::Error,
'description'=>t('The installer requires that you create a translations directory as part of the installation process. Create the directory %translations_directory . More details about installing Drupal are available in <a href=":install_txt">INSTALL.txt</a>.',['%translations_directory'=>$translations_directory,':install_txt'=>base_path().'core/INSTALL.txt']),
];
}
@@ -2032,7 +2033,7 @@ function install_check_translations($langcode, $server_pattern): array {
'value'=>t('The translations directory is not readable.'),
'severity'=>REQUIREMENT_ERROR,
'severity'=>RequirementSeverity::Error,
'description'=>t('The installer requires read permissions to %translations_directory at all times. The <a href=":handbook_url">webhosting issues</a> documentation section offers help on this and other topics.',['%translations_directory'=>$translations_directory,':handbook_url'=>'https://www.drupal.org/server-permissions']),
];
}
@@ -2041,7 +2042,7 @@ function install_check_translations($langcode, $server_pattern): array {
'value'=>t('The translations directory is not writable.'),
'severity'=>REQUIREMENT_ERROR,
'severity'=>RequirementSeverity::Error,
'description'=>t('The installer requires write permissions to %translations_directory during the installation process. The <a href=":handbook_url">webhosting issues</a> documentation section offers help on this and other topics.',['%translations_directory'=>$translations_directory,':handbook_url'=>'https://www.drupal.org/server-permissions']),
];
}
@@ -2058,7 +2059,7 @@ function install_check_translations($langcode, $server_pattern): array {
$requirements['online']=[
'title'=>t('Internet'),
'value'=>t('The translation server is offline.'),
'severity'=>REQUIREMENT_ERROR,
'severity'=>RequirementSeverity::Error,
'description'=>t('The installer requires to contact the translation server to download a translation file. Check your internet connection and verify that your website can reach the translation server at <a href=":server_url">@server_url</a>.',[':server_url'=>$server_url,'@server_url'=>$server_url]),
];
}
@@ -2073,7 +2074,7 @@ function install_check_translations($langcode, $server_pattern): array {
$requirements['translation available']=[
'title'=>t('Translation'),
'value'=>t('The %language translation is not available.',['%language'=>$language]),
'severity'=>REQUIREMENT_ERROR,
'severity'=>RequirementSeverity::Error,
'description'=>t('The %language translation file is not available at the translation server. <a href=":url">Choose a different language</a> or select English and translate your website later.',['%language'=>$language,':url'=>$_SERVER['SCRIPT_NAME']]),
];
}
@@ -2092,7 +2093,7 @@ function install_check_translations($langcode, $server_pattern): array {
$requirements['translation downloaded']=[
'title'=>t('Translation'),
'value'=>t('The %language translation could not be downloaded.',['%language'=>$language]),
'severity'=>REQUIREMENT_ERROR,
'severity'=>RequirementSeverity::Error,
'description'=>t('The %language translation file could not be downloaded. <a href=":url">Choose a different language</a> or select English and translate your website later.',['%language'=>$language,':url'=>$_SERVER['SCRIPT_NAME']]),
];
}
@@ -2152,7 +2153,7 @@ function install_check_requirements($install_state) {
@@ -2211,7 +2212,7 @@ function install_check_requirements($install_state) {
$requirements["$file file exists"]=[
'title'=>$default_file_info['title'],
'value'=>t('The %file does not exist.',['%file'=>$default_file_info['title']]),
'severity'=>REQUIREMENT_ERROR,
'severity'=>RequirementSeverity::Error,
'description'=>t('The @drupal installer requires that you create a %file as part of the installation process. Copy the %default_file file to %file. More details about installing Drupal are available in <a href=":install_txt">INSTALL.txt</a>.',[
@@ -2230,7 +2231,7 @@ function install_check_requirements($install_state) {
$requirements["$file file readable"]=[
'title'=>$default_file_info['title'],
'value'=>t('The %file is not readable.',['%file'=>$default_file_info['title']]),
'severity'=>REQUIREMENT_ERROR,
'severity'=>RequirementSeverity::Error,
'description'=>t('@drupal requires read permissions to %file at all times. The <a href=":handbook_url">webhosting issues</a> documentation section offers help on this and other topics.',[
@@ -2243,7 +2244,7 @@ function install_check_requirements($install_state) {
$requirements["$file file writable"]=[
'title'=>$default_file_info['title'],
'value'=>t('The %file is not writable.',['%file'=>$default_file_info['title']]),
'severity'=>REQUIREMENT_ERROR,
'severity'=>RequirementSeverity::Error,
'description'=>t('The @drupal installer requires write permissions to %file during the installation process. The <a href=":handbook_url">webhosting issues</a> documentation section offers help on this and other topics.',[
@@ -2261,7 +2262,7 @@ function install_check_requirements($install_state) {
$requirements["$file file ownership"]=[
'title'=>$default_file_info['title'],
'value'=>t('The @file is owned by the web server.',['@file'=>$default_file_info['title']]),
'severity'=>REQUIREMENT_ERROR,
'severity'=>RequirementSeverity::Error,
'description'=>t('The @drupal installer failed to create a %file file with proper file ownership. Log on to your web server, remove the existing %file file, and create a new one by copying the %default_file file to %file. More details about installing Drupal are available in <a href=":install_txt">INSTALL.txt</a>. The <a href=":handbook_url">webhosting issues</a> documentation section offers help on this and other topics.',[
$build['#suffix']=t('Check the messages and <a href=":retry">retry</a>, or you may choose to <a href=":cont">continue anyway</a>.',[':retry'=>drupal_requirements_url(REQUIREMENT_ERROR),':cont'=>drupal_requirements_url($severity)]);
$build['#suffix']=t('Check the messages and <a href=":retry">retry</a>, or you may choose to <a href=":cont">continue anyway</a>.',[':retry'=>drupal_requirements_url(RequirementSeverity::Error),':cont'=>drupal_requirements_url($severity)]);
}
else{
$build['#title']=t('Requirements problem');
@@ -2341,7 +2342,7 @@ function install_display_requirements($install_state, $requirements) {
// Skip warnings altogether for non-interactive installations; these
// proceed in a single request so there is no good opportunity (and no
@@ -190,7 +211,7 @@ function drupal_verify_profile($install_state): array {
$requirements['required_modules']=[
'title'=>t('Required modules'),
'value'=>t('Required modules not found.'),
'severity'=>REQUIREMENT_ERROR,
'severity'=>RequirementSeverity::Error,
'description'=>t('The following modules are required but were not found. Move them into the appropriate modules subdirectory, such as <em>/modules</em>. Missing modules: @modules',['@modules'=>$modules_list]),
];
}
@@ -560,7 +581,7 @@ function drupal_current_script_url($query = []) {
* update.php) and returns a URL that can be used to attempt to proceed to the
@trigger_error('Passing a type other than '.RequirementSeverity::class.' to '.__FUNCTION__.'() is deprecated in drupal:11.2.0 and is removed from drupal:12.0.0. Pass a '.RequirementSeverity::class.' enum instead. See https://www.drupal.org/node/3410939',E_USER_DEPRECATED);
$severity=RequirementSeverity::from($severity);
}
if(is_null($severity)){
$severity=RequirementSeverity::Info;
}
$query=[];
// If there are no errors, only warnings, append 'continue=1' to the URL so
// the user can bypass this screen on the next page load.
if($severity==REQUIREMENT_WARNING){
if($severity===RequirementSeverity::Warning){
$query['continue']=1;
}
returndrupal_current_script_url($query);
@@ -644,15 +672,16 @@ function drupal_check_profile($profile): array {
*
* @return int
* The highest severity in the array.
*
* @deprecated in drupal:11.2.0 and is removed from drupal:12.0.0. Use
@trigger_error(__FUNCTION__.'() is deprecated in drupal:11.2.0 and is removed from drupal:12.0.0. Use '.RequirementSeverity::class.'::maxSeverityFromRequirements() instead. See https://www.drupal.org/node/3410939',E_USER_DEPRECATED);
$message=t('@requirements_message (Currently using @item version @version)',['@requirements_message'=>$requirement['description'],'@item'=>$requirement['title'],'@version'=>$requirement['value']]);
@@ -34,7 +35,7 @@ function update_system_schema_requirements(): array {
else{
$requirements['minimum schema']+=[
'value'=>'The installed schema version does not meet the minimum.',
'severity'=>REQUIREMENT_ERROR,
'severity'=>RequirementSeverity::Error,
'description'=>'Your system schema version is '.$system_schema.'. Updating directly from a schema version prior to 8000 is not supported. You must upgrade your site to Drupal 8 first, see https://www.drupal.org/docs/8/upgrade.',
@trigger_error("Calling {$deprecationMethod}() with an array of \$requirements with 'severity' with values not of type ".RequirementSeverity::class." enums is deprecated in drupal:11.2.0 and is required in drupal:12.0.0. See https://www.drupal.org/node/3410939",\E_USER_DEPRECATED);