leenooks / phpLDAPadmin

phpLDAPadmin - Web based LDAP administration tool
www.phpldapadmin.org
GNU General Public License v2.0
536 stars 171 forks source link

Unable to login, with error UNHANDLED, $resource is not a resource #230

Closed vvatikiotis closed 1 year ago

vvatikiotis commented 1 year ago

When I try to login to phpldapadmin I receive the following error message with the following backtrace:

Error UNHANDLED, $resource is not a resource PHP Debug Backtrace File /usr/share/phpldapadmin/lib/functions.php (475) Function error ([a:5:{i:0;s:38:"UNHANDLED, $resource is not a resou...] File /usr/share/phpldapadmin/lib/ds_ldap.php (220) Function debug_dump_backtrace ([a:2:{i:0;s:38:"UNHANDLED, $resource is not a resou...] File /usr/share/phpldapadmin/lib/ds_ldap.php (337) Function connect ([a:3:{i:0;s:4:"user";i:1;b:0;i:2;b:0;}] File /usr/share/phpldapadmin/htdocs/login.php (32) Function login ([a:3:{i:0;s:28:"cn=admin,dc=xxx,dc=xx";i:1;s...] File /usr/share/phpldapadmin/htdocs/cmd.php (59) Function include ([a:1:{i:0;s:40:"/usr/share/phpldapadmin/htdocs/logi...]

Versions I'm running

image

I have other phpldapadmin versions running fine, can't figure out what's wrong with this one.

Cheers!

williamdes commented 1 year ago

Same issue as https://github.com/leenooks/phpLDAPadmin/issues/231#issuecomment-1704913666

You need to use PHP 8.2 ;)

williamdes commented 1 year ago

Alternative solution to the login problem, remove the two lines https://sources.debian.org/src/phpldapadmin/1.2.6.3-0.3/lib/ds_ldap.php/#L219

Or update it to https://github.com/leenooks/phpLDAPadmin/blob/BRANCH-1.2/lib/ds_ldap.php#L219

And update https://sources.debian.org/src/phpldapadmin/1.2.6.3-0.3/lib/ds_ldap.php/#L340 to https://github.com/leenooks/phpLDAPadmin/blob/BRANCH-1.2/lib/ds_ldap.php#L340

vvatikiotis commented 1 year ago

Installed php8.2. Problem resolved

williamdes commented 1 year ago

Installed php8.2. Problem resolved

Awesome, feel free to post here if you find bugs that I did not catch while doing the Debian packaging.

williamdes commented 8 months ago

https://tracker.debian.org/news/1506555/accepted-phpldapadmin-1263-03deb12u1-source-into-proposed-updates/