Tags:
create new tag
view all tags

Question

Hi I had just added the plugin BlogAddOn and its all working fine until i try to see the drop down category list which is blank. I never notice this before but Looking at my Store Settings for

{RCS}{EgrepCmd} = /usr/bin/egrep %CS{|-i}% %DET{|-l}% -H -- %TOKEN|U% %FILES|F%

also my

{RCS}{FgrepCmd} = /usr/bin/fgrep %CS{|-i}% %DET{|-l}% -H -- %TOKEN|U% %FILES|F%

I tried also c:\cygwin\bin\grep for both of them, I tried /bin/egrep and /bin/fgrep also. Also tried "c:\cygwin\bin\grep"

My log file shows

[error] [client xx.xx.xx.xx] c:\\cygwin\\bin\\grep "-l" "-H" "--" "   \\s.*?" "C:\\twiki\\data\\TestBlog\\BlogCategory.txt" failed:

The default of

'/bin/fgrep %CS{|-i}% %DET{|-l}% -H -- %TOKEN|U% %FILES|F%'

and

'/bin/egrep %CS{|-i}% %DET{|-l}% -H -- %TOKEN|U% %FILES|F%'

give me errors like this in my log file;

[error] [client xx.xx.xx.xx] /bin/egrep "-l" "-H" "--" "   \\s.*?" "C:\\twiki\\data\\TestBlog\\BlogCategory.txt" failed:

If its any help, maybe not but my AdminToolsCatagory under main web loads up o.k. and displays all the Webs.

any pointers greatly thankful.

Environment

TWiki version: TWikiRelease04x01x01
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: windows 2003
Web server: Apache HTTP 2.2.4
Perl version: v5.8.8
Client OS: xp
Web Browser: firefox 2.0.0.2
Categories: Platform, Installation, Permissions, Missing functionality, Plugins, Add-Ons

-- JasonOKeeffe - 05 Mar 2007

Answer

ALERT! 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.

this is my LocalSite.cfg entries for them

$TWiki::cfg{RCS}{EgrepCmd} = '/bin/egrep %CS{|-i}% %DET{|-l}% -H -- %TOKEN|U% %FILES|F%';

$TWiki::cfg{RCS}{FgrepCmd} = '/bin/fgrep %CS{|-i}% %DET{|-l}% -H -- %TOKEN|U% %FILES|F%';

-- JasonOKeeffe - 05 Mar 2007

Now i know there is something major wrong with my third install attempt as my search window in Main doesnt return any results for a search topic i know exists like WebPerferences in my Main web and my LocalSite.cfg in the \lib directory has the following for fgrep & egrep...

$TWiki::cfg{RCS}{EgrepCmd} = "/usr/bin/egrep" . ' %CS{|-i}% %DET{|-l}% -H -- %TOKEN|U% %FILES|F%';

$TWiki::cfg{RCS}{FgrepCmd} = "/usr/bin/fgrep" . ' %CS{|-i}% %DET{|-l}% -H -- %TOKEN|U% %FILES|F%';

yet when i do a search for something i know exist like 'JasonOKeeffe' it comes back with no results.

my apache log contains the following

[error] [client xx.xx.xx.xx] /usr/bin/fgrep "-i" "-l" "-H" "--" "JasonOKeeffe"

heres the strange bit if i copy the command/text from the Apache log and paste into cygwin shell it works fine it returns the correct files in the cygwin...

It comes back with the correct file list in the cygwin shell.

I am obviously overlooking something so basic and i have been searching Twiki support for 3 days and i still cant figure this one out... i feel like giving up on TWiki and trying something else .. please help.

I am no perl programming and i am scratching my head about this one i really cant find the cause and i am thinking of giving up on this Twiki

-- JasonOKeeffe - 05 Mar 2007

I might be getting closer, when i change the httpd.conf to have SetEnv PERL5SHELL "c:/cygwin/bin/bash.exe --login -i"

and restart apache and refresh the search page it shows results for the search but each result returned looks like this... c:\twiki\data\main\TwikiAdminGroup and if i click on the click it tries take me to the following http://xx.xx.xx.xx/bin/view/Main/C:%5Ctwiki%5Cdata%5CMain%5CTWikiAdminGroup which is not valid as apache returns The requested URL /bin/view/Main/C:\twiki\data\Main\TWikiAdminGroup was not found on this server. so i am thinking its something to do with my SetEnv PERL5SHELL "c:/cygwin/bin/bash.exe -c" in the httpd.conf file or permissions problem or something.

-- JasonOKeeffe - 06 Mar 2007

going to guess that a month later, Jason has made it work

-- SvenDowideit - 30 Apr 2007

Change status to:
Edit | Attach | Watch | Print version | History: r6 < r5 < r4 < r3 < r2 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r6 - 2007-05-08 - PeterThoeny
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.