Closed duncdrum closed 6 years ago
Accessing the wiki (or any article) results in:
err:XPTY0004 Expected exactly one item for the function to be called, got 0. Expression: $config?paragraph [at line 285, column 20, source: /Users/halalpha/Library/Application Support/org.exist/expathrepo/markdown-0.6/content/markdown.xql] In function: markdown:paragraph(xs:string, map) [450:34:/Users/halalpha/Library/Application Support/org.exist/expathrepo/markdown-0.6/content/markdown.xql] markdown:handle-block(xs:string, function*, map) [454:13:/Users/halalpha/Library/Application Support/org.exist/expathrepo/markdown-0.6/content/markdown.xql] markdown:handle-block(xs:string, function*, map) [461:9:/Users/halalpha/Library/Application Support/org.exist/expathrepo/markdown-0.6/content/markdown.xql] markdown:parse-blocks(xs:string*, map) [138:30:/Users/halalpha/Library/Application Support/org.exist/expathrepo/markdown-0.6/content/markdown.xql] markdown:parse(xs:string?, map+) [100:40:/Users/halalpha/Library/Application Support/org.exist/expathrepo/markdown-0.6/content/markdown.xql] atomic:get-content(element()?, xs:boolean) [312:25:/db/apps/wiki/modules/atomic.xql] app:content(node(), map) [217:18:/db/apps/wiki/modules/app.xql] templates:call-with-args(function, function*, element(), map) [208:13:/Users/halalpha/Library/Application Support/org.exist/expathrepo/shared-0.4.2/content/templates.xql] templates:process-output(element(), map, item()*, element()) [205:9:/Users/halalpha/Library/Application Support/org.exist/expathrepo/shared-0.4.2/content/templates.xql] templates:call-by-introspection(element(), map, map, function) [187:28:/Users/halalpha/Library/Application Support/org.exist/expathrepo/shared-0.4.2/content/templates.xql] templates:call(item(), element(), map) [143:37:/Users/halalpha/Library/Application Support/org.exist/expathrepo/shared-0.4.2/content/templates.xql] templates:process(node()*, map) [146:81:/Users/halalpha/Library/Application Support/org.exist/expathrepo/shared-0.4.2/content/templates.xql] templates:process(node()*, map) [82:21:/Users/halalpha/Library/Application Support/org.exist/expathrepo/shared-0.4.2/content/templates.xql] app:entries(node(), map, xs:string?, xs:string?, xs:string?, xs:int) [225:18:/db/apps/wiki/modules/app.xql] templates:call-with-args(function, function*, element(), map) [208:13:/Users/halalpha/Library/Application Support/org.exist/expathrepo/shared-0.4.2/content/templates.xql] templates:process-output(element(), map, item()*, element()) [205:9:/Users/halalpha/Library/Application Support/org.exist/expathrepo/shared-0.4.2/content/templates.xql] templates:call-by-introspection(element(), map, map, function) [187:28:/Users/halalpha/Library/Application Support/org.exist/expathrepo/shared-0.4.2/content/templates.xql] templates:call(item(), element(), map) [143:37:/Users/halalpha/Library/Application Support/org.exist/expathrepo/shared-0.4.2/content/templates.xql] templates:process(node()*, map) [280:13:/Users/halalpha/Library/Application Support/org.exist/expathrepo/shared-0.4.2/content/templates.xql] templates:process(node()*, map) [146:81:/Users/halalpha/Library/Application Support/org.exist/expathrepo/shared-0.4.2/content/templates.xql] templates:process(node()*, map) [146:81:/Users/halalpha/Library/Application Support/org.exist/expathrepo/shared-0.4.2/content/templates.xql] templates:process(node()*, map) [146:81:/Users/halalpha/Library/Application Support/org.exist/expathrepo/shared-0.4.2/content/templates.xql] templates:process(node()*, map) [146:81:/Users/halalpha/Library/Application Support/org.exist/expathrepo/shared-0.4.2/content/templates.xql] templates:process(node()*, map) [146:81:/Users/halalpha/Library/Application Support/org.exist/expathrepo/shared-0.4.2/content/templates.xql] templates:process(node()*, map) [146:81:/Users/halalpha/Library/Application Support/org.exist/expathrepo/shared-0.4.2/content/templates.xql] templates:process(node()*, map) [465:17:/Users/halalpha/Library/Application Support/org.exist/expathrepo/shared-0.4.2/content/templates.xql] templates:process-output(element(), map, item()*) [273:9:/Users/halalpha/Library/Application Support/org.exist/expathrepo/shared-0.4.2/content/templates.xql] templates:process-output(element(), map, item()*, element()) [205:9:/Users/halalpha/Library/Application Support/org.exist/expathrepo/shared-0.4.2/content/templates.xql] templates:call-by-introspection(element(), map, map, function) [187:28:/Users/halalpha/Library/Application Support/org.exist/expathrepo/shared-0.4.2/content/templates.xql] templates:call(item(), element(), map) [135:36:/Users/halalpha/Library/Application Support/org.exist/expathrepo/shared-0.4.2/content/templates.xql] templates:process(node()*, map) [131:51:/Users/halalpha/Library/Application Support/org.exist/expathrepo/shared-0.4.2/content/templates.xql] templates:process(node()*, map) [88:9:/Users/halalpha/Library/Application Support/org.exist/expathrepo/shared-0.4.2/content/templates.xql] templates:apply(node()+, function, map?, map?) [31:5:/Users/halalpha/Library/Application Support/org.exist/expathrepo/shared-0.4.2/content/templates.xql]
A working AtomicWIki
eXist 3.6.1 Java8 markdown 0.6. AtomicWiki 0.8
This is fixed by https://github.com/wolfgangmm/AtomicWiki/commit/601719d71523d1dfdaf929e2d49e8a6ae5d46d13
@wolfgangmm this should be closed now.
Indeed
What is the Problem:
Accessing the wiki (or any article) results in:
What Did I expect
A working AtomicWIki
Sys
eXist 3.6.1 Java8 markdown 0.6. AtomicWiki 0.8