#1148867 Button "Add Mail settings" throws a Fatal error: Uncaught Error: Undefined constant "active" in /usr/share/gosa/plugins/personal/mailaddress/class_mailAccount.inc:198

#1148867#5
Date:
2026-09-24 11:48:50 UTC
From:
To:
(GOsa² 2.8~git20230203.10abe45+dfsg-1+deb12u2 on `Debian Edu 12.15`
has the same issue.)

Environment:
- Server Debian Edu 13.7 server with only the role "Main-server"
- (optional) Workstation installed with PXE from server above

How to reproduce:
- GUI log in to the system as any user
- Open Firefox with the default page `https://www/index.html.en`
- Choose GOsa² on the right-side menu
- Log in to GOsa²
- Open any user's account in GOsa²
- Choose the tab Mail (https://www/gosa/main.php?plug=1)
- Press the button "Add Mail settings"

Instead of a webpage, you can observe the ERROR:
```
Fatal error: Uncaught Error: Undefined constant "active" in
/usr/share/gosa/plugins/personal/mailaddress/class_mailAccount.inc:198
Stack trace: #0 /usr/share/gosa/include/class_tabs.inc(172):
mailAccount->execute() #1
/usr/share/gosa/include/class_management.inc(224): tabs->execute() #2
/usr/share/gosa/plugins/admin/users/main.inc(44):
management->execute() #3 /usr/share/gosa/html/main.php(427):
require('...') #4 {main} thrown in
/usr/share/gosa/plugins/personal/mailaddress/class_mailAccount.inc on
line 198
```

Records in apache2 logs:
```
==> error.log <==
[Thu Sep 24 13:26:32.166188 2026] [php:error] [pid 2340:tid 2340]
[client 10.0.2.2:52756] PHP Fatal error:  Uncaught Error: Undefined
constant "active" in
/usr/share/gosa/plugins/personal/mailaddress/class_mailAccount.inc:198\nStack
trace:\n#0 /usr/share/gosa/include/class_tabs.inc(172):
mailAccount->execute()\n#1
/usr/share/gosa/include/class_management.inc(224): tabs->execute()\n#2
/usr/share/gosa/plugins/admin/users/main.inc(44):
management->execute()\n#3 /usr/share/gosa/html/main.php(427):
require('...')\n#4 {main}\n  thrown in
/usr/share/gosa/plugins/personal/mailaddress/class_mailAccount.inc on
line 198, referer: https://www/gosa/main.php?plug=1

==> access.log <==
10.0.2.2 - - [24/Sep/2026:13:26:32 +0200] "POST /gosa/main.php?plug=1
HTTP/1.1" 200 1034 "https://www/gosa/main.php?plug=1" "Mozilla/5.0
(X11; Linux x86_64; rv:140.0) Gecko/20100101 Firefox/140.0"
```

#1148867#8
Date:
2026-09-25 08:02:37 UTC
From:
To:
Hello,

Bug #1148867 in gosa reported by you has been fixed in the
Git repository and is awaiting an upload. You can see the commit
message below and you can check the diff of the fix at:

https://salsa.debian.org/debian-edu-pkg-team/gosa/-/commit/bd5c9f9aadcf715d8754792297212515f328231f
------------------------------------------------------------------------
debian/patches: Add 1159_Fix-Undefined-constant-in-mailAccount.patch. Fix fatal error with an undefined constant in mailAccount.inc (Closes: #1092291, #1148867).
------------------------------------------------------------------------

(this message was generated automatically)
-- 
Greetings

https://bugs.debian.org/1148867

#1148867#15
Date:
2026-09-25 08:41:30 UTC
From:
To:
Control: reassing -1 gosa-plugins-mailaddress
Control: found -1 2.8~git20211027.08b10a2-1


This issue needs to be fixed in gosa-plugins-mailaddress, not the main
gosa package.

Mike

#1148867#20
Date:
2026-09-25 09:31:47 UTC
From:
To:
Hello,

Bug #1148867 in gosa-plugins-mailaddress reported by you has been fixed in the
Git repository and is awaiting an upload. You can see the commit
message below and you can check the diff of the fix at:

https://salsa.debian.org/debian-edu-pkg-team/gosa-plugins-mailaddress/-/commit/f41b5db3851c6df96cdf21f99e7df358a7dd2edf
------------------------------------------------------------------------
debian/patches: Add 1011_Fix-Undefined-constant-in-mailAccount.patch. Fix fatal error with an undefined constant in mailAccount.inc. Thanks to Lars Kruse for submitting the fix. (Closes: #1092291, #1148867).
------------------------------------------------------------------------

(this message was generated automatically)
-- 
Greetings

https://bugs.debian.org/1148867

#1148867#25
Date:
2026-09-25 09:50:13 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
gosa-plugins-mailaddress, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1148867@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Mike Gabriel <sunweaver@debian.org> (supplier of updated gosa-plugins-mailaddress package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Fri, 25 Sep 2026 10:50:59 +0200
Source: gosa-plugins-mailaddress
Architecture: source
Version: 2.8~git20211027.08b10a2-4
Distribution: unstable
Urgency: medium
Maintainer: Debian Edu Packaging Team <debian-edu-pkg-team@lists.alioth.debian.org>
Changed-By: Mike Gabriel <sunweaver@debian.org>
Closes: 1092291 1148867
Changes:
 gosa-plugins-mailaddress (2.8~git20211027.08b10a2-4) unstable; urgency=medium
 .
   * debian/patches:
     + Add 1010_fix-entry-removal-in-mailaddress-plugin.patch. Fix entry removal
       in mail plugin.
     + Add 1011_Fix-Undefined-constant-in-mailAccount.patch. Fix fatal error with
       an undefined constant in mailAccount.inc. Thanks to Lars Kruse for
       submitting the fix. (Closes: #1092291, #1148867).
     + Add 1012_php84-deprecated-static-class-plinfo.patch. Fix deprecated use of
       get_class() without params. (See gosa src:pkg bug #1147711).
Checksums-Sha1:
 85021953a85ddd4441a917c7370acedadb55960a 2282 gosa-plugins-mailaddress_2.8~git20211027.08b10a2-4.dsc
 5019ea22abb732118cf023ada06de1ff83c998c6 4564 gosa-plugins-mailaddress_2.8~git20211027.08b10a2-4.debian.tar.xz
 4a72fa81e3519214dd55c6cc0c826f2599fe9a7e 6847 gosa-plugins-mailaddress_2.8~git20211027.08b10a2-4_source.buildinfo
Checksums-Sha256:
 7c0996006a9e6044cff036b50dd9cee23c62d475e4befabb6f4a4c69e74f489e 2282 gosa-plugins-mailaddress_2.8~git20211027.08b10a2-4.dsc
 5910036685f5c047280d9bfd2bfa4b831b04c905e81c4658330362771f6e472c 4564 gosa-plugins-mailaddress_2.8~git20211027.08b10a2-4.debian.tar.xz
 bee54661aa607c45810c81a8f3ead3f540f000f62a64aed9fcb3e7f78e374dd2 6847 gosa-plugins-mailaddress_2.8~git20211027.08b10a2-4_source.buildinfo
Files:
 67156d0d69a26fb286707a63abc688ae 2282 web optional gosa-plugins-mailaddress_2.8~git20211027.08b10a2-4.dsc
 a6b3a0aa791123e68abcda40ce7238c0 4564 web optional gosa-plugins-mailaddress_2.8~git20211027.08b10a2-4.debian.tar.xz
 65a2b3b723b05d7d489610f75283a099 6847 web optional gosa-plugins-mailaddress_2.8~git20211027.08b10a2-4_source.buildinfo
-----BEGIN PGP SIGNATURE-----

iQJJBAEBCgAzFiEEm/uu6GwKpf+/IgeCmvRrMCV3GzEFAmq2PzUVHHN1bndlYXZl
ckBkZWJpYW4ub3JnAAoJEJr0azAldxsxZEQP/igZwsk13gN9gA48rdIs0gooCDPE
kLNWny7cqnqVB0nH6draLaWxaWX3smVB5dqqy7tvuq9D8o29cYCVBFDZX4ZYDZSA
iG4xp4ytAqEtjEmaz11B3dnO29DltPGJiBIXm9jSDTF9b8MFyxEU/gHfF+Hu1PPG
VyiNcnpOdq9sB+UQ1TCAG+H9B7AuCR3Dr8RHunjD3sPspy0WWngW/P9Z7HVa7dpP
IrtogW11tuXz2jZ+PizTQIqaYgunwQUjzAJSK2b09nWRwm21TPG6lIeQyOYTITC0
BgmKITI2wvK8A2sF7VaRtDy8vUiDCVEfGzUpg+nakl8iLIDuan9vHgbIBd+GjbUZ
60csTzDk832Q3tx4eJaniKwkQX/SWR54/ralLuNgfpOqKk69O7Z/XuDrbaXkt8bt
AEnoTyr+uMiMNXHYsLQbQYoe9GR577hILx+SFH5Wa86v8+xVgiqrqqbfqj1ACLpj
hIz3akcn/IQflfIz+j1FkFaNXSAkq4blOzCb8sTFUeRZAz0CetAzpLrTRb5EPeYb
uznoKzTEnrD7Wx4CBaGyvZ823Y/co1x5rQkXCnpv4fm76aMeBU0PZQs0vqSeGTVp
B/TMzQuq4oA6ewhZXha1OyzOB41f6ijNPIZb+z1SSZSVN3ul07Fd9lMK+82G7vJp
B07hevqPlzoSemwG
=aOPC
-----END PGP SIGNATURE-----