[dokuwiki] Re: DokuWikiFCK-0.20 released

steve.paro@xxxxxxx wrote:

I am having an interesting problem with this plugin. From what I can tell I have been able to successfully install the plugin and the perl scripts. I am using Strawberry perl on a Win2003, Apache2.2 box. I install the perl scripts via CPAN and the plugin manually. I have modified the path to html2wiki in the save.php file so that it is correct for my install. Using the plugin, I tried a very simple test. Without any formatting, 'Hello World' becomes '”<p>Hello World</p> '. I know that I am hitting the wikiconverter perl scripts because if I leave the path to html2wiki in the save.php file as default, then nothing saves at all. I feel like I am missing something, but I'm not sure what to try next. Any Ideas? To be fair, this problem isn't new with version .20. I had this same problem with the previous release also. I had just hoped it would magically remedy itself with the new version, but alas...

Steve Paro

There are a number of checks you can make.

First, check your apache error log to see if there's a relevant error message.

Second, while in the FCKeditor, click on the FCK Syntax button. This will open up a standard DokuWiki editing window in preview mode. If the window is empty, it could mean that your install can't find DokuWikiFCK. Or else there may be an incompatibility between Strawberry Perl and something in DokuWikiFCK or one of the libraries on which it depends. This should actually show up in your apache error log, and it if does, I'd appreciate knowing what it is.

Finally, there is debugging built into DokuWikiFCK.pm, which I use for my own testing. So, try this. At the top of the DokuWikiFCK.pm file, line 65 of the current release, uncomment the following line:

# $self->{'_fh'} = $self->getFH();

So it should now read:
$self->{'_fh'} = $self->getFH();

At line 74, you will find this:
if(open(FH, ">> /var/tmp/fckw.log")) {

Change /var/tmp/fckw.log to a Windows path and file name.

Then uncomment lines 967-969:
# my $parsed_html = $self->parsed_html;
#$self->log($parsed_html);
#$self->log("\npostprocess_output (1)",$$outref);

and line 1074:

# $self->log("\npostprocess_output (last)",$$outref);

This will then write to the log file you've named in line 74.

The variable $self->parsed_html is a representation of your HTML created by the HTML parser and $$outref is how DokuWikiFCK converts the HTML for use in DokuWiki. If you send me a copy of the log file, I'll take a look at it and try to determine where the break-down is occurring.

Thanks,

Myron


_____________________
Myron Turner
http://www.mturner.org
http://net18reaching.org/cityscapes




--
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist

Other related posts: