Horde Webmail Error - PEAR_LOG_ERROR

canfone

Active Member
Verifed Vendor
Aug 15, 2003
26
0
151
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 ....
 

gilman01

Member
Jun 13, 2003
14
0
151
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.
 

ParabolaStudios

Registered
Jul 13, 2003
3
0
151
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:
 

ParabolaStudios

Registered
Jul 13, 2003
3
0
151
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.
 
Last edited:

MattDees

Well-Known Member
Apr 29, 2005
416
1
243
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
 

H2Hosting.com

Well-Known Member
Sep 4, 2001
192
0
316
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.
 

sabarishks

Active Member
Jun 29, 2007
35
0
56
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