Last modified: 2011-02-15 20:47:23 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T21458, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 19458 - When saving a query the system always puts }} after {{#ask: and so ignores all other arguments
When saving a query the system always puts }} after {{#ask: and so ignores al...
Status: RESOLVED WORKSFORME
Product: MediaWiki extensions
Classification: Unclassified
SemanticForms (Other open bugs)
unspecified
Other Windows Server 2003
: Normal blocker with 1 vote (vote)
: ---
Assigned To: Yaron Koren
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-07-01 09:59 UTC by preini
Modified: 2011-02-15 20:47 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description preini 2009-07-01 09:59:18 UTC
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]]}}
Comment 1 Yaron Koren 2009-07-01 14:54:36 UTC
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.
Comment 2 Yaron Koren 2009-07-26 19:09:10 UTC
Changing status to "WORKSFORME". Please re-open this if you're having the same problem with the latest version of SF.
Comment 3 preini 2009-07-27 07:01:07 UTC
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". 
Comment 4 Yaron Koren 2009-07-27 12:18:51 UTC
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)?
Comment 5 preini 2009-07-27 12:36:34 UTC
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?
Comment 6 Yaron Koren 2009-07-27 15:17:01 UTC
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.
Comment 7 Yaron Koren 2010-09-30 19:29:05 UTC
Hi - it's over a year later, but is this still a problem?
Comment 8 Yaron Koren 2011-02-15 20:47:23 UTC
I'm changing the status once again now to "worksforme". Feel free to re-open it if it's still a problem.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links