Errors when used with PHP 7.2.2
When attempting to use phpldapadmin on a FreeBSD-11.1 machine with PHP 7.2.2 (cli) installed, I receive the following errors:
Deprecated: Function create_function() is deprecated in /usr/local/www/phpldapadmin/lib/functions.php on line 1083
Unrecognized error number: 8192: Function create_function() is deprecated PHP Debug Backtrace File /usr/local/www/phpldapadmin/lib/functions.php (184)
Function error (a:5:{i:0;s:73:"Unrecognized error number: 8192: Fu...) File /usr/local/www/phpldapadmin/lib/functions.php (1083)
Function app_error_handler (a:5:{i:0;i:8192;i:1;s:40:"Function create_function...) File /usr/local/www/phpldapadmin/lib/Template.php (145)
Function masort (a:2:{i:0;a:2:{i:0;O:9:"Attribute":34:{s:4:"name";s...) File /usr/local/www/phpldapadmin/lib/xmlTemplates.php (293)
Function storeTemplate (a:1:{i:0;a:1:{s:8:"template";a:9:{s:12:"askcontain...) File /usr/local/www/phpldapadmin/lib/Template.php (60)
Function __construct (a:5:{i:0;i:1;i:1;s:20:"simpleSecurityObject";i:2;s...) File /usr/local/www/phpldapadmin/lib/xmlTemplates.php (132)
Function __construct (a:5:{i:0;i:1;i:1;s:20:"simpleSecurityObject";i:2;s...) File /usr/local/www/phpldapadmin/lib/PageRender.php (43)
Function __construct (a:1:{i:0;i:1;}) File /usr/local/www/phpldapadmin/lib/PageRender.php (324)
Function getTemplates (a:0:{}) File /usr/local/www/phpldapadmin/lib/TemplateRender.php (44)
Function getTemplateChoice (a:0:{}) File /usr/local/www/phpldapadmin/htdocs/template_engine.php (48)
Function accept (a:0:{}) File /usr/local/www/phpldapadmin/htdocs/cmd.php (59)
Function include (a:1:{i:0;s:54:"/usr/local/www/phpldapadmin/htdocs/...)
Is there anything I can do to correct this. The program is unusable as it currently is.
I have created a github fork and imported other peoples commits plus my own fixes to https://github.com/breisig/phpLDAPadmin . I have tested it (just basic tests) on php 7.1 [7.1.16] and php 7.2 [7.2.4] and it works.
I have installed it on a FreeBSD 11.1 p9 amd64 machine, and it works perfectly. I have not completely tested it out; however, I feel it will be a great replacement for the older, apparently unmaintained, version. Thanks!
Super nice work. Run on ubuntu 18.04 and php 7.2 .
@OndrejLycka could you let me know which webserver you managed to get it working? I am running 18.04 and using nginx but still having problems as described here: https://github.com/breisig/phpLDAPadmin/issues/4#issue-371259382
I use apache2. Version from package has (mayby still have) erros. Version from https://github.com/breisig/phpLDAPadmin is OK.
---------- Původní e-mail ---------- Od: Hasan Cem Cerit [email protected] Komu: leenooks/phpLDAPadmin [email protected] Datum: 18. 10. 2018 0:06:56 Předmět: Re: [leenooks/phpLDAPadmin] Errors when used with PHP 7.2.2 (#61) " @OndrejLycka(https://github.com/OndrejLycka) could you let me know which webserver you managed to get it working? I am running 18.04 and using nginx but still having problems as described here: breisig/phpLDAPadmin#4 (comment) (https://github.com/breisig/phpLDAPadmin/issues/4#issue-371259382)
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub (https://github.com/leenooks/phpLDAPadmin/issues/61#issuecomment-430806565), or mute the thread (https://github.com/notifications/unsubscribe-auth/AVYGmD8SekqIb90vx4H_RC8Xr7Vu2WAbks5ul6n8gaJpZM4SBeQ-) . "
For those who are having this issue, the workaround is here:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=890127#10
Kudos to Luciano França 👍
I have created a github fork and imported other peoples commits plus my own fixes to https://github.com/breisig/phpLDAPadmin . I have tested it (just basic tests) on php 7.1 [7.1.16] and php 7.2 [7.2.4] and it works.
Ubuntu 18.04.1 LTS+PHP 7.2.10 it works!!! Thx!!!
I have created a github fork and imported other peoples commits plus my own fixes to https://github.com/breisig/phpLDAPadmin . I have tested it (just basic tests) on php 7.1 [7.1.16] and php 7.2 [7.2.4] and it works.
you should fork this repo~
How do we raise this issue (and the new fork) with the Ubunbtu folks? The version out of the Ubuntu repo still has this issue.
Is this project no longer maintained then?
Does pull request #62 may fix this?
Works for me https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=89012 7
KK
Ubuntu bug report: https://bugs.launchpad.net/ubuntu/+source/phpldapadmin/+bug/1829987