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

Markus Krötzsch <mar...@semantic-mediawiki.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID

--- Comment #2 from Markus Krötzsch <mar...@semantic-mediawiki.org> 2010-05-23 
10:50:10 UTC ---
Regarding Special:Unusedproperties, this issue is probably due to the operation
trying to create temporary tables for which your default user may not have
sufficient rights. This can also happen in SMW queries if category or property
hierarchies are taken into account.

To see the SQL query that causes the issue, you can set $wgShowSQLErrors =
true;
$wgDebugDumpSql  = true; in your LocalSettings (see 
http://www.mediawiki.org/wiki/Manual:How_to_debug for more help on gathering
error information from MediaWiki).

If the query is CREATE TEMPORARY TABLE ... you need to provide this right to
your DB user, or chose to disable the respective functions. This relates to two
kinds of SMW features:

* The special page unused properties. To disable it completely, you currently
need to edit SMW by commenting out the following lines:

 $wgAutoloadClasses['SMWSpecialUnusedProperties'] = $smwgIP .
'specials/QueryPages/SMW_SpecialUnusedProperties.php';
 $wgSpecialPages['UnusedProperties']             = array(
'SMWSpecialUnusedProperties' );
 $wgSpecialPageGroups['UnusedProperties']        = 'maintenance';

In your current version, these lines should be found in
./includes/SMW_GlobalFunctions.php. From SMW 1.5.1 on, these lines will be in a
new file called ./includes/SMW_Setup.php.

* Category and property hierarchies in SMW queries. To disable the use of such
hierarchies in SMW, add the following to your LocalSettings:

 $smwgQSubcategoryDepth = 0;
 $smwgQSubpropertyDepth = 0;

I am confident that this fixes your problems with SMW (feel free to re-open
this bug if not). The other special page you mention does not belong to SMW.
Please file a separate bug for the respective extension if the problem
persists.

-- 
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
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to