Loading...
 
Features / Usability

Features / Usability


PDF generation and Spell check not working

posts: 18

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 = "\n<C:page:$page>\n<br/>\n";

$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 .= "\n<C:page:$page>\n<br/>\n";

$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

posts: 18

I installed all the rpms that come with Mandrake 10.0 that has the name php. Now the PDF generation is working. But still the spell checker is not working.

Any suggestions?


posts: 32 United States

Greetings neranjana;
You have to download the Spellchecker, and install it separately.
Here is the link to the Spellchecker on Sourceforge,
http://sourceforge.net/project/showfiles.php?group_id=64258&package_id=66975&release_id=125795

The Spellchecker did not install for me, but others say it works for them. My installation is on a shared server, and needs to upload using phpMyAdmin. If you're using Mandrake, then ))MySql(( is a local install, and the Spellchecker should work for you. Let us know how you make out.

Good luck
--bigjet

posts: 18

OK I downloaded the sql script and now the system does not throw the error. Thanks for the link. I guess tiki threw that error because the table was missing. But now even tiki does not throw the error, it does nothing. Even if I entered wrong words, tiki does not colour it in red. In the documentation, I was that if there are no dictionaries in the system, it would behave like this. I have run the sql script and now what else do I need to do to make the system aware that there is a dictionary?

Thanks

Neranjana

posts: 18

> OK I downloaded the sql script and now the system does not throw the error. Thanks for the link. I guess tiki threw that error because the table was missing. But now even tiki does not throw the error, it does nothing. Even if I entered wrong words, tiki does not colour it in red. In the documentation, I saw that if there are no dictionaries in the system, it would behave like this. I have run the sql script and now what else do I need to do to make the system aware that there is a dictionary?
>
> Thanks
>
> Neranjana

posts: 32 United States

i would like to help, Neranjana, but as i said above, the spellchecking did not work for me, so i just disabled it and now no errors, but no spell check. Let us know if you get it to work. Good luck
--bigjet