Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Page 1 of 2 1 2 LastLast
Results 1 to 15 of 17
  1. #1
    Member
    Join Date
    Mar 2002
    Location
    San Francisco
    Posts
    257

    Question Horde - "Undefined index: ..." error.

    Hello,

    I just moved an account from one server to another.

    Horde is showing this error when the user logs in.:

    A fatal error has occurred:

    DB Error: connect failed

    [line 108 of /usr/local/cpanel/base/horde/lib/Prefs/sql.php]

    Details have been logged for the administrator.
    Then in the inbox I see this one:

    Notice: Undefined index: direct_access in /usr/local/cpanel/base/horde/imp/templates/menu/menu.inc on line 53
    I found several threads on this subject:

    http://forums.cpanel.net/showthread....ndefined+index
    this one sugests I try

    1) chown -R cpanel:cpanel horde/
    2) look into your /home/usrname/etc folder and open all the files there in any editor fix the path to the home folders

    http://forums.cpanel.net/showthread....ndefined+index
    this one sugests I try

    1) chown -R cpanel:cpanel horde/
    2) /scripts/upcp --force

    http://forums.cpanel.net/showthread....ndefined+index
    this one sugests I try

    1) chown -R cpanel:cpanel horde/
    2) change versions then /scripts/upcp

    http://forums.cpanel.net/showthread....ndefined+index
    This one said
    1) reboot

    http://forums.cpanel.net/showthread....ndefined+index
    This one said

    1) exit IE and re-enter

    I have tired all of these but rebooting with no succes yet. Several upcps, fixwebmail, rebuildhorde, fullhordereset...

    Does anyone know if there is one official fix for this? So far it seems like loads of folks are suffering from this...

  2. #2
    Member
    Join Date
    Mar 2002
    Location
    San Francisco
    Posts
    257

    Default

    got an answer form Cpanel:

    Usually this is because the horde db doesn't exists. You can confirm this by doing the following from the command line:

    [~]# mysql horde

    If it does not exist, you will see:

    ERROR 1049: Unknown database 'horde'


    If this is the case, run the following:

    [~]# mysqladmin create horde
    [~]# /scripts/fullhordereset
    It worked and fixed it for me

  3. #3
    Member
    Join Date
    Dec 2003
    Location
    USA
    Posts
    56

    Default

    this resolved the issue for me thanks
    Jamie Havens


  4. #4
    Member
    Join Date
    Apr 2004
    Location
    New Zealand
    Posts
    23

    Default

    OK I just tried that and it removed this error:

    A fatal error has occurred:

    DB Error: connect failed

    [line 108 of /usr/local/cpanel/base/horde/lib/Prefs/sql.php]

    Details have been logged for the administrator.
    However, this one still remains:

    Notice: Undefined index: direct_access in /usr/local/cpanel/base/horde/imp/templates/menu/menu.inc on line 53
    Any ideas?

  5. #5
    Member
    Join Date
    Nov 2002
    Posts
    6

    Default

    I'm having this same issue as well. Fixed the DB errors, and now see the "Notice: Undefined index: direct_access in /usr/local/cpanel/base/horde/imp/templates/menu/menu.inc on line 53"

  6. #6
    Member
    Join Date
    May 2004
    Posts
    7

    Default

    Same here. Anyone got a fix?

  7. #7
    Member
    Join Date
    Dec 2003
    Location
    USA
    Posts
    56

    Default

    would you like me to take a look any one? just contact me if so http://opticalnet.us/contact/
    Jamie Havens


  8. #8
    Member
    Join Date
    Feb 2003
    Posts
    252

    Default

    Same problem. Anyone have a fix?

    Mike

  9. #9
    Member
    Join Date
    Aug 2003
    Posts
    23

    Default

    <-- Another with the problem. Some idea would be appreciated. I'm stumped. It's related to the logout function.

  10. #10
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Feb 2003
    Location
    Gothenburg, Sweden
    Posts
    324

    Default

    1. Open WHM for the server
    2. Click on Change a User or Database Password under mysql
    3. Look up the horde database (if it's not there, do what denisdekat09 wrote in this thread)
    4. Change password to the one you got from the /scripts/fullresethorde command
    5. Log out of horde if you were logged in.

    That should do it.

    twitter: oderland_david

  11. #11
    Member
    Join Date
    Mar 2003
    Location
    Europe
    Posts
    18

    Default

    Setting
    $conf['debug_level'] = E_ERROR;
    in /usr/local/cpanel/base/horde/config/horde.php will prevent the error
    Notice: Undefined index: direct_access in /usr/local/cpanel/base/horde/imp/templates/menu/menu.inc on line 53
    to be displayed

  12. #12
    Member
    Join Date
    Jun 2004
    Location
    Canada
    Posts
    378

    Default

    I did that mysqladmin create horde then the full horde reset and that worked wonderfully.. no errors what so ever now..

    Thanks people!
    Sheldon

    PS... I wonder why all of us had this problem at the same time!
    Sheldon King
    Server Adminisrator
    http://www.forgehosting.com

  13. #13
    Member
    Join Date
    Jun 2003
    Posts
    22

    Default

    Originally posted by mjost
    Setting
    in /usr/local/cpanel/base/horde/config/horde.php will prevent the error to be displayed
    Hi gang,
    mjost has the right idea. This error message is simply a notice from PHP. It comes from sloppy code in the file:
    /usr/local/cpanel/base/horde/imp/templates/menu/menu.inc

    The line in question (line 53 for me) looks like this:
    if ($registry->getMethod('auth/logout') == 'imp' && !$imp['direct_access']) {

    PHP is griping because $imp['direct_access'] isn't a valid array index and whoever coded this didn't think to test the variable first. You can safely test the variable to see if it exists using the isset() function. Simply alter the line to make it look like this:
    if ($registry->getMethod('auth/logout') == 'imp' && !isset($imp['direct_access'])) {

    Notice the only change I made was wrapping the $imp['direct_access']) in the !isset() function. Remember, before you mess with the code, make sure you have a backup in case you accidentally bork something up.

  14. #14
    Member
    Join Date
    Oct 2001
    Posts
    348

    Default

    This thread really helps,tks.

  15. #15
    cPanel Partner NOC cPanel Partner NOC Badge myusername's Avatar
    Join Date
    Mar 2003
    Location
    chown -R us.us *yourbase*
    Posts
    712
    cPanel/Enkompass Access Level

    DataCenter Provider

    Default

    Here is the quickest way to fix this without editing files.

    # Fix the original issue with the database.

    A fatal error has occurred:

    DB Error: connect failed

    [line 108 of /usr/local/cpanel/base/horde/lib/Prefs/sql.php]

    Details have been logged for the administrator.
    mysqladmin create horde
    /scripts/fullhordereset

    # Get rid of the error on the top of the pages

    Notice: Undefined index: direct_access in /usr/local/cpanel/base/horde/imp/templates/menu/menu.inc on line 53
    (Courtesy Kyle cPanel support)

    cd /usr/local/cpanel
    rm cpanel
    /scripts/updatenow
    /scripts/upcp

    The above resyncs cPanel/WHM.

    Good luck.
    GlowHost.com | Professional Managed Web Hosting Since 2002.
    >> Fully Managed Dedicated, Cloud VDS, Reseller & Semi-Dedicated
    >> Cloud Servers for Enterprise

Similar Threads & Tags
Similar threads

  1. Default address in horde giving "no valid sender in header" error
    By noimad1 in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 05-10-2008, 01:43 AM
  2. In WHM >> Show Reseller Accounts packges showing "undefined"
    By its_joe in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 07-24-2007, 11:19 AM
  3. Remote mysql and "eximstats" and "horde" database
    By torwill in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 04-17-2004, 12:30 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube