Tags:
create new tag
view all tags

Question

I've upgraded (using the script) on a test server from 02 Sep 2004 $Rev: 1742 $ to TWiki Release 4.0.4 and the following occurs:

http://somehost.com/bin/view/TWiki/FormattedSearch#Bullet_list_showing_topic_name_a

works (like the production server)

http://somehost.com/bin/view/TWiki/FormattedSearch#Extract_some_text_from_a_topic_u

does not produce any output after "To get this:"

So it appears that $pattern(...) in %SEARCH{...}% is not working.

I did not notice any related error messages when errant page is hit.

I was hoping this was simple but did not notice a similar question at this site and a search on the internet.

If this was answered please point me to it and sorry for the inconvenience.

Thanks much!

Mark

Environment

TWiki version: TWikiRelease04x00x04
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: FreeBSD 6.1-RELEASE-p10
Web server: Apache 2.0.59
Perl version: Perl 5.8.8
Client OS: Windows
Web Browser: Firefox
Categories: Installation

-- MarkYoshikawa - 08 Jan 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.

I am not sure what could case the issue. If you do not get any search result it could be an external grep issue (GNU tool?). Check if normal search in topic text is working properly.

If search is OK, but incorrectly formatted then I can only suspect a goofy Perl installation; the $pattern() is done in pure Perl.

-- PeterThoeny - 20 Jan 2007

Thanks Peter...

At this point I think it has to do with the interaction with my Perl installation. The perl program is in the right place: /usr/bin/perl and is at 5.8.8. I tried the test page with a default 4.0.4 as well as a 4.1.0 installations and the same thing occurs.

Can I receive some pointers to get more information out of TWiki when $pattern fails. Like some instrumentation in the code that handles $pattern. I would like to know what I need to fix in my perl installation if it is that and if I'm going about it correctly:

In /usr/local/www/twiki/lib/TWiki.pm I find:

# Default handlers for different %TAGS% %functionTags = ( ... SEARCH => \&_SEARCH, ...

Then in /usr/local/www/twiki/lib/CPAN/lib/Locale/Maketext/Extract.pm I find:

sub _format { ... }

Maybe going down the wrong path?

Thanks very much!

-- MarkYoshikawa - 26 Jan 2007

I forgot to answer your question about normal search and http://somehost.com/twiki/bin/view/TWiki/FormattedSearch#Bullet_list_showing_topic_name_a seems to be working, it yields:

* Topic: Summary: * TWikiFAQ: Frequently Asked Questions About TWiki This is a real FAQ, and also a demo of an easily implemented knowledge base solution. To see how it's done, view the source ... * TWikiFaqTemplate: FAQ: Answer: Back to: TWikiFAQ * TextFormattingFAQ: Text Formatting FAQ The most frequently asked questions about text formatting are answered. Also, TextFormattingRules contains the complete TWiki shorthand system ...

-- MarkYoshikawa - 26 Jan 2007

OK, so native Perl search on topic name works.

We do not recommend to use the upgradewtiki script anymore, there are a number of issue. Please follow the manual upgrade procedure.

The search $pattern() is done in lib/TWiki/Search.pm

Not getting any output is an indication that the external grep is not working. Check if you are using the GNU grep tools. If not, make sure the egrep and fgrep settings in configure match your grep.

-- PeterThoeny - 27 Jan 2007

Thanks Peter. Yes for 4.1.0 I'm using the manual install instructions which are very clear btw... I'm afraid we are using GNU grep tools I checked the source... Are there any workarounds? (I can think of the obvious but I want to see if you have a better idea ;-)...

-- MarkYoshikawa - 30 Jan 2007

Make sure the path to fgrep and egrep is correct in configure. Also, manually manually run an egrep with the same parameters as in configure (with expanded variables) to see if the grep takes all parameters, especially command line switches.

-- PeterThoeny - 30 Jan 2007

Oh man... yeah it was one of those "/usr/bin vs /bin thought I checked that" in the configure page ... sorry about that but very happy camper!

Mark

-- MarkYoshikawa - 30 Jan 2007

Thanks!

-- MarkYoshikawa - 30 Jan 2007

Change status to:
Edit | Attach | Watch | Print version | History: r8 < r7 < r6 < r5 < r4 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r8 - 2007-01-30 - MarkYoshikawa
 
  • 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.