Help:Troubleshooting

From Edge of Darkness Wiki

Troubleshooting
Jump to: navigation, search

SMW admin manual

Download

Installation

Configuration

Concept caching

Troubleshooting

Repairing SMW's data

Extensions

Basic extensions

Semantic extensions

SPARQL endpoint

SMW user manual

This page explains various common problems when running Semantic MediaWiki and how to fix them. Problems that are not in this list may be solved by SMW's support facilities or may be software bugs that you may wish to report.

Contents

Database errors: unknown/nonexistent table

Most likely, your database was not initialized properly. Go to the page Special:SMWAdmin on your wiki for instructions. If all fails, run the maintenance script "php SMW_refreshData.php -vfp" (followed by "php SMW_refreshData.php -v" if you already stored annotations).

Wrong or incomplete data

It is possible that the data used by SMW is not in synch with the page contents in your wiki. To check this, edit a page that is affected and use Special:Browse to see if its data is now correct. To fix all pages automatically, read Help:Repairing SMW's data. If this was not your problem look at the next item.

Missing data on custom namespaces

Make sure your custom namespace is listed in $smwgNamespacesWithSemanticLinks. Read SMW_Settings.php for details. If this fails, check whether you have restricted queries to certain namespaces using $smwgNamespacesWithSemanticLinks.

Database errors: illegal collation

Your database tables for MediaWiki and SMW have been generated with different settings. To fix the problem, first try to run the maintenance script "php SMW_refreshData.php -vfp" followed by "php SMW_refreshData.php -v". If this does not help, you need to investigate the collation/character set settings of your DB. To do that, use a DB frontend tool or the SQL command "SHOW CREATE TABLE tablename;". Look up the collation/charset of, e.g., the table "categorylinks" and change the default collation/charset of your DB to these settings as described in the MySQL manual. Finally, run the aforementioned maintenance scripts again.

Non-English language fails

Although SMW normally provides English aliases, you may need to use the localised names for special properties and namespaces. The translated strings and aliases for each language are in the languages subdirectory.

Blank or incomplete pages

This is usually due to the restrictive memory default settings on some sites, and is not directly caused by SMW (any additional extension code might cause this). Uncomment the line

ini_set( 'memory_limit', '20M' ); 

in LocalSettings.php and possibly adjust the value to your needs. More than 100M is harldy useful, but values around 50M might be required for large pages in some cases.

This documentation page applies to all SMW versions from 1.0 to the most current version.
     

Help:Troubleshooting en 1.0

Facts about TroubleshootingRDF feed
From version1.0  +
Language codeen  +
Master pageTroubleshooting  +
Personal tools
Namespaces
Variants
Actions
Navigation
games
Toolbox