PDF generation and Spell check not working
Hi
I have installed tikiwiki-1.8.2-1mdk.noarch.rpm on Mandrake 10.0. I tried to spell check but I get the follwing error.
Fatal error: Call to a member function on a non-object in /var/www/html/tikiwiki-1.8.2/lib/bablotron.php on line 115
The code in bablotron.php is
function word_exists($word) {
$tbl = 'babl_words_' . $this->lan;
$word = addslashes$word;
$query = "select `word` from `$tbl` where `word`=?";
@$result = $this->db->query($query,array($word));
if (DB::isError($result))
return true;
return $result->numRows();
}
line 115 is return $result->numRows();
Then when I tried to generate pdf I get the following error.
Fatal error: Call to undefined function: utf8_decode() in /var/www/html/tikiwiki-1.8.2/tiki-export_pdf.php on line 124
The code in tiki-export_pdf.php is
if ($_REQUEST%22autobreak%22 == 'on') {
foreach (array_values($convertpages)as $page) {
$data = '';
$info = $tikilib->get_page_info($page);
$data .= $tikilib->parse_data($info%22data%22);
$data = utf8_decode($data);
$pdflib->add_linkdestination($page);
$pdflib->insert_html($data);
$pdflib->ezNewPage();
}
}
else {
foreach (array_values($convertpages)as $page) {
$info = $tikilib->get_page_info($page);
$data .= $tikilib->parse_data($info%22data%22);
}
//todo: add linkdestinations for titlebars
$pdflib->insert_linkdestinations($convertpages);
// now add data
$data = utf8_decode($data);
$pdflib->insert_html($data);
}
line 124 is $data = utf8_decode($data);
Are these errors because I have not installed some requiered libraries or package or what ever or a bug in the build? Any suggestion would be a big help.
Thanks.
Neranjana