Question
Have tried various methods found on TWiki site for implementing list of child topics of a given topic. ALL return empty -- and yes, there are children of the topic. Have tried everything and still am stumped. For example:
%METASEARCH{type="parent" web="%WEB%" topic="%TOPIC%" title="Children: "}% returns NOTHING. No error. No complaint. Just nothing found.
Same result for
%SEARCH{"\%META:TOPICPARENT\{name=\"%TOPIC%\"\}\%" type="regex" nosearch="on" header="Children: "}%
Children: %SEARCH{ "META:TOPICPARENT.*\"%TOPIC%\}" type="regex" nonoise="on" format="[[$topic]]" separator=", " }%
%METASEARCH{topic="%TOPIC%" type="parent"}%
etc. All give the same result. They return empty.
Please feel free to visit
http://www.mondaylambson.com/wiki/bin/view.pl/Sandbox/TestSearchForChildren
where I've set up a test page
Recurring warning in .../data/warn200702.txt is ... exec failed: Inappropriate ioctl for device at .../lib/TWiki/Sandbox.pm line 389.
(This is the only warning in the log and it recurs regularly)
I have perfomed this same test in other webs on the wiki, so it's not just effecting the Sandbox
THANK YOU VERY MUCH
Environment
--
ClaytonCafiero - 03 Feb 2007
Answer
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.
Something peculiar is going on on your installation. At least
HierarchicalNavigation
should work, but it doesn't.
Do you experience other problems with search?
--
ArthurClemens - 03 Feb 2007
THANKS for checking so quickly.
Alas, it appears so: something peculiar is indeed going on. I cannot make heads or tails of the code in Sandbox.pm that's throwing the error -- I'm no Perl programmer, that's for sure -- so that's a dead end for me at least.
However, I installed
TreePlugin to see if it works and that seems to work OK. It is now disabled.
Do you have any recommendations?
Could this be permissions-related perhaps?
THANKS AGAIN.
-C
--
ClaytonCafiero - 03 Feb 2007
I noticed I cannot access your
bin/configure or
bin/configure.pl page. I think you need to check that first.
--
ArthurClemens - 04 Feb 2007
I understood that this should be made inaccessible via the web after configuration is complete, so I took off all the execute bits -- that's why the server error. It is bin/configure.pl and It is now accessible, though still password protected. So far as I can tell, all is OK.
THANKS
--
ClaytonCafiero - 04 Feb 2007
I can't find anything wrong in your setup.
--
ArthurClemens - 05 Feb 2007
The obvious thing to check is that your
grep is fully GNU-compatible.
Try switching on tracing in lib/TWiki/Sandbox.pm (it should be obvious how), run a search, and look at the apache error log. Copy the
grep output there, and paste it onto the command line. What does it say?
--
CrawfordCurrie - 05 Feb 2007
Will do. Thanks.
--
ClaytonCafiero - 05 Feb 2007
Here's some info: grep errors often do not show the search term entered ???
[Mon Feb 05 14:41:49 2007] [error] [client MY.IP.ADDRESS.HERE] /bin/fgrep '-i' '-l' '-H' '--' 'something.Very/unLikelyTo+search-for;-)'
!!! Rest assured I did not enter 'something.Very/unLikelyTo+search-for;-)'
[Mon Feb 05 14:41:55 2007] [error] [client 71.234.56.71] /bin/egrep '-l' '-H' '--' '.*' '...claytoncafiero/web/public/wiki/data/Sandbox/CommentPluginExampleComments.txt' ... [list of files omitted] ... -> Content-type: text/plain
-----
Here's an interesting sequence of errors:
[Mon Feb 05 14:41:55 2007] [error] [client MY.IP.ADDRESS.HERE]
[Mon Feb 05 14:41:55 2007] [error] [client MY.IP.ADDRESS.HERE] TWiki detected an internal error - please check your TWiki logs and webserver logs for more information.
[Mon Feb 05 14:41:55 2007] [error] [client MY.IP.ADDRESS.HERE]
[Mon Feb 05 14:41:55 2007] [error] [client MY.IP.ADDRESS.HERE] exec failed: Inappropriate ioctl for device
[Mon Feb 05 14:41:55 2007] [debug] mod_headers.c(527): headers: ap_headers_output_filter()
[Mon Feb 05 14:41:55 2007] [debug] mod_deflate.c(468): [client MY.IP.ADDRESS.HERE] Zlib: Compressed 1385 to 578 : URL /wiki/bin/view.pl/Sandbox/WebRss
[Mon Feb 05 14:42:01 2007] [error] [client MY.IP.ADDRESS.HERE] /bin/fgrep '-i' '-l' '-H' '--' 'child' '...claytoncafiero/web/public/wiki/data/Sandbox/CommentPluginExampleComments.txt' ... [list of files omitted] ... -> Content-type: text/plain
[Mon Feb 05 14:41:49 2007] [error] [client MY.IP.ADDRESS.HERE] aytoncafiero/web/public/wiki/data/Sandbox/WebLeftBar.txt' '...claytoncafiero/web/public/wiki/data/Sandbox/WebNotify.txt' ...
[Mon Feb 05 14:41:49 2007] [error] [client MY.IP.ADDRESS.HERE] , referer:
http://www.mondaylambson.com/wiki/bin/view.pl/Sandbox/TestSearchForChildren
[Mon Feb 05 14:41:49 2007] [error] [client MY.IP.ADDRESS.HERE] TWiki detected an internal error - please check your TWiki logs and webserver logs for more information., referer:
http://www.mondaylambson.com/wiki/bin/view.pl/Sandbox/TestSearchForChildren
[Mon Feb 05 14:41:49 2007] [error] [client MY.IP.ADDRESS.HERE] , referer:
http://www.mondaylambson.com/wiki/bin/view.pl/Sandbox/TestSearchForChildren
[Mon Feb 05 14:41:49 2007] [error] [client MY.IP.ADDRESS.HERE] exec failed: Inappropriate ioctl for device, referer:
http://www.mondaylambson.com/wiki/bin/view.pl/Sandbox/TestSearchForChildren
This group of errors (immediately above) I get when loading the
TestSearchForChildren topic
Doing as you said -- pasting grep output from logs to command line. Stand by for update.
THANKS
--
ClaytonCafiero - 05 Feb 2007
OK. For starters it looks like TWiki is looking for /bin/grep, /bin/fgrep, /bin/egrep. On my system they are at /usr/bin/grep, /usr/bin/fgrep, /usr/bin/egrep
--
ClaytonCafiero - 05 Feb 2007
Can I safely modify lib/TWiki.spec and lib/LocalSite.cfg to point to the correct location for grep, fgrep, egrep, etc.?
--
ClaytonCafiero - 05 Feb 2007
Well, I went ahead and modified lib/TWiki.spec and lib/LocalSite.cfg. And guess what? It works now! So does search! Thanks guys!
Should I have any concerns about having modified these files?
--
ClaytonCafiero - 05 Feb 2007
Glad it worked out. We had a similar support question recently on freebsd. For easier upgrade later on, please do not modify
lib/TWiki.spec, only modify
lib/LocalSite.cfg.
--
PeterThoeny - 05 Feb 2007
Thank you all.
--
ClaytonCafiero - 05 Feb 2007