From: Guy H. <guy...@or...> - 2008-04-07 15:31:11
|
Hi, I seem to have got myself into a big SMW mess and am struggling to understand what's happened and how to sort it out. The problems started when I identified a subset of existing 'data licence' pages that were distinct and separate enough to warrant being in their own namespace. Have successfully gone through a similar procedure on a previous occasion, I happily created the new n/s and moved the records into it. Initially, all appeared to be working well, but pretty soon afterward, users starting reporting problems with SMW properties. So, yes, you've guessed it, I'd chosen '102' as the namespace index and thus the system was muddling the SMW properties with my own pages. Having realised what was going on, I then created a new namespace using an unused index and manually moved all of my articles into it, deleting the redirects from 102 in the hope that they would no longer interfere with the property functionality. This certainly solved the issues we were having with properties. However, I'm now having major issues with my existing 'data licence' pages with even brand new pages created via the existing 'data licence' template/form suffering from errors. What seems to be happening is that although the MW pages themselves seem OK, the supporting data in tables such as mw_smw_longstrings, mw_smw_relations, mw_smw_attributes and mw_pagelinks is not being populated, found or updated. When viewing the pages themselves, the SMW factbox is now not appearing, despite the presence of property assignments in the text of the page itself. Queries on the data are also not working as they should. So, does anyone have any suggestions as to what I can do to sort this out? Other than scrapping what I've got and starting again from scratch, I'm fast running out of ideas. Guy -- View this message in context: http://www.nabble.com/Help%21--Major-namespace-related-problems...-tp16537496p16537496.html Sent from the Semantic Mediawiki - User mailing list archive at Nabble.com. |
From: S P. <in...@sk...> - 2008-04-08 22:13:20
|
Guy Heathcote wrote: > So, does anyone have any suggestions as to what I can do to sort this out? SMW's annotations live on in the wiki text, so you haven't lost anything. In general, running the SMW_refreshData.php maintenance script twice (first with -p option to pick up property information, then again to parse pages using annotations) should solve problems. However, I think in your case you may still have old information in the SMW tables. The subject and object namespaces are stored as integers for performance, so parsing the pages won't necessarily clear out all old information from the namespace conflict. So try running smw_refreshData -fpv to first drop all the smw tables and reconstruct them, and then parse properties; then run smw_refresh -v. You also probably have bad information in MediaWiki's own tables. I'm not sure how to clear that out. MediaWiki's own maintenance directory has various rebuild* and refresh* scripts or you can run an external bot script that purges or re-saves pages. If you still have woes, fire up phpMyAdmin or something similar and investigate your wikidb tables. Good luck, -- =S Page |
From: Guy H. <guy...@or...> - 2008-04-09 11:10:12
|
S Page-2 wrote: > > Guy Heathcote wrote: > >> So, does anyone have any suggestions as to what I can do to sort this >> out? > > SMW's annotations live on in the wiki text, so you haven't lost anything. > > In general, running the SMW_refreshData.php maintenance script twice > (first with -p option to pick up property information, then again to > parse pages using annotations) should solve problems. > > However, I think in your case you may still have old information in the > SMW tables. The subject and object namespaces are stored as integers > for performance, so parsing the pages won't necessarily clear out all > old information from the namespace conflict. > So try running smw_refreshData -fpv to first drop all the smw tables and > reconstruct them, and then parse properties; then run smw_refresh -v. > > > You also probably have bad information in MediaWiki's own tables. I'm > not sure how to clear that out. MediaWiki's own maintenance directory > has various rebuild* and refresh* scripts or you can run an external bot > script that purges or re-saves pages. > > If you still have woes, fire up phpMyAdmin or something similar and > investigate your wikidb tables. > > Good luck, > -- > =S Page > > Many thanks for that. Assuming that there'll be no more unwanted surprises, I think that I'm back and operational now. Completely refreshing the semantic tables seems to have done the trick. I'm not yet sure whether there's anything remaining in any of the MW tables that shouldn't be there, but have yet to notice any further problems. Guy Guy -- View this message in context: http://www.nabble.com/Help%21--Major-namespace-related-problems...-tp16537496p16584362.html Sent from the Semantic Mediawiki - User mailing list archive at Nabble.com. |