Error report generation failed

Error message

Warning: call_user_func_array() expects parameter 1 to be a valid callback, function 'comment_node_forum_form' not found or invalid function name in drupal_retrieve_form() (line 844 of /var/www/www.gremwell.com/includes/form.inc).

I'm receiving the following error when trying to generate a report:

Report generation failed. Failed evaluating XPath expression "//finding[@title = $_0 and @status!='ignore']": Cannot resolve variable "$_0": Back-reference stack contains 0 values. (namespaceURI: null, prefix=, localName=_0). Cannot resolve variable "$_0": Back-reference stack contains 0 values. (namespaceURI: null, prefix=, localName=_0)

My template is written as follows (note: the {{mt:unique(//finding[@status!='ignore']/source-severity[text()='high']/../@title)}} statement is in a 1 column table in row1 and "Severity:High Class:" being in row2)
----

High Severity
No high severity problems were identified. {{.[count(//finding[source-severity='high'])=0]|hidden}}

{{mt:unique(//finding[@status!='ignore']/source-severity[text()='high']/../@title)}}
Severity: High Class:

Summary
N/A{{.[count(../synopsis)=0]|hidden}}
{{../synopsis}}

Description: {{..}}

Affected systems
{{//finding[@title = $_0 and @status!='ignore']|hidden}}{{affects}}

Details per affected system
{{//finding[@title = $_0 and @status!='ignore']|hidden}}{{affects|leaf}} {{output|leaf}}

Recommendation Strategy: N/A{{.[count(../solution)=0]|hidden}}
{{../solution}}

References and Resources
{{../reference}} {{url}}
{{../cve}} http://cve.mitre.org/cgi-bin/cvename.cgi?name={{.|leaf}}
BID-{{../bid}} http://www.securityfocus.com/bid/{{.}}
OSVDB-{{../osvdb}} http://osvdb.org/show/osvdb/{{.}}

What happens if you remove everything after {{mt:unique(//finding[@status!='ignore']/source-severity[text()='high']/../@title)}} ?

Does it output a list of titles? If it doesn't, probably this expression is broken. Look at troubleshooting tips here: http://www.gremwell.com/magictreedoc/b1ac1f7c.html

Thank you for the response Alla.

Removing everything after
{{mt:unique(//finding[@status!='ignore']/source-severity[text()='high']/../@title)}}

Results in a blank document with just the heading title of 'High Severity'.

I've been attempting to tweak it for a few hours now, however, I'm not sure at this point.

Add new comment

CAPTCHA
Please answer the question to prove that you are not a spammer. If it isn't working and you are not a spammer, please email us.
Fill in the blank.