https://bugzilla.wikimedia.org/show_bug.cgi?id=30284

       Web browser: ---
             Bug #: 30284
           Summary: Broken +index=x for records
           Product: MediaWiki extensions
           Version: any
          Platform: All
        OS/Version: Linux
            Status: NEW
          Severity: critical
          Priority: Unprioritized
         Component: Semantic MediaWiki
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]
    Classification: Unclassified


I have recently updated from SMW 1.5.2 to 1.6, and this broke some of elements
on my site. I use properties of type Record extensively, and I access them by
single fields (+index=x parameter). Since the upgrade it stopped working. When
I type for example:

{{#ask: [[My page]] | ?my record = }}

it will correctly display the values of all record fields, but when I do

{{#ask: [[My page]] | ?my record = | +index=1}} 

it will not display anything. The record property has two fields: number and
string, both are defined in "My page". The same happens when using #show query
with +index.

Of course I have run database upgrade and data upgrade after installation (plus
another data upgrade after adjusting records to the new style, just in case).

Unfortunately my wiki is private, so I cannot post a link to it, but I have
tried reproducing the problem in the sandbox with partial success. The sandbox
uses an alpha version of SMW 1.6, and it suffers even bigger problem from this
setting. See the following pages:

http://sandbox.semantic-mediawiki.org/wiki/Property:Record_test
http://sandbox.semantic-mediawiki.org/wiki/Record_test_page
http://sandbox.semantic-mediawiki.org/wiki/Record_test_page_2

After uncommenting the parts of code using +index, the page shows PHP Fatal
error: Call to undefined method SMWDIContainer::getDVs() in
/export/www/html/projects/SMW-Sandbox/extensions/SemanticMediaWiki/includes/storage/SMW_QueryResult.php
on line 426

I will be happy to make the tests again when you upgrade the sandbox SMW to the
stable version.

My software: 
SMW: 1.6 (July 30, 2011)
MediaWiki: 1.17.0
PHP: 5.2.17
MySQL: 5.1.56
OS: Linux

Debug log does not show any errors, so does php, and format=debug gives the
following output (the exact query is: {{#ask: [[Farm]] | ?progress_s = |
+index=1 | format = debug}}):

Debug Output by SMWSQLStore2
Generated Wiki-Query

[[Farm]]

Query Metrics
Query-Size:1
Query-Depth:0
SQL Query
SELECT DISTINCT t1.smw_title AS t,t1.smw_namespace AS ns FROM `pqwsmw_ids` AS
t1 WHERE t1.smw_id='387' ORDER BY t1.smw_sortkey ASC LIMIT 51 OFFSET 0;
Auxilliary Tables Used
No auxilliary tables used.
Errors and Warnings
None

I have tried to disable all other extensions (except for Validator) in case of
an interference, but it did not change anything.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to