openwebmial.pl 在添加用户的时候报错误
Software error:Undefined subroutine &ow::htmltext::str2html called at /usr/local/www/cgi-bin/openwebmail/shares/ow-shared.pl line 1283.
For help, please send mail to the webmaster ([email]joleon@163.com[/email]), giving this error message and the time and date of the error.
系统freebsd 6.0+ postfix + openwebmail
在添加新的用户的时候出现这个错误,但是这个用户还是建立成功了,而且还可以发信,但就是不能收信
在网络找了说修改openwebmial.pl在其中添加require "modules/htmltext.pl
但是我就算把这个文件下载到本地用EditPlus 打开也都还是乱码 [quote][b]下面是引用joleon于2006-11-03 12:38发表的在web界面下添加邮箱用户时出错?:[/b]
Software error:
Undefined subroutine &ow::htmltext::str2html called at /usr/local/www/cgi-bin/openwebmail/shares/ow-shared.pl line 1283.
For help, please send mail to the webmaster ([email]joleon@163.com[/email]), giving this error message and the time and date of the error.
.......[/quote]
楼主可以看看这个函数是否真的不存在/没定义?(在ow::htmltext模块里) ########## OPENWEBMAILERROR ######################################
sub openwebmailerror {
my ($file, $linenum, $msg)=@_;
$msg = ow::htmltext::str2html($msg); //这个就是1283行错误提示的地方,这个代码看不懂
my $mailgid=getgrnam('mail');
my $stackdump='';
$file=~s!.*/!!;
$msg="Unknown error $msg at $file:$linenum" if (length($msg)<5);
if ($config{'error_with_debuginfo'}) {
$msg.=qq|<br><font class="medtext">( $file:$linenum, pid=$$, ruid=$<, euid=$>, egid=$), mailgid=$mailgid )</font>\n|;
$stackdump=ow::tool::stacktrace();
$stackdump=~s/^\s*//gm;
}
我把代码贴出来,大家帮忙看看 论坛使用过openwebmail的快来帮帮我啊,这个搞了几天了,郁闷 [quote][b]下面是引用joleon于2006-11-08 10:21发表的:[/b]
论坛使用过openwebmail的快来帮帮我啊,这个搞了几天了,郁闷[/quote]
我看过modules/html2text.pl 里定义了这个函数,并且也是ow::html2txt模块里的,估计是楼主配置文件没打开这个模块吧? [quote][b]下面是引用hzqbbc于2006-11-08 13:32发表的:[/b]
我看过modules/html2text.pl 里定义了这个函数,并且也是ow::html2txt模块里的,估计是楼主配置文件没打开这个模块吧?[/quote]
在添加新的用户的时候出现这个错误,但是这个用户还是建立成功了,而且还可以发信,但就是不能收信
在网络找了说修改openwebmail.pl在其中添加require "modules/htmltext.pl
但是我就算把这个文件下载到本地用EditPlus 打开也都还是乱码
而.openwebmail.pl这个文件里面确实是有这个require "modules/htmltext.pl
主要的就是采用ports安装后的哪个openwebmail.pl文件打开是乱码 难道现在就兄弟使用openwebmail了? 解决方法:在openwebmail.pl, 加入require "modules/htmltext.pl
require "modules/mime.pl";
require "modules/htmltext.pl"; --》 加入此句即可
require "auth/auth.pl"; [quote][b]下面是引用yu12于2006-11-27 10:17发表的:[/b]
解决方法:在openwebmail.pl, 加入require "modules/htmltext.pl
require "modules/mime.pl";
require "modules/htmltext.pl"; --》 加入此句即可
require "auth/auth.pl";[/quote]
加精!
页:
[1]