Hi:
I am receiving the error below:
Fatal error: Call to undefined function html_insert.html() in /usr/local/apache2/htdocs2/modules/pnTresMailer/functions_mail.php on line 498
The code in functions_mail.php (line 498 and some lines before) is:
// html formatting $file_tpl =
"modules/$ModName/templates/$nl_tpl_html";
if(phpversion() ==
'4.2.3') { $message =
file($file_tpl);
$message =
implode("",
$message);
} else { $open_tpl =
fopen($file_tpl,
"rb");
$message =
fread($open_tpl,
filesize($file_tpl));
fclose($open_tpl);
} $message =
str_replace ("<!-- [DATE] -->",
"$display_date",
$message);
$message =
str_replace ("<!-- [ISSUE] -->",
"$nl_issue",
$message);
$message =
str_replace ("<!-- [HEADER] -->",
"$nl_header",
$message);
$message =
str_replace ("<!-- [FOOTER] -->",
"$nl_footer",
$message);
$news =
'';
$modsql =
"SELECT mod_file, mod_function, mod_multi_output, mod_qty, mod_id FROM $prefix"._nl_modules.
" ORDER BY mod_pos";
$result =
$dbconn->
Execute($modsql);
if ($dbconn->
ErrorNo() !=
0) { echo _DBREADERROR;
} while(!
$result->
EOF) { list($mod_file,
$mod_function,
$mod_multi_output,
$mod_qty,
$mod_id) =
$result->
fields;
$result->
MoveNext();
if($mod_multi_output ==
1 AND
$mod_qty ==
0) { } else { include_once("modules/$ModName/modules/$mod_file.php");
==> Error is here line
498 ===>
$mod_function =
"$mod_function"._html.
""; <=== Error
$news .=
$mod_function($mod_id,
$nl_url,
$ModName);
} } $message =
str_replace ("<!-- [NEWS] -->",
"$news",
$message);
I need a clue to look for a fix. I need to have pnTresMialer working. I am willing to invest some time to find the problem but need direction. Maybe a missing function or a function with a typo...
Any help will be appreciated. My setup is Apache 2.2.2
PHP 5.1.4,
PostNuke .762. This happens with pnTresMailer 6.1rc3 and 6.1 latest cvs...
TIA
edited by: edfel, Jun 16, 2006 - 12:15 PM