Hi,
I've tried to get the Wiki taglib set up on my machine, but I must be
doing something wrong, as although I get the title bar and the Menu,
the main page is evidently not being interpreted by AxKit. The following
is what comes up;
"my $path_info = $r->path_info; my $dbroot =
$r->dir_config('WikiDBRoot') || die "No DB root specified!"; my
$default_db = $r->dir_config( 'WikiDB' ) || 'AxKit'; my $default_page =
$r->dir_config( 'DefaultPage' ) || 'DefaultPage'; my $uri = $r->uri; my
($db, $page) = AxKit::XSP::Wiki::extract_page_info($path_info); if
(!$db) { $r->header_out(Location => "$uri/$default_db/$default_page");
return 302; } if (!$page) { $r->header_out(Location =>
"$uri/$db/$default_page"); return 302; } my $action =
$cgi->param('action') || 'view'; $action = 'preview' if
$cgi->param('preview'); my $id = $cgi->param('id'); if ($id !~ /^\d*$/)
{ die "Invalid id format"; } if ($action eq 'save') { my $ip =
$r->get_remote_host(); AxKit::XSP::Wiki::save_page( $dbroot, $db, $page,
$cgi->param('text'), $cgi->param('texttype'), $ip, );
$r->header_out(Location => "$uri/$db/$page"); return 302; } elsif
($action eq 'restore') { my $ip = $r->get_remote_host();
AxKit::XSP::Wiki::restore_page( $dbroot, $db, $page, $ip, $id, );
$r->header_out(Location => "$uri/$db/$page"); return 302; } elsif
($action eq 'preview') { $page $db $dbroot $db $page $cgi->param('text')
$cgi->param('texttype') } else { $page $db $dbroot $db $page $action $id
}"
So, evidently the stuff between the <xsp:logic> tags is being passed
straight through as text. I'm not sure why this should be, as I've got a
working AxKit set-up (have had for some time), and I followed the
installation instructions in the README. htaccess is enabled for the
directory the wiki is in.
Any suggestions as to what's going wrong?
I should say that I only get the 'Development Wiki' and the menus
because I stuck a <?xml-stylesheet href="wiki.xsl" type="text/xsl"?>
at the top of the 'view' page. Without it I just get the text as above.
My AxKit log is as follows;
[Fri Jul 25 17:34:50 2003] [warn] [client 127.0.0.1] [AxKit] fast
handler called for /courses/wiki/view
[Fri Jul 25 17:34:50 2003] [warn] [client 127.0.0.1] [AxKit] Running
plugin: preAxKit
compare UA Mozilla/4.77 against Mozilla/5.0 Galeon/1.2.5 (X11; Linux
i686; U;) Gecko/20020623 Debian/1.2.5-0.woody.1 at
/usr/local/lib/perl/5.6.1/preAxKit.pm line 37.
compare UA Opera 5 against Mozilla/5.0 Galeon/1.2.5 (X11; Linux i686;
U;) Gecko/20020623 Debian/1.2.5-0.woody.1 at
/usr/local/lib/perl/5.6.1/preAxKit.pm line 37.
compare UA Mozilla/4.5 against Mozilla/5.0 Galeon/1.2.5 (X11; Linux
i686; U;) Gecko/20020623 Debian/1.2.5-0.woody.1 at
/usr/local/lib/perl/5.6.1/preAxKit.pm line 37.
compare UA Mozilla/4.7 \(Macintosh against Mozilla/5.0 Galeon/1.2.5
(X11; Linux i686; U;) Gecko/20020623 Debian/1.2.5-0.woody.1 at
/usr/local/lib/perl/5.6.1/preAxKit.pm line 37.
compare UA Mozilla/4.75 against Mozilla/5.0 Galeon/1.2.5 (X11; Linux
i686; U;) Gecko/20020623 Debian/1.2.5-0.woody.1 at
/usr/local/lib/perl/5.6.1/preAxKit.pm line 37.
compare UA Mozilla/4.76 against Mozilla/5.0 Galeon/1.2.5 (X11; Linux
i686; U;) Gecko/20020623 Debian/1.2.5-0.woody.1 at
/usr/local/lib/perl/5.6.1/preAxKit.pm line 37.
compare UA Mozilla/4.78 against Mozilla/5.0 Galeon/1.2.5 (X11; Linux
i686; U;) Gecko/20020623 Debian/1.2.5-0.woody.1 at
/usr/local/lib/perl/5.6.1/preAxKit.pm line 37.
compare UA Mozilla/4.79 against Mozilla/5.0 Galeon/1.2.5 (X11; Linux
i686; U;) Gecko/20020623 Debian/1.2.5-0.woody.1 at
/usr/local/lib/perl/5.6.1/preAxKit.pm line 37.
compare UA Lynx against Mozilla/5.0 Galeon/1.2.5 (X11; Linux i686; U;)
Gecko/20020623 Debian/1.2.5-0.woody.1 at
/usr/local/lib/perl/5.6.1/preAxKit.pm line 37.
compare UA against Mozilla/5.0 Galeon/1.2.5 (X11; Linux i686; U;)
Gecko/20020623 Debian/1.2.5-0.woody.1 at
/usr/local/lib/perl/5.6.1/preAxKit.pm line 37.
[Fri Jul 25 17:34:50 2003] [warn] [client 127.0.0.1] [AxKit] [req] File
Provider given $r: /home/coling/perforce/web/staff/courses/wiki/view
[Fri Jul 25 17:34:50 2003] [warn] [client 127.0.0.1] [AxKit] checking if
we process this resource
[Fri Jul 25 17:34:50 2003] [warn] [client 127.0.0.1] [AxKit] media:
screen, preferred style: screen
[Fri Jul 25 17:34:50 2003] [warn] [client 127.0.0.1] [AxKit] Cache: key
= 3adf9183629ff3c3e7c8b5717b99f934
[Fri Jul 25 17:34:50 2003] [warn] [client 127.0.0.1] [AxKit] getting
styles and external entities from the XML
[Fri Jul 25 17:34:50 2003] [warn] [client 127.0.0.1] [AxKit] styles not
cached - calling $provider->get_styles()
[Fri Jul 25 17:34:50 2003] [warn] [client 127.0.0.1] [AxKit] using XS
get_styles (libxml2)
[Fri Jul 25 17:34:50 2003] [warn] [client 127.0.0.1] [AxKit] calling
xs_get_styles_fh()
[Fri Jul 25 17:34:50 2003] [warn] [client 127.0.0.1] [AxKit] calling
xs_get_styles_str()
[Fri Jul 25 17:34:50 2003] [warn] [client 127.0.0.1] [AxKit]
xs_get_styles returned: , , xspwiki
[Fri Jul 25 17:34:50 2003] [warn] [client 127.0.0.1] [AxKit] Calling
GetMatchingProcessors with (screen, screen, , , xspwiki)
[Fri Jul 25 17:34:50 2003] [warn] [client 127.0.0.1] [AxKit] Caught an
exception
[Fri Jul 25 17:34:50 2003] [warn] [client 127.0.0.1] [AxKit] [DECLINED]
No styles defined for
'/home/coling/perforce/web/staff/courses/wiki/view'
[Fri Jul 25 17:34:50 2003] [warn] [client 127.0.0.1] [AxKit] [DECLINED]
From: /usr/local/share/perl/5.6.1/Error.pm : 148
Probably something silly, but I'm stumped at the moment :-(
TIA,
Colin
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]