SquirrelMail error opening default_pref

sneader

Well-Known Member
Aug 21, 2003
1,195
68
178
La Crosse, WI
cPanel Access Level
Root Administrator
I have a user that can use Horde and NeoMail, but he prefers SquirrelMail. However, when he logs in and clicks SquirrelMail, he gets:

ERROR
Error opening ../data/default_pref
Default preference file not found or not readable!
Please contact your system administrator and report this error.

This is only happening for one customer. I've deleted and recreated their mailbox, and run the fixmailbox thing and still no go. Any leads?

I am trying to find where the data/default_pref file is located, but not finding it where the SquirrelMail site suggests it should be (/etc).

Sorry for the newbie question! Thanks in advance for your help.

- Scott
 

Slav

Well-Known Member
Oct 28, 2002
144
0
166
I noticed this in the edge reelase i think its not done right as i had thre same issue, i at the end went back to last stable reelase.
 

rpmws

Well-Known Member
Aug 14, 2001
1,787
10
318
back woods of NC, USA
same problem here on a couple boxes on edge builds
 

Slav

Well-Known Member
Oct 28, 2002
144
0
166
there is also a issue with horde too. where you seelctt he language andd then it logs you back to where you were and it just loops.
 

Slav

Well-Known Member
Oct 28, 2002
144
0
166
one thing i noticed that after you got o edge, some mailboxes get lost and reset to zero. :(
 

groefie

Active Member
May 30, 2003
31
0
156
The same problem here with the edge build :(

I'm using the edge because it's the only build that has fixed the problem with terminating an account in whm on fedora.
 

dgbaker

Well-Known Member
PartnerNOC
Sep 20, 2002
2,531
10
343
Toronto, Ontario Canada
cPanel Access Level
DataCenter Provider
Quick fix for this.

In SSH as root:

Code:
cd /usr/local/cpanel/base/3rdparty/squirrelmail
mkdir data
cd data
vi default_pref
#Add the following to the file
full_name=
reply_to=
show_html_default=0
sort=0
#Save and exit
The error should now be gone.
 

GOT

Get Proactive!
PartnerNOC
Apr 8, 2003
1,779
331
363
Chesapeake, VA
cPanel Access Level
DataCenter Provider
Edge had (IMO) a very important fix in that they eliminated the need for the data directory. It appears that they missed something along the way, as I had this problem on one of my servers today.

A simple /scripts/upcp --force resolved this issue for me, and might be better than creating a directory that cpanel intentionally got rid of.
 

GOT

Get Proactive!
PartnerNOC
Apr 8, 2003
1,779
331
363
Chesapeake, VA
cPanel Access Level
DataCenter Provider
According to the change log, for build 51:

Eliminate the need for /usr/local/cpanel/base/3rdparty/squirrelmail/data

I just did the fix today, so that is the one that 'fixed' it.
 

rpmws

Well-Known Member
Aug 14, 2001
1,787
10
318
back woods of NC, USA
dgbaker said:
That's wierd cause the reason I ask is that on Edge 78 this was an issue for us as well.
hey dq ..i was bit by this as well so I made that data folder and pref file. Fixed my problem. Then I forced an upcp and the data folder is gone now ..but the problem is still fixed. So it must have been an incomplete edge build we got.

Force upcp and I think you will find you are ok.
 

dgbaker

Well-Known Member
PartnerNOC
Sep 20, 2002
2,531
10
343
Toronto, Ontario Canada
cPanel Access Level
DataCenter Provider
Just as an FYI, if the upcp --force does not work, just do the following

cd /usr/local/cpanel/base
rm -Rf sqmail* squirrelmail
cd /scripts/
upcp --force

That was the final way for one of our servers.
 

sneader

Well-Known Member
Aug 21, 2003
1,195
68
178
La Crosse, WI
cPanel Access Level
Root Administrator
dgbaker said:
In SSH as root:

Code:
cd /usr/local/cpanel/base/3rdparty/squirrelmail
mkdir data
cd data
vi default_pref
#Add the following to the file
full_name=
reply_to=
show_html_default=0
sort=0
#Save and exit
The error should now be gone.
Thanks dgbaker -- worked for me !!!

- Scott