Upgrading ABCD2 -ldap error

Home Forums Error reporting Upgrading ABCD2 -ldap error

This forum is for reporting errors, bugs and malfunctions in the system.

Tagged: 

  • Creator
    Topic
  • #5169
    Renate Morgenstern
    Participant
    Helpful
    Up
    0
    Down
    Not Helpful
    ::

    Hi,

    I updated my ABCD 2.2 files from Github. There were 3 newer files:

    Fast-forward
    www/htdocs/assets/css/styles.css
    www/htdocs/central/common/inicio.php
    www/htdocs/central/common/ldap.php

    After restarting Apache2 service, and opening ABCD I get the following error.

    Fatal error: Uncaught Error: Call to undefined function ldap_connect() in /opt/ABCD/www/htdocs/central/common/ldap.php:7 Stack trace: #0 /opt/ABCD/www/htdocs/central/common/inicio.php(21): require_once() #1 {main} thrown in /opt/ABCD/www/htdocs/central/common/ldap.php on line 7

    ABCD does not open anymore?

    Please help.

    Renate Morgenstern

     

Viewing 3 replies - 1 through 3 (of 3 total)
  • Author
    Replies
  • #5170
    Helpful
    Up
    0
    Down
    Not Helpful
    ::

    Hi Renate.

    The error “Call to undefined function ldap_connect()” happens because the ldap extension has not been enabled in the php.ini file.

    To fix this, I put a check in the file start.php that verifies if the variable $use_ldap is with the value 1=enabled. – The fix was sent in this PR: https://github.com/ABCD-DEVCOM/ABCD2/pull/470

    If you keep getting ldap errors after updating, revise your config.php file to look like this:

    $use_ldap=0;
    #5171
    Renate Morgenstern
    Participant
    Helpful
    Up
    0
    Down
    Not Helpful
    ::

    Hi,

    I used Git pull to upgrade the ldap.php file, but it was not downloaded?

    The version on ABCD Github is still the old one from last week.

    Where should I get the new version.

    Thanks

    Renate

    #5172
    Helpful
    Up
    0
    Down
    Not Helpful
    ::

    Hi Renate

    The error appeared because the file ldap.php was being triggered in the file inicio.php without considering the variable in the file config.php.

    Now it is only activated if the variable is with the value 1.

    By updating the file inicio.php the error disappeared?

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.