phpldapadmin incompatible with php-7.2 in bionic
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
phpldapadmin (Ubuntu) |
Fix Released
|
Undecided
|
William Desportes |
Bug Description
Hi,
on Ubuntu 18.4 LTS bionic phpldapadmin prints the following messages:
Deprecated: Function create_function() is deprecated in /usr/share/
Notice: Undefined variable: _SESSION in /usr/share/
Warning: Cannot modify header information - headers already sent by (output started at /usr/share/
Error
E_WARNING: Cannot modify header information - headers already sent by (output started at /usr/share/
PHP Debug Backtrace
File /usr/share/
Function error (a:5:{i:
File /usr/share/
Function app_error_handler (a:5:{i:
File /usr/share/
Function header (a:2:{i:
File /usr/share/
Function require_once (a:1:{i:
File /usr/share/
Function require_once (a:1:{i:
File /usr/share/
Function include (a:1:{i:
Printing warnings to the HTML output is deactivated in my servers php configuration. So this must be turned on again somewhere in the code of phpldapadmin.
As far as I can see Ubuntu 18.10 Cosmic, 19.4 Disco and the upcoming (19.10) Eoan should be also affected, but I'm experiencing this on Ubuntu 18.4 bionic.
This issues were already discussed in:
https:/
and
https:/
Logging in to phpldapadmin isn't possible due to that.
Kind regards,
Lars
Changed in phpldapadmin (Ubuntu): | |
status: | Confirmed → Fix Released |
assignee: | nobody → William Desportes (williamdes) |
Hi again,
for Ubuntu 18.4 bionic LTS I cherry picked the following three commits from /github. com/leenooks/ phpLDAPadmin compat. patch from that: /github. com/leenooks/ phpLDAPadmin/ commit/ 49ef60f26b78a81 dbaa9727be11ee3 fb8db0b5bb /github. com/leenooks/ phpLDAPadmin/ commit/ 73b7795bc0b2324 91de35dd91ad9ea 86ad34eae8 /github. com/leenooks/ phpLDAPadmin/ commit/ e37b498de19a530 1188bc8d93b0b67 d7ce717d3a
https:/
and build the appended php-7.2-
1. https:/
2. https:/
3. https:/
That works for me on bionic.
On newer releases this should also apply but you might need additional commits/patches e.g. /github. com/leenooks/ phpLDAPadmin/ commit/ 7b1f6b513220483 6a75674045309ed b7005b87d2
Fix for PHP 7.3 - deprecated continue in switch
https:/
For Ubuntu 19.10 Eoan I would suggest to upgrade to a newer upstream version from <https:/ /github. com/leenooks/ phpLDAPadmin>. As far as I can see this moved from sourceforge to github not long ago, and the code base of phpldapadmin you're relaying on seems to be quite old. ;-)
I'm also crossposting this patch suggestion to the debian bug, since the debian packages are still containing the same issue as far as I can see. My launchpad Bug for this is on <https:/ /bugs.launchpad .net/ubuntu/ +source/ phpldapadmin/ +bug/1829987>.
Kind regargs,
Lars
--
Lars Kollstedt
Telefon: +49 6151 16-71027
E-Mail: <email address hidden>
man-da.de GmbH
Dolivostraße 11
64293 Darmstadt
Sitz der Gesellschaft: Darmstadt
Amtsgericht Darmstadt, HRB 9484
Geschäftsführer: Andreas Ebert