• efimort

    (@efimort)


    After updating php to latest version this is the error we receive when trying to login with the authldap plugin:

    2024/04/01 13:41:51 [error] 1998184#1998184: *51 FastCGI sent in stderr: “PHP message: PHP Warning: Attempt to read property “ID” on null in /var/www/html/staging/wp-content/themes/ort/Inc/Base/OrtHelperFunctions.php on line 714; PHP message: PHP Warning: Attempt to read property “ID” on null in /var/www/html/staging/wp-content/themes/ort/Inc/Base/OrtHelperFunctions.php on line 714; PHP message: PHP Warning: Attempt to read property “ID” on null in /var/www/html/staging/wp-content/themes/ort/Inc/Base/OrtHelperFunctions.php on line 714; PHP message: PHP Warning: Attempt to read property “ID” on null in /var/www/html/staging/wp-content/themes/ort/Inc/Base/OrtHelperFunctions.php on line 714; PHP message: PHP Warning: Attempt to read property “ID” on null in /var/www/html/staging/wp-content/themes/ort/Inc/Base/OrtHelperFunctions.php on line 714; PHP message: PHP Warning: Attempt to read property “ID” on null in /var/www/html/staging/wp-content/themes/ort/Inc/Base/OrtHelperFunctions.php on line 714; PHP message: PHP Warning: Attempt to read property “ID” on null in /var/www/html/staging/wp-content/themes/ort/Inc/Base/OrtHelperFunctions.php on line 714; PHP message: PHP Warning: Attempt to read property “ID” on null in /var/www/html/staging/wp-content/themes/ort/Inc/Base/OrtHelperFunctions.php on line 714; PHP message: [AuthLDAP] User ‘testuser’ logging in; PHP message: [AuthLDAP] about to do LDAP authentication; PHP message: [AuthLDAP] connect to LDAP server; PHP message: PHP Fatal error: Uncaught Error: Call to undefined function ldap_connect() in /var/www/html/staging/wp-content/plugins/authldap/src/Wrapper/Ldap.php:29

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author heiglandreas

    (@heiglandreas)

    Hey there.

    This looks like you have updated PHP to a newer version but didn’T install the ldap-extension (which is a requirement for AuthLDAP to work.

    As the extension is not installed, the function ldap_connect is not available and therefore the scripts fail due to an undefined function.

    Please check with your server-provider how to install or activate the ldap extension in PHP.

    Cheers

    Andreas

    Thread Starter efimort

    (@efimort)

    Which extension is needed?

    I’ve already installed all these extensions:

    [PHP Modules]
    calendar
    Core
    ctype
    curl
    date
    dom
    exif
    FFI
    fileinfo
    filter
    ftp
    gettext
    hash
    iconv
    imagick
    json
    libxml
    mbstring
    mysqli
    mysqlnd
    openssl
    pcntl
    pcre
    PDO
    pdo_mysql
    Phar
    posix
    random
    readline
    Reflection
    session
    shmop
    SimpleXML
    sockets
    sodium
    SPL
    standard
    sysvmsg
    sysvsem
    sysvshm
    tokenizer
    xml
    xmlreader
    xmlwriter
    xsl
    Zend OPcache
    zip
    zlib [Zend Modules]
    Zend OPcache
    Plugin Author heiglandreas

    (@heiglandreas)

    This looks like you have updated PHP to a newer version but didn’T install the ldap-extension (which is a requirement for AuthLDAP to work.

    With Ubuntu that should be something like apt install php8.3-ldap

    For more infos check out https://www.php.net/manual/de/book.ldap.php or ask favourite search engine for something like install php ldap

    Thread Starter efimort

    (@efimort)

    Thanks, after installing the php8.3-ldap it looks better except the weird 502 bad gateway I receive when trying to access some of the admin pages.

    Thanks

    • This reply was modified 8 months ago by efimort.
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Login error after updating to php 8.3’ is closed to new replies.