You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying to add either an intro or outro text and search for the results with format datatables you get a big error, when you are using the special:Ask page
Steps to reproduce (recommendation is to use the sandbox)
the sandbox gives a different error because of the Extension:PageInCat
but the way to reproduce the error on any other wiki with SMW & SRF
1. Create ask query doesn't really mattter what i just use [[Category:+]]
2. Use Format=Datatables
3. under Parameters fill in either the intro or outro input field
5. fetch results
Expected result:
the normal results with the outro and intro added to the front and back Observed result:
Fatal error Stacktrace
@YvarRavy thanks for reporting this.
Could you please specify that it is caused by using the Special:Ask page to perform the query ?
$this->mOptions is empty in MW Parser when $this->parser->recursiveTagParseFully is called from the function handleNonFileResult (when Datatables is called from a special page) therefore or the Parser options have to be explicitly set or the original solution pointed out by you here #854
(SMW\Query\ResultPrinters\ResultPrinter)
can be used instead.
YvarRavy
changed the title
[datatables] Error when using intro or outro parameter
[datatables] Special:Ask: Error when using intro or outro parameter
Nov 4, 2024
Setup
Issue
When trying to add either an intro or outro text and search for the results with format datatables you get a big error, when you are using the special:Ask page
Steps to reproduce (recommendation is to use the sandbox)
the sandbox gives a different error because of the Extension:PageInCat
but the way to reproduce the error on any other wiki with SMW & SRF
Expected result:
the normal results with the outro and intro added to the front and back
Observed result:
Fatal error
Stacktrace
The text was updated successfully, but these errors were encountered: