[TikiWiki-commits] [Git][tikiwiki/tiki][master] [FIX] tiki-check: Enhance session.save_path error message with alternative...
Benoit Grégoire (@benoitg) via TikiWiki-cvs <[email protected]>
| Newsgroups | gmane.comp.cms.tiki.cvs |
|---|---|
| Message-ID | <6924c989651b0_2bdeb91c24120@gitlab-sidekiq-low-urgency-cpu-bound-v2-77cb57d76d-4bcgz.mail> |
Benoit Grégoire pushed to branch master at Tiki Wiki CMS Groupware / Tiki
Commits:
9531f7c1 by Joseph Lwanzo Kausi at 2025-11-24T21:01:08+00:00
[FIX] tiki-check: Enhance session.save_path error message with alternative...
---
* Update session.save_path messages for better localization and clarity
* [FIX] tiki-check: Enhance session.save_path error message with alternative solution for database session storage
See merge request tikiwiki/tiki!8721
- - - - -
2 changed files:
- lang/fr/language.php
- tiki-check.php
Changes:
=====================================
lang/fr/language.php
=====================================
@@ -21328,6 +21328,7 @@ $lang_current = array(
// "info" => "info",
"Errors will be logged, since log_errors is enabled. Also, display_errors is disabled. This is good practice for a production site, to log the errors instead of displaying them" => "Les erreurs seront consignées, car log_errors est activé. De plus, display_errors est désactivé. C'est une bonne pratique pour un site de production, de consigner les erreurs au lieu de les afficher",
"How to change this value" => "Comment changer cette valeur",
+
"Errors will be logged, since log_errors is enabled, but display_errors is also enabled. Good practice, especially for a production site, is to log all errors instead of displaying them" => "Les erreurs seront consignées, car log_errors est activé, mais display_errors est également activé. Une bonne pratique, notamment pour un site de production, consiste à consigner toutes les erreurs au lieu de les afficher",
// "Errors will not be logged, since log_errors is not enabled. Good practice, especially for a production site, is to log all errors" => "Errors will not be logged, since log_errors is not enabled. Good practice, especially for a production site, is to log all errors",
// "Errors will not be reported, because error_reporting and display_errors are both turned off. This may be appropriate for a production site but, if any problems occur, enable these in php.ini to get more information" => "Errors will not be reported, because error_reporting and display_errors are both turned off. This may be appropriate for a production site but, if any problems occur, enable these in php.ini to get more information",
@@ -21375,6 +21376,15 @@ $lang_current = array(
"Well set! The default setting of 'files' is recommended for Tiki" => "Bien réglé ! Le paramètre par défaut « fichiers » est recommandé pour Tiki.",
"The session.save_path must be writable" => "Le chemin d'accès de session.save_path doit être accessible en écriture.",
"The session.save_path is writable" => "Le chemin d'accès de session.save_path est accessible en écriture",
+"The %0 must be writable. %1 How to change this value %2" => "Le chemin d'accès de %0 doit être accessible en écriture. %1 Comment changer cette valeur %2",
+"The %0 is writable. %1 More info about %0 %2" => "Le chemin d'accès de %0 est accessible en écriture. %1 Plus d'informations sur %0 %2",
+"The session.save_path can't be checked because open_basedir is defined" => "Le chemin d’accès de session.save_path ne peut pas être vérifié car open_basedir est défini",
+"The %0 can't be checked because %1 is defined. %2 More info about %0 %3" => "Le %0 ne peut pas être vérifié car %1 est défini. %2 Plus d'informations sur %0 %3",
+"It doesn't matter though, since your session.save_handler is not set to 'files'" => "Cela n’a cependant pas d’importance, car votre session.save_handler n'est pas défini sur « files »",
+"The %0 is writable. It doesn't matter though, since your %1 is not set to 'files'. %2 More info about %0 %3" => "Le %0 est accessible en écriture. Cela n’a cependant pas d’importance, car votre %1 n'est pas défini sur « files ». %2 Plus d'informations sur %0 %3",
+"Alternative solution:" => "Solution alternative :",
+"Consider using database session storage instead. Navigate to Admin → General Settings, switch to 'Advanced' mode, look for the 'Sessions' group, and set 'Session storage location' to 'Database'. This will store sessions in the database instead of the filesystem. %0 Go to General Settings %1" => "Envisagez plutôt d’utiliser le stockage des sessions dans la base de données. Accédez à Admin → Paramètres généraux, passez en mode « Avancé », recherchez le groupe « Sessions » et définissez « Emplacement de stockage de session » sur « Base de données ». Cela stockera les sessions dans la base de données au lieu du système de fichiers. %0 Allez dans les paramètres généraux %1",
+"Go to General Settings" => "Allez dans les paramètres généraux",
// "If you would be using the recommended session.save_handler setting of 'files\\" => "If you would be using the recommended session.save_handler setting of 'files\\",
// "It doesn't matter though, since your session.save_handler is not set to 'files'" => "It doesn't matter though, since your session.save_handler is not set to 'files'",
"In conjunction with gc_divisor is used to manage probability that the gc (garbage collection) routine is started" => "En conjonction avec gc_divisor, il est utilisé pour gérer la probabilité que la routine gc (garbage collection) soit lancée",
=====================================
tiki-check.php
=====================================
@@ -1390,14 +1390,16 @@ if ($php_properties['session.save_handler']['setting'] == 'files') {
'fitness' => tra('bad'),
'fitness_status' => FITNESS_STATUS_BAD,
'setting' => $s,
- 'message' => tra('The session.save_path must be writable.') . ' <a href="#php_conf_info">' . tra('How to change this value') . '</a>'
+ 'message' => tr("The %0 must be writable. %1 How to change this value %2", 'session.save_path', '<a href="#php_conf_info">', '</a>') .
+ '<br><strong>' . tra('Alternative solution:') . '</strong> ' .
+ tr("Consider using database session storage instead. Navigate to Admin → General Settings, switch to 'Advanced' mode, look for the 'Sessions' group, and set 'Session storage location' to 'Database'. This will store sessions in the database instead of the filesystem. %0 Go to General Settings %1", '<a href="tiki-admin.php?page=general#contentadmin_general-2">', '</a>')
);
} else {
$php_properties['session.save_path'] = array(
'fitness' => tra('good'),
'fitness_status' => FITNESS_STATUS_GOOD,
'setting' => $s,
- 'message' => tra('The session.save_path is writable.') . ' <a href="#php_conf_info">' . tra('How to change this value') . '</a>'
+ 'message' => tr("The %0 is writable. %1 More info about %0 %2", 'session.save_path', '<a href="#php_conf_info">', '</a>')
);
}
} else {
@@ -1407,14 +1409,14 @@ if ($php_properties['session.save_handler']['setting'] == 'files') {
'fitness' => tra('unknown'),
'fitness_status' => FITNESS_STATUS_UNKNOWN,
'setting' => $s,
- 'message' => tra('The session.save_path can\'t be checked because open_basedir is defined.') . ' <a href="#php_conf_info">' . tra('How to change this value') . '</a>'
+ 'message' => tr("The %0 can't be checked because %1 is defined. %2 More info about %0 %3", "session.save_path", "open_basedir", '<a href="#php_conf_info">', '</a>')
);
} else {
$php_properties['session.save_path'] = array(
'fitness' => tra('info'),
'fitness_status' => FITNESS_STATUS_INFO,
'setting' => $s,
- 'message' => tra('The session.save_path is writable.') . tra('It doesn\'t matter though, since your session.save_handler is not set to \'files\'.') . ' <a href="#php_conf_info">' . tra('How to change this value') . '</a>'
+ 'message' => tr("The %0 is writable. It doesn't matter though, since your %1 is not set to 'files'. %2 More info about %0 %3", "session.save_path", "session.save_handler", '<a href="#php_conf_info">', '</a>')
);
}
}
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/9531f7c18f42a98071dd9905b778cdccf23cb09f
--
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/9531f7c18f42a98071dd9905b778cdccf23cb09f
You're receiving this email because of your account on gitlab.com.
_______________________________________________
TikiWiki-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-cvs