summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbhobbit <bhobbit@web>2010-03-08 02:09:00 +0000
committerJoey Hess <joey@finch.kitenet.net>2010-03-08 02:09:00 +0000
commit7559c7b3ae382191e8d4acde8ddd9e2323edb9a2 (patch)
treeffbf53d244e27c64efc54a254f0979f6f8212fb8
parentb44e42baf13a1798e723cdd5d19ffdfe2c751a4b (diff)
-rw-r--r--doc/forum/Exception:_Unknown_function___96__this__39___.mdwn2
1 files changed, 2 insertions, 0 deletions
diff --git a/doc/forum/Exception:_Unknown_function___96__this__39___.mdwn b/doc/forum/Exception:_Unknown_function___96__this__39___.mdwn
index 3cbcdc485..94de18ceb 100644
--- a/doc/forum/Exception:_Unknown_function___96__this__39___.mdwn
+++ b/doc/forum/Exception:_Unknown_function___96__this__39___.mdwn
@@ -12,3 +12,5 @@ What might be causing this exception and how I might go about debugging exceptio
> You could try rebuilding your wiki in case it is somehow
> caused by a problem with the xapian database. Failing everything, you
> could switch to [[google_search_plugin|plugins/google]]. --[[Joey]]
+
+>> Thanks, Joey. With your help I was able to figure out what was wrong. It's a fun little bug (or feature): the title of my wiki had string `$this` in title and that's what was causing the omega binary to choke. My wiki's title was inserted without escaping into the query template used by omega. Omega treated `$this` in the title as a function name and threw an exception because no such function was defined. To avoid this behavior, I used an html entity in the title, so `$this` became `&#36;this`. I don't think that the wiki title should be inserted into the template without escaping - it can produce an error that's not trivial to debug. If users want to modify the html in the title, they should be editing respective templates, not typing html in the wiki title input. What do you think? --[[dkobozev]]