FS#3170 - squirrelmail broken

Attached to Project: Arch Linux
Opened by Glenn Matthys (RedShift) - Tuesday, 13 September 2005, 20:51 GMT
Last edited by Dale Blount (dale) - Tuesday, 13 September 2005, 20:56 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Paul Mattal (paul)
Architecture not specified
Severity Medium
Priority Normal
Reported Version 0.7 Wombat
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Hello gents,

squirrelmail 1.5.1cvs-3 is broken, I get the following error when I log in:
Fatal error: Call to a member function translate() on a non-object in /home/httpd/html/squirrelmail/functions/gettext.php on line 36


Bye!
This task depends upon

Closed by  Paul Mattal (paul)
Thursday, 10 November 2005, 23:37 GMT
Reason for closing:  Fixed
Comment by Jan de Groot (JGC) - Tuesday, 13 September 2005, 22:00 GMT
Seems PHP doesn't have gettext support.
Comment by Jan de Groot (JGC) - Friday, 16 September 2005, 13:53 GMT
What version of PHP are you using? Please give exact package version given by pacman -Qi php
Comment by Glenn Matthys (RedShift) - Monday, 19 September 2005, 18:47 GMT
I'm using a custom compiled php, version 5.0.5, using the following compile flags:
./configure --with-layout=GNU --with-ttf --with-config-file-scan-dir=/etc \
--enable-gd-native-ttf --enable-shared --with-imap --with-imap-ssl \
--with-readline --with-sqlite=shared --with-gd --without-db2 --without-db3 \
--with-inifile --with-flatfile --with-mysql-sock=/tmp/mysql.sock \
--with-openssl --with-pear=/usr/share/pear --with-png-dir=/usr \
--with-regex=php --with-zlib --with-apxs2=/usr/local/sbin/apxs \
--with-jpeg-dir=/usr --with-mysql=/usr/include/mysql \
--with-mysqli=/usr/bin/mysql_config \
--with-prefix=/usr/local

I'm sure it's a problem with squirrelmail, I used the same configure for php 5.0.4, it worked back then. It's since i've -Syu'ed my system, which updated squirrelmail too I'm having this problem. To make sure it wasn't php, I checked the file that gave the error:

function _($str) {
global $l10n, $gettext_domain;
if ($l10n[$gettext_domain]->error==1) return $str;
return $l10n[$gettext_domain]->translate($str);
}

it errors on the function translate, and that function is not part of PHP, so it it must be squirrelmail that's broken. I downgraded to the previous package version, and the problem went away. Why are CVS versions of squirrelmail being used in the current repo btw!?
Comment by Paul Mattal (paul) - Monday, 19 September 2005, 19:43 GMT
I agree somewhat on the use of devel snapshots. I inherited the package that way, so I kept using them. It's necessary to keep upgrading, to keep from having security holes.. but it's very possible to do that on the stable tree.

I wonder if others agree with this sentiment. I will try and find out.

In the meanwhile, I'll try to upgrade it soon to a newer snapshot, and hopefully that will help you.
Comment by Paul Mattal (paul) - Sunday, 25 September 2005, 02:39 GMT
Did the new snapshot fix the problem, Glenn? Or is it still there?
Comment by Glenn Matthys (RedShift) - Sunday, 25 September 2005, 06:01 GMT
Yeah it's working now, however, on each page something like this is displayed:

SquirrelMail notice messages
Category: SQM_NOTICE
Message: This layout sucks. Adapt squirrelmail.css!!!

Something big is changing in the CVS I guess, and it has to do with the themes.
Comment by Tobias Kieslich (tobias) - Sunday, 02 October 2005, 13:45 GMT
If I were the developer, I wouldn't do that as a bug message, but as a hint to the user/admin to check my configs for using a *.css file. The file is shipped in the package.
Comment by Paul Mattal (paul) - Friday, 28 October 2005, 19:17 GMT
Hey Glenn, can you try the new 1.4.5 package in testing? I'm thinking of moving us back onto the stable branch, but would like to know how that is going to affect people.
Comment by Paul Mattal (paul) - Wednesday, 09 November 2005, 14:23 GMT
It looks like there's no straightforward way to go back to 1.4.5 with the latest versions of PHP.

I'm going to work on getting the latest snapshot in place tonight.
Comment by Paul Mattal (paul) - Thursday, 10 November 2005, 23:37 GMT
This is done, and I've confirmed Squirrelmail works for me with the latest packages. Open another bug with other specific issues, if you have them, and we'll see what we can do.

Loading...