From 2b1727b7ed8ff9cfe0c479026257ce9bac9437b1 Mon Sep 17 00:00:00 2001 From: sparkyx Date: Sat, 14 Feb 2026 15:50:17 +0100 Subject: [PATCH 1/2] Bug : upgrade fails because account_repository has changed --- include/class/noalyss_user.class.php | 28 +++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/include/class/noalyss_user.class.php b/include/class/noalyss_user.class.php index b27357aba..c0920209b 100644 --- a/include/class/noalyss_user.class.php +++ b/include/class/noalyss_user.class.php @@ -401,7 +401,32 @@ class Noalyss_User $sql_cond=" where use_id=$1"; $sql_array=array($this->id); } - $sql="select use_id, + /** + * mono version + */ + if ( $this->repository->exist_table("repo_version")) { + $repo_version = $this->repository->get_value("select val from repo_version"); + } else { + $repo_version = $this->repository->get_value("select val from version"); + } + /** + * when upgrading , ACCOUNT_REPOSITORY is not yet upgraded + */ + if ( $repo_version < 21) + { + $sql="select use_id, + use_first_name, + use_name, + use_login, + use_active, + use_admin, + use_pass, + use_email + from ac_users "; + $row=array(); + $row['use_auth_method']=$row['use_otp_secret']=""; + } else { + $sql="select use_id, use_first_name, use_name, use_login, @@ -412,6 +437,7 @@ class Noalyss_User use_auth_method, use_otp_secret from ac_users "; + } $Res=$this->repository->exec_sql($sql.$sql_cond, $sql_array); if (($Max=Database::num_row($Res))==0) return -1; From a803b8dc6681eff2a74952bc5edaeb92d422c6c3 Mon Sep 17 00:00:00 2001 From: sparkyx Date: Sat, 14 Feb 2026 16:20:16 +0100 Subject: [PATCH 2/2] config LOCALE add comment --- include/lib/config_file.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/include/lib/config_file.php b/include/lib/config_file.php index 07fe9c4e9..dbc7bec13 100644 --- a/include/lib/config_file.php +++ b/include/lib/config_file.php @@ -165,7 +165,13 @@ function display_file_config($p_array, $from_setup = 1, $p_os = 1) echo PHP_EOL; print ('define ("NOALYSS_ADMIN_PASSWORD","' . $cpassword_admin . '");'); echo PHP_EOL; - + echo " + /* + * LOCALE 0 means no language change , on some PHP installation + * you cannot change the language + */ + "; + echo PHP_EOL; print ('define ("LOCALE",' . $clocale . ');'); echo PHP_EOL; echo "