Results 1 to 7 of 7

Thread: LDAP enabled leads to Fatal error: Call to undefined function: htmlspecialchars_decod

  1. #1
    mbeaudoin is offline Member
    Join Date
    Oct 2007
    Posts
    7

    Default LDAP enabled leads to Fatal error: Call to undefined function: htmlspecialchars_decod

    Dear Forum,

    If I enable de LDAP authentication I get the following message right after login,

    Fatal error: Call to undefined function: htmlspecialchars_decode()
    in /usr/share/sugarcrm/modules/Users/authentication/LDAPAuthenticate/LDAPAuthenticateUser.php on line 231

    I have to reset the LDAP switch via mysql in order to be able to log back to the application, any help is more than welcome.
    I use version 4.5.1f (Build 1094) which is a rPath appliance that is upgraded.

    Regards

    Marc

  2. #2
    muhnihausen is offline Member
    Join Date
    Sep 2007
    Posts
    7

    Default Re: LDAP enabled leads to Fatal error: Call to undefined function: htmlspecialchars_decod

    Same issue here.

    Where did you modify the LDAP switch?

    Thanks,
    Justin

  3. #3
    mbeaudoin is offline Member
    Join Date
    Oct 2007
    Posts
    7

    Default Re: LDAP enabled leads to Fatal error: Call to undefined function: htmlspecialchars_decod

    Simply acces your db using mysql administrator and set ldap_enabled to 0, if I recall it is in the config table.

    Best of luck

    Marc

    Quote Originally Posted by muhnihausen
    Same issue here.

    Where did you modify the LDAP switch?

    Thanks,
    Justin

  4. #4
    muhnihausen is offline Member
    Join Date
    Sep 2007
    Posts
    7

    Default Re: LDAP enabled leads to Fatal error: Call to undefined function: htmlspecialchars_decod

    Thanks!

    Back to square one trying to get rid of the fatal error....

  5. #5
    mbeaudoin is offline Member
    Join Date
    Oct 2007
    Posts
    7

    Default Re: LDAP enabled leads to Fatal error: Call to undefined function: htmlspecialchars_decod

    If I find a fix I'll let you know and post on this thread. Please keep us posted with your findings

    Thanks

    Marc

  6. #6
    vmarkovsky is offline Junior Member
    Join Date
    Oct 2007
    Posts
    2

    Default Re: LDAP enabled leads to Fatal error: Call to undefined function: htmlspecialchars_decod

    http://www.sugarcrm.com/forums/showthread.php?t=27190
    $server = $GLOBALS['ldap_config']->settings['ldap_hostname'];
    $base_dn = $GLOBALS['ldap_config']->settings['ldap_base_dn'];
    $admin_user = $GLOBALS['ldap_config']->settings['ldap_admin_user'];
    $admin_password = $GLOBALS['ldap_config']->settings['ldap_admin_password'];
    or
    http://php.net/manual/en/function.ht...ars-decode.php
    Code:
    <?php
    
    if ( !function_exists('htmlspecialchars_decode') )
    {
        function htmlspecialchars_decode($text)
        {
            return strtr($text, array_flip(get_html_translation_table(HTML_SPECIALCHARS)));
        }
    }
    
    ?>

  7. #7
    kuske's Avatar
    kuske is offline Sugar Community Member
    Join Date
    Oct 2007
    Location
    Germany
    Posts
    2,597

    Default Re: LDAP enabled leads to Fatal error: Call to undefined function: htmlspecialchars_decod


Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Editview's have stopped appearing
    By atheimer98 in forum Help
    Replies: 12
    Last Post: 2008-12-08, 03:00 PM
  2. PHP Warnings after install add-in Module
    By kgeving in forum Help
    Replies: 1
    Last Post: 2006-08-08, 05:54 PM
  3. Replies: 0
    Last Post: 2006-07-28, 12:07 AM
  4. Custom fields disappearing
    By wmike in forum Help
    Replies: 1
    Last Post: 2006-07-17, 06:02 PM
  5. ERROR in 4.01
    By rateck in forum Help
    Replies: 3
    Last Post: 2006-02-02, 10:00 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •