Package: phpldapadmin
Version: 1.2.6.7-4
Severity: important

Dear Maintainer,

Fresh installation of Debian Trixie with phpldapadmin.

The main frame body is not rendered. The following error is logged:

PHP Deprecated: htmlspecialchars(): Passing null to parameter #1 ($string) of 
type string is deprecated in /usr/share/phpldapadmin/lib/HTMLTree.php on line 
101

Workaround: Change line 101 in /usr/share/phpldapadmin/lib/HTMLTree.php from:

htmlspecialchars($server->getContainer($base->getDN()))

to:

htmlspecialchars($server->getContainer($base->getDN()) ?? '')

After this change, the main frame renders correctly.


-- System Information:
Debian Release: 13.6
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 6.12.107+deb13-amd64 (SMP w/1 CPU thread; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) (ignored: LC_ALL 
set to en_US.UTF-8), LANGUAGE=en_US.UTF-8
Shell: /bin/sh linked to /usr/bin/bash
Init: systemd (via /run/systemd/system)

Versions of packages phpldapadmin depends on:
ii  debconf [debconf-2.0]   1.5.91
ii  php8.4 [php]            8.4.24-1~deb13u1
ii  php8.4-ldap [php-ldap]  8.4.24-1~deb13u1
ii  php8.4-xml [php-xml]    8.4.24-1~deb13u1
ii  ucf                     3.0052

Versions of packages phpldapadmin recommends:
ii  apache2 [httpd]                             2.4.68-1~deb13u1
ii  libapache2-mod-php8.4 [libapache2-mod-php]  8.4.24-1~deb13u1
ii  php8.4-fpm [php-fpm]                        8.4.24-1~deb13u1

Versions of packages phpldapadmin suggests:
pn  www-browser  <none>

-- Configuration Files:
/etc/phpldapadmin/templates/creation/alias.xml [file not found]
/etc/phpldapadmin/templates/creation/courierMailAccount.xml [file not found]
/etc/phpldapadmin/templates/creation/courierMailAlias.xml [file not found]
/etc/phpldapadmin/templates/creation/dNSDomain.xml [file not found]
/etc/phpldapadmin/templates/creation/example.xml [file not found]
/etc/phpldapadmin/templates/creation/inetOrgPerson.xml [file not found]
/etc/phpldapadmin/templates/creation/kolabPerson.xml [file not found]
/etc/phpldapadmin/templates/creation/mozillaOrgPerson.xml [file not found]
/etc/phpldapadmin/templates/creation/organizationalRole.xml [file not found]
/etc/phpldapadmin/templates/creation/ou.xml changed [not included]
/etc/phpldapadmin/templates/creation/posixAccount.xml [file not found]
/etc/phpldapadmin/templates/creation/posixGroup.xml [file not found]
/etc/phpldapadmin/templates/creation/sambaDomain.xml [file not found]
/etc/phpldapadmin/templates/creation/sambaGroupMapping.xml [file not found]
/etc/phpldapadmin/templates/creation/sambaMachine.xml [file not found]
/etc/phpldapadmin/templates/creation/sambaSamAccount.xml [file not found]
/etc/phpldapadmin/templates/creation/sendmailMTAAliasObject.xml [file not found]
/etc/phpldapadmin/templates/creation/sendmailMTAClass.xml [file not found]
/etc/phpldapadmin/templates/creation/sendmailMTACluster.xml [file not found]
/etc/phpldapadmin/templates/creation/sendmailMTAMapObject.xml [file not found]
/etc/phpldapadmin/templates/creation/sendmailVirtualDomain.xml [file not found]
/etc/phpldapadmin/templates/creation/sendmailVirtualUser.xml [file not found]
/etc/phpldapadmin/templates/creation/simpleSecurityObject.xml [file not found]
/etc/phpldapadmin/templates/modification/inetOrgPerson.xml [file not found]
/etc/phpldapadmin/templates/modification/posixGroup.xml [file not found]

-- debconf information excluded

Reply via email to