Page MenuHomePhabricator

When saving a query the system always puts }} after {{#ask: and so ignores all other arguments
Closed, DeclinedPublic

Description

Author: andreas.preininger

Description:
Can the problem be viewed online in a public wiki? (If yes, provide its URL.)
NO.

Which versions of SMW was used?
SEMMEDIAWIKI = 1.4.2

Which version of MediaWiki was used?
MEDIAWIKI = 1.14.0

Which server setup was used (PHP, MySQL, OS)?
Windows2003Server, WAMP-Server (PHP=5.2.9-2, Apache=2.2.11, MySQL=5.1.33)

Detailed description: If I create an inline query (wie #ask) and save the query the system automatically modifies the query.

Example A:

I type and save:
{{#ask:[[Synonyms::{{SUBJECTPAGENAME}}]]}}

The Systems makes (if I open it again):
{{#ask:}}[[Synonyms::{{SUBJECTPAGENAME}}]]}}

And so all arguments behind are ignored. Firstly, I thought it was because of the {{SUBJECTPAGENAME}}, but the same thing happens also with ohter queries, e.g. Example B:

I type and save:
{{#ask:[[Category:Items]]}}

The Systems makes (if I open it again):
{{#ask:}}[[Category:Items]]}}


Version: unspecified
Severity: blocker
OS: Windows Server 2003
Platform: Other

Details

Reference
bz19458

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 10:40 PM
bzimport set Reference to bz19458.

I assume you're talking about saving these strings within a form. What version of Semantic Forms are you using? This problem might have been fixed already.

Changing status to "WORKSFORME". Please re-open this if you're having the same problem with the latest version of SF.

andreas.preininger wrote:

Hello Yaron. Yes it happens when editing templates in a form. I used the version SEMANTIC FORMS 1.7.2. Now I tried it with the latest version (1.8). I installed the new FORMS just by replacing the extracted folder "SemanticForms" in the file system. Then I restarted all services. However, the problem is still the same. So I reopened the bug.

One more comment: After installing version 1.8 I always get the message: "Notice: Undefined offset 3 in C:\...\...\extensions\SemanticForms\includes\SF_Utils.inc on line 17".

Okay. I know about the second problem (it'll be fixed in another version soon), but I still can't duplicate the first problem. Is there any way you can replicate the problem on the site http://scratchpad.referata.com, by copying over the form and template pages (and property pages, if needed)?

andreas.preininger wrote:

I tried the same steps on http://scratchpad.referata.com , but I can't duplicate the problem, too. For this trial I created new template, page and property. I have no idea how to transfer my "pages" to this portal?

Hi, it looks like all you copied over is the template - the "Form:" page is needed too, plus one of the pages that contains #ask. To copy a page, just go to the "edit" tab, copy all the contents, then create a page on scratchpad.referata.com with the same name, and add the contents there.

Hi - it's over a year later, but is this still a problem?

I'm changing the status once again now to "worksforme". Feel free to re-open it if it's still a problem.