Hi,

I'm not sure if I see this correctly but it looks to me that SMW 1.5 does some
modifications to the MySQL database (like creating new tables) which are
necessary for its 'internal part changes'.

What exactly does trigger those modifications?

When I simply replace the SMW 1.4 extension folder with a new SMW 1.5 folder and
try to go to a page (even a non-existing one) I get an MediaWiki internal error
because in function SMW:getSemanticData a SQL query is executed which uses a
table smw_subp2 which doesn't exist (yet).

Original exception: exception 'DBQueryError' with message 'A database error has
occurred
Query: SELECT DISTINCT o_id AS id0,o0.smw_title AS v0,o0.smw_namespace AS
v1,o0.smw_iw AS v2,o0.smw_sortkey AS v3 FROM `cmw_smw_subp2` INNER JOIN
`cmw_smw_ids` AS o0 ON o_id=o0.smw_id WHERE s_id='542'
Function: SMW::getSemanticData
Error: 1146 Table 'cancerdb.cmw_smw_subp2' doesn't exist (localhost:mysql5.sock)

I guess that's one of the newly created tables but how do I force that
update/modification to create it?

The stack trace suggests that the SMW query, even on a non-existing page, is
triggered by SemanticForms 
:
SFFormEditTab::displayTab(Object(SkinMonoBook),Array)
SFLinkUtils::getFormsThatPagePointsTo('Non-Kinase', 14, '_SF_DF',
'_SF_DF_BACKUP', 1)
SMWSQLStore2->getPropertyValues(Object(Title), Object(SMWPropertyValue))
:

If I disable the inclusion of SF_Settings.php (btw. the latest SVN version) the
error disappears.

Thanks,
Gu   


Quoting Markus Krötzsch <[email protected]>:

> And another copy for devel list. My first email went to the list owners only:
> 
> email address autocompletion is a dangerous thing. -- Markus
> 
> On Montag, 8. Februar 2010, Markus Krötzsch wrote:
> > Dear SMW users,
> > 
> > this is just to let you know that the main changes to the SVN version of
> >  SMW have been completed, and that the release of SMW 1.5.0 is planned for
> >  February now. Since there have been major changes in some internal parts,
> >  it would be good to get some testing going. Especially, extension
> >  developers should check that there are no compatibility problems with the
> >  new version -- little has changed in the officially documented
> interfaces,
> >  but you never know.
> > 
> > The main changes in SMW 1.5.0 are internal, cleaning up the rather complex
> > piece of code use for database access in SMW, and should not be visible to
> >  the user unless something went wrong. On the user level, a different
> >  declaration of n-ary (multi-valued) properties, and an extended UI for
> >  Special:Ask are the most noticeable changes.
> > 
> > We have heard that some users have reported problems/bugs with the SVN
> >  version on IRC recently, but we do not know what exactly the problems
> >  were. There are no logs of the IRC (and in any case single messages are
> >  easy to overlook). So please, if you find any problems in SMW, be sure to
> >  report them on bugzilla.mediawiki.org, or at least send some email to one
> >  of the lists where it is on archive. Otherwise, your problem reports have
> >  a high chance of going unnoticed.
> > 
> > Cheers,
> > 
> > Markus
> > 
> 
> 
> -- 
> Markus Krötzsch  <[email protected]>
> * Personal page: http://korrekt.org
> * Semantic MediaWiki: http://semantic-mediawiki.org
> * Semantic Web textbook: http://semantic-web-book.org
> --
> 





------------------------------------------------------------------------------
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
_______________________________________________
Semediawiki-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/semediawiki-devel

Reply via email to