I've read
http://www.mediawiki.org/wiki/Manual:%24wgSMTP describing
how to set up smtp support, but when I try to confirm my e-mail
address, I get this error:
Catchable fatal error: Object of class PEAR_Error could not be converted to
string in /var/www/mediawiki/includes/GlobalFunctions.php on line 521
line 521 is part of a function replacing message parameter keys on the
given formatted output, and reads:
$message = strtr( $message, $replacementKeys );
so no help there.
I can send mail from my server using the procedure described at
http://www.pantz.org/software/smtp/smtptelnet.html.
My knowledge of php is next to non-existent. Are there any php
logfiles I can look at? (I checked the logs in /var/log/ just in
case, but there's nothing even remotely related.) Any suggestions on
how to debug this?
FWIIW, this is our environment:
- Ubuntu server 7.10
- Apache 2.2.4
- PHP 5.2.3-1
- MediaWiki 1.11
And this is how I tried to configure e-mail so far:
---- begin config info
# apt-get install php-pear
# pear install -a MAIL
# vi /var/www/mediawiki/LocalSettings.php
(...)
#$path = array( $IP, "$IP/includes", "$IP/languages" );
$path = array( $IP, "$IP/includes", "$IP/languages",
"/usr/share/php" );
(...)
$wgSMTP = array(
'host' => "mail.xxx.yy",
'IDHost' => "xxx.yy",
'port' => 25,
'auth' => false
);
$wgEnableEmail = true;
$wgEnableUserEmail = true;
---- end config info
Kind regards,
Herta