On 06/27/2011 02:12 PM, Tim Jones wrote:
I have just carefully upgraded a wiki from 2.6 to 3.1
At first glance It seemed to have gone fine, but I noticed velocity errors on the
new-style Admin page (XWiki.XWikiPreferences):
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
...
Caused by: org.apache.velocity.runtime.parser.TemplateParseException: Encountered
"\'checkbox\'" at xwiki:XWiki.AdminSheet[line 231, column 26]
Was expecting one of:
"," ...
")" ...
<WHITESPACE> ...
...
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
(full error message copied below)
The result is that none of the administration pages displays properly.
Has anyone an idea of what might be causing this problem?
Thanks for your help,
Tim
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Failed to execute the [velocity] macro
org.xwiki.rendering.macro.MacroExecutionException: Failed to evaluate Velocity Macro for
content [## Constants:
...
#if
($out.indexOf('type=''checkbox''') != -1)
...
Looks like you're still using Velocity 1.6. Did you extract the new war
over the old one?
Make sure in webapps/xwiki/WEB-INF/lib/ there's only one velocity core jar.
--
Sergiu Dumitriu
http://purl.org/net/sergiu/