The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Horde Webmail Error - PEAR_LOG_ERROR

Discussion in 'E-mail Discussions' started by canfone, Oct 11, 2006.

  1. canfone

    canfone Active Member

    Joined:
    Aug 15, 2003
    Messages:
    26
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Montreal
    I have a new cPanel installation -- having issues with the Horde webmail I am receiving the following error messages:

    Notice: Use of undefined constant PEAR_LOG_ERROR - assumed 'PEAR_LOG_ERROR' in /usr/local/cpanel/base/horde/lib/Horde/Group.php on line 400

    Notice: Undefined index: PEAR_LOG_ERROR in /usr/local/cpanel/3rdparty/lib/php/Log.php on line 427

    Does anyone have any ideas? I have most up to date PEAR ....
     
  2. gilman01

    gilman01 Member

    Joined:
    Jun 13, 2003
    Messages:
    14
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Glen Rock, PA
    We've got the same issue on our server. Started within the last three days. We did a complete reinstall of Horde but that didn't solve the issue. Opening a bug report.
     
  3. ParabolaStudios

    ParabolaStudios Registered

    Joined:
    Jul 13, 2003
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Boise, ID
    Horde Errors

    I'm receiving the following errors on a server that has been running fine up until about a week ago:
    Notice: Use of undefined constant PEAR_LOG_ERROR - assumed 'PEAR_LOG_ERROR' in /usr/local/cpanel/base/horde/lib/Horde/Group.php on line 400

    Notice: Undefined index: PEAR_LOG_ERROR in /usr/local/cpanel/3rdparty/lib/php/Log.php on line 427

    Warning: array_keys(): The first argument should be an array in /usr/local/cpanel/base/horde/lib/Horde/Share.php on line 541

    Notice: Use of undefined constant PEAR_LOG_ERROR - assumed 'PEAR_LOG_ERROR' in /usr/local/cpanel/base/horde/lib/Horde/Group.php on line 400

    Notice: Undefined index: PEAR_LOG_ERROR in /usr/local/cpanel/3rdparty/lib/php/Log.php on line 427

    Warning: array_keys(): The first argument should be an array in /usr/local/cpanel/base/horde/lib/Horde/Share.php on line 541

    Notice: Use of undefined constant PEAR_LOG_ERROR - assumed 'PEAR_LOG_ERROR' in /usr/local/cpanel/base/horde/lib/Horde/Group.php on line 400

    Notice: Undefined index: PEAR_LOG_ERROR in /usr/local/cpanel/3rdparty/lib/php/Log.php on line 427

    Warning: array_keys(): The first argument should be an array in /usr/local/cpanel/base/horde/lib/Horde/Share.php on line 541

    I was hoping they were going to release an update to fix this considering it's obviously an update that broke it in the first place. No such luck so far. :rolleyes:
     
  4. nettigritty

    nettigritty Well-Known Member
    PartnerNOC

    Joined:
    Jan 21, 2004
    Messages:
    194
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Bangalore, India
    /scripts/fullhordereset
    /scripts/fixwebmail
    /scripts/upcp --force
     
  5. ParabolaStudios

    ParabolaStudios Registered

    Joined:
    Jul 13, 2003
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Boise, ID
    After performing /scripts/fullhordereset, I received the following messages:

    mysqladmin: DROP DATABASE horde failed;
    error: 'Error dropping database (can't rmdir './horde/', errno: 17)'
    Creating Horde database
    ERROR 1007 at line 48: Can't create database 'horde'. Database exists
    Updating Pear modules ...Done
    Restoring Horde data
    Resyncing Horde database items
    DBD::mysql::st execute failed: Table 'horde.horde_vfs' doesn't exist at /usr/local/cpanel/bin/horde_update_usernames line 38.
    Done. Horde updated to 3.1.3

    Horde no longer allows me to log in, it just brings me to the language page and when I click the log in button, it just refreshes to the same page.

    News:
    I stopped mysql, moved /var/lib/mysql/horde to a temp spot, started mysql, and reran /scripts/fullhordereset. This seems to have fixed all the issues.
     
    #5 ParabolaStudios, Oct 12, 2006
    Last edited: Oct 12, 2006
  6. nettigritty

    nettigritty Well-Known Member
    PartnerNOC

    Joined:
    Jan 21, 2004
    Messages:
    194
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Bangalore, India
    yup, you can also drop the horde DB from phpmyadmin in WHM and then run that or even try a repair before dropping it.
     
  7. internetfab

    internetfab Well-Known Member
    PartnerNOC

    Joined:
    Feb 20, 2003
    Messages:
    336
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Gothenburg, Sweden
    cPanel Access Level:
    DataCenter Provider
    Dropping the horde DB? Won't that erase calendars, address books and so on? :)
     
  8. mctDarren

    mctDarren Well-Known Member

    Joined:
    Jan 6, 2004
    Messages:
    664
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    New Jersey
    cPanel Access Level:
    Root Administrator
    Why are you replying to a 2 year old thread? ;)
     
  9. MattDees

    MattDees cPanel Product Owner
    Staff Member

    Joined:
    Apr 29, 2005
    Messages:
    417
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    fullhordreset actually drops the horde table and rebuilds it from sql files in /var/cpanel/horde/ they are backed up right before this to avoid data loss.

    As for the original error this thread was started over, this was due to a bug in horde that got addressed earlier today.

    http://bugs.horde.org/ticket/6437
     
  10. H2Hosting.com

    H2Hosting.com Well-Known Member

    Joined:
    Sep 4, 2001
    Messages:
    192
    Likes Received:
    0
    Trophy Points:
    16
    Actually, /scripts/fullhordereset does not work correctly. When we run it, we get incorrect tables in /var/lib/mysql/horde dir:

    -rw-r--r-- 1 mysql mysql 61440 Mar 26 08:45 hor.tar
    -rw-rw---- 1 mysql mysql 8946 Mar 26 08:50 jonah_channels.frm
    -rw-rw---- 1 mysql mysql 0 Mar 26 08:50 jonah_channels.MYD
    -rw-rw---- 1 mysql mysql 1024 Mar 26 08:50 jonah_channels.MYI
    -rw-rw---- 1 mysql mysql 8860 Mar 26 08:50 jonah_stories.frm
    -rw-rw---- 1 mysql mysql 0 Mar 26 08:50 jonah_stories.MYD
    -rw-rw---- 1 mysql mysql 1024 Mar 26 08:50 jonah_stories.MYI
    -rw-rw---- 1 mysql mysql 9436 Mar 26 08:50 kronolith_events.frm
    -rw-rw---- 1 mysql mysql 0 Mar 26 08:50 kronolith_events.MYD
    -rw-rw---- 1 mysql mysql 1024 Mar 26 08:50 kronolith_events.MYI
    -rw-r--r-- 1 mysql mysql 51200 Mar 26 08:45 kronolith_events.tar
    -rw-rw---- 1 mysql mysql 8642 Mar 26 08:50 kronolith_storage.frm
    -rw-rw---- 1 mysql mysql 0 Mar 26 08:50 kronolith_storage.MYD
    -rw-rw---- 1 mysql mysql 1024 Mar 26 08:50 kronolith_storage.MYI
    -rw-rw---- 1 mysql mysql 8778 Mar 26 08:50 mnemo_memos.frm
    -rw-rw---- 1 mysql mysql 0 Mar 26 08:50 mnemo_memos.MYD
    -rw-rw---- 1 mysql mysql 1024 Mar 26 08:50 mnemo_memos.MYI
    -rw-rw---- 1 mysql mysql 8932 Mar 26 08:50 nag_tasks.frm
    -rw-rw---- 1 mysql mysql 0 Mar 26 08:50 nag_tasks.MYD
    -rw-rw---- 1 mysql mysql 1024 Mar 26 08:50 nag_tasks.MYI
    -rw-rw---- 1 mysql mysql 9452 Mar 26 08:50 turba_objects.frm
    -rw-rw---- 1 mysql mysql 0 Mar 26 08:50 turba_objects.MYD
    -rw-rw---- 1 mysql mysql 1024 Mar 26 08:50 turba_objects.MYI

    This script does not restore all databases!!!

    errors:

    ERROR 1146 at line 12614: Table 'horde.horde_histories' doesn't exist
    ERROR 1146 at line 12615: Table 'horde.horde_histories' doesn't exist
    ERROR 1146 at line 12616: Table 'horde.horde_histories' doesn't exist
    ERROR 1146 at line 12617: Table 'horde.horde_histories' doesn't exist
    ERROR 1146 at line 12618: Table 'horde.horde_histories' doesn't exist
    ERROR 1146 at line 12619: Table 'horde.horde_histories' doesn't ex

    and so on.
     
  11. sabarishks

    sabarishks Active Member

    Joined:
    Jun 29, 2007
    Messages:
    37
    Likes Received:
    0
    Trophy Points:
    6
    Install Pear modules.

    Try these...
    pear install -o Log Mail Mail_Mime DB Date File

    pear -d preferred_state=beta install -a Services_Weather

    If not fixed, try these all.


    mkdir ~/pearstuff
    cd ~/pearstuff
    wget http://pear.php.net/get/Console_Getopt-1.2.tgz
    wget http://pear.php.net/get/Archive_Tar-1.3.1.tgz
    tar xzf Archive_Tar-1.3.1.tgz
    tar xzf Console_Getopt-1.2.tgz

    # (Need to be root now)
    su

    cd Console_Getopt-1.2/Console
    mkdir /usr/local/lib/php/Console
    cp Getopt.php /usr/local/lib/php/Console

    cd ../../Archive_Tar-1.3.1/Archive
    mkdir /usr/local/lib/php/Archive
    cp Tar.php /usr/local/lib/php/Archive

    pear upgrade Console_Getopt
    pear upgrade Archive_Tar
     
Loading...

Share This Page