FS#77237 - [phpldapamdmin] wrong dependency php (Version 8.x - latest) - should be php74 or not given.

Attached to Project: Community Packages
Opened by Klaus Tachtler (tachtler) - Monday, 23 January 2023, 06:24 GMT
Last edited by Sergej Pupykin (sergej) - Monday, 06 February 2023, 18:26 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Sergej Pupykin (sergej)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

When installing phpLDAPadmin, the current php version (latest => 8.x) is installed as a dependency. However, phpLDAPadmin only works with php version 7.2 and above and not with a version => 8.x.

A possible solution would be to generally no longer have the dependency on php, or to use the latest php version 7.4, which however is currently only available as an AUR package = php74?


Additional info:
* package version(s) -> phpldapadmin 1.2.6.4-5
* config and/or log files etc. -/-
* link to upstream bug report, if any -/-

Steps to reproduce:
1. Install phpldapadmin
2. Configure a webserver with your needs
3. Open the phpLDAPadmin for example with a browser and an error occured
This task depends upon

Closed by  Sergej Pupykin (sergej)
Monday, 06 February 2023, 18:26 GMT
Reason for closing:  Fixed
Comment by Toolybird (Toolybird) - Monday, 23 January 2023, 07:38 GMT
php-7.x is "no go" because its EOL [1]. If it doesn't work with 8.x then maybe punt it to the AUR?

[1] https://archlinux.org/news/php-82-update-and-introduction-of-legacy-branch/
Comment by Klaus Tachtler (tachtler) - Monday, 23 January 2023, 07:48 GMT
Hi, Toolybird,

the package php (Version 8.x) is not really a problem, BUT it will be never used, because phpLDAPadmin will NOT run with it.

So you have to always install php74 packages from AUR repo. (php74, php74-cli, php74-gettext, php74-ldap, php74-xml and php74.fpm (optional) to get it to work).

And yes, your're right, PHP-7 is EOL, but not all project are migrated to PHP-8 - which is the problem here.


Thank you!
Klaus.
Comment by Sergej Pupykin (sergej) - Monday, 23 January 2023, 10:32 GMT
I use phpldapadmin with php8 (php 8.1.13-4). Which error do you get?
Comment by Klaus Tachtler (tachtler) - Tuesday, 24 January 2023, 13:55 GMT
Hi Sergej,

thank you for your answer. I will try that again and will report, if an error occurs.


Thank you!
Klaus.
Comment by Klaus Tachtler (tachtler) - Wednesday, 25 January 2023, 11:51 GMT
Hi Sergej,

When I try to use phpLDAPadmin with PHP 8.2.1 following error occurs on the website:
- Unbekannte Fehlernummer: 8192: Creation of dynamic property page::$index is deprecated

Part from the Web server log is:

Wed Jan 25 12:44:42.528311 2023] [proxy_fcgi:error] [pid 2453:tid 140552008787648] [client 192.168.0.50:58488] AH01071: Got error 'PHP message: PHP Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /usr/share/webapps/phpldapadmin/lib/xmlTemplates.php on line 82PHP message: PHP Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /usr/share/webapps/phpldapadmin/lib/xmlTemplates.php on line 125PHP message: PHP Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /usr/share/webapps/phpldapadmin/lib/ds_ldap.php on line 994PHP message: PHP Deprecated: Creation of dynamic property page::$index is deprecated in /usr/share/webapps/phpldapadmin/lib/page.php on line 38PHP message: PHP Deprecated: Creation of dynamic property page::$sysmsg is deprecated in /usr/share/webapps/phpldapadmin/lib/page.php on line 468PHP message: PHP Deprecated: Creation of dynamic property page::$_block is deprecated in /usr/share/webapps/phpldapadmin/lib/page.php on line 241'


Thank you in advance!
Klaus.
Comment by Klaus Tachtler (tachtler) - Wednesday, 25 January 2023, 15:19 GMT
Hi Sergej,

>>> PHP 8.1.14 <<<

When I try to use phpLDAPadmin with PHP PHP Version 8.1.14 following error occurs on the website:
- Fatal error: Uncaught Error: Undefined constant "LDAP_DEREF_NEVER" in /usr/share/webapps/phpldapadmin/lib/config_default.php:387 Stack trace: #0 /usr/share/webapps/phpldapadmin/lib/functions.php(266): Config->__construct() #1 /usr/share/webapps/phpldapadmin/htdocs/index.php(116): check_config() #2 {main} thrown in /usr/share/webapps/phpldapadmin/lib/config_default.php on line 387

Part from the Web server log is:

[Wed Jan 25 17:09:50.618428 2023] [proxy_fcgi:error] [pid 1057:tid 140370197067456] [client 192.168.0.50:34624] AH01071: Got error 'PHP message: PHP Fatal error: Uncaught Error: Undefined constant "LDAP_DEREF_NEVER" in /usr/share/webapps/phpldapadmin/lib/config_default.php:387\nStack trace:\n#0 /usr/share/webapps/phpldapadmin/lib/functions.php(266): Config->__construct()\n#1 /usr/share/webapps/phpldapadmin/htdocs/index.php(116): check_config()\n#2 {main}\n thrown in /usr/share/webapps/phpldapadmin/lib/config_default.php on line 387'


Thank you in advance!
Klaus.
Comment by Klaus Tachtler (tachtler) - Wednesday, 25 January 2023, 21:50 GMT
Hi Sergej,

With PHP Version 8.1.14 from php-legacy package - it works!

Maybe, this could be the right dependency too?


Thank you!
Klaus.
Comment by Klaus Tachtler (tachtler) - Saturday, 28 January 2023, 05:22 GMT
Hi Sergej,

please, have you seen my comments?


Thank you in advance.
Klaus.
Comment by Sergej Pupykin (sergej) - Saturday, 28 January 2023, 08:27 GMT
Hi! yes, I'll try to fix it in few days. Maybe patch it for 8.2 or change dependency.
Comment by Klaus Tachtler (tachtler) - Saturday, 28 January 2023, 15:35 GMT
Hi Sergej,

thank you, please do not rush, but thank you in advance.


Klaus.
Comment by Sergej Pupykin (sergej) - Saturday, 04 February 2023, 23:50 GMT
should be fixed in phpldapadmin-1.2.6.4-6
Comment by Klaus Tachtler (tachtler) - Sunday, 05 February 2023, 07:04 GMT
Hi Sergej,

great work, thank you so much!

# pacman -Q php
php 8.2.2-1

# pacman -Q phpldapadmin
phpldapadmin 1.2.6.4-6

and it work WITHOUT any errors!


Thank you!
Klaus.

Loading...