SemanticMediaWiki / SemanticGlossary

Allows you define terms and abbreviations together with a definition.
https://www.mediawiki.org/wiki/Extension:Semantic_Glossary
Other
13 stars 12 forks source link

Deprecated DIProperty methods were removed #33

Closed kghbln closed 6 years ago

kghbln commented 6 years ago

Setup and configuration

Issue

Due to the removal of these methods the wiki fails with a fatal.

 Fatal error: Call to undefined method SMW\DIProperty::registerProperty() in /../w/extensions/SemanticGlossary/src/PropertyRegistry.php on line 87

Solution

A migration guide is available.

\Hooks::register( 'SMW::Property::initProperties', function( $propertyRegistry ) {

    $propertyRegistry->registerProperty( '__FOO', '_txt', 'Foo' );

    return true;
} );

See also

The commit that removed the methods: https://github.com/SemanticMediaWiki/SemanticMediaWiki/pull/2944

kghbln commented 6 years ago

@s7eph4n FYI I will reinstall on sandbox as soon as fluff is there. :)

kghbln commented 6 years ago

@s7eph4n Back in business on sandbox with

## Semantic Glossary
wfLoadExtension( 'SemanticGlossary' );
$wgexLingoPage = 'Glossaire';
$wgexLingoUseNamespaces[NS_SPECIAL] = false;
s7eph4n commented 6 years ago

Didn't even remember the bug on this, just wanted to get it running again. :)