I downloaded 'SemanticBundle-20140103.zip' but it leads to the error Error: This version of Validator requires MediaWiki 1.16 or above. Despite the fact, that my mediawiki is 1.22.2....
Topic on Talk:Semantic Bundle
If you don't mind, could you go into the file /extensions/Validator/Validator.php and comment out the line where that error is raised (it should be around line 29)? That may or may not fix the overall problem - please let us know if that worked.
Hi, I am also using mediawiki 1.22.2 and after I downloaded and installed Semantic Bundle I have the same error. After commenting out Validator.php. I get this error: "Error: This version of Semantic MediaWiki requires MediaWiki 1.17 or above; use SMW 1.7.x for MediaWiki 1.16.x."
I commented out the Error message in SemanticMediaWiki extension php and now I have empty pages in my wiki...
It did not originally work. I had to reget the semantic bundle and try a lot of thinks, for it to work again. With Maps/Semantic Maps not in use right now.
I'll try them again, when I have more time...
Found a fix to get semantic features working with mediawiki 1.22.4 and composer. The challenge is that the semantic bundle overwrites the created "semantic extensions" on the initial Semantic Mediawiki, created through "composer" and enableSemantics. The solution
- use composer:
composer require mediawiki/semantic-media-wiki "~1.9"
- run maintenance scripts:
php maintenance/update.php
then make a tar of the extension scripts, install the semantic bundle, and extract the previous extensions:
-
tar -cvzf extensions-mediawiki.tgz extensions
- install SemanticBundle
-
tar -xvzf extensions-mediawiki.tgz
however: all my types are still of type Page, with message: no type was specified for this property. Assuming type Page for now
I tried that, since I made an new attempt to update, but it only sends errors back
PHP Warning: Class 'SMW\Store' not found in PATH TO WIKI/extensions/SemanticMediaWiki/SemanticMediaWiki.php on line 60
PHP Warning: Class 'SMW\MediaWiki\Jobs\UpdateJob' not found in PATH TO WIKI/extensions/SemanticMediaWiki/SemanticMediaWiki.php on line 61
PHP Warning: Class 'SMW\MediaWiki\Jobs\RefreshJob' not found in PATH TO WIKI/extensions/SemanticMediaWiki/SemanticMediaWiki.php on line 62
PHP Warning: Class 'SMW\SemanticData' not found in PATH TO WIKI/extensions/SemanticMediaWiki/SemanticMediaWiki.php on line 63
PHP Warning: Class 'SMW\DIWikiPage' not found in PATH TO WIKI/extensions/SemanticMediaWiki/SemanticMediaWiki.php on line 64
PHP Warning: Class 'SMW\DIProperty' not found in PATH TO WIKI/extensions/SemanticMediaWiki/SemanticMediaWiki.php on line 65
PHP Warning: Class 'SMW\Serializers\QueryResultSerializer' not found in PATH TO WIKI/extensions/SemanticMediaWiki/SemanticMediaWiki.php on line 66
PHP Warning: Class 'SMW\DataValueFactory' not found in PATH TO WIKI/extensions/SemanticMediaWiki/SemanticMediaWiki.php on line 67
PHP Warning: Class 'SMW\DataItemException' not found in PATH TO WIKI/extensions/SemanticMediaWiki/SemanticMediaWiki.php on line 68
PHP Warning: Class 'SMW\FileExportPrinter' not found in PATH TO WIKI/extensions/SemanticMediaWiki/SemanticMediaWiki.php on line 69
PHP Warning: Class 'SMW\ResultPrinter' not found in PATH TO WIKI/extensions/SemanticMediaWiki/SemanticMediaWiki.php on line 70
PHP Warning: Class 'SMW\SQLStore\TableDefinition' not found in PATH TO WIKI/extensions/SemanticMediaWiki/SemanticMediaWiki.php on line 71
PHP Warning: Class 'SMW\AggregatablePrinter' not found in PATH TO WIKI/extensions/SemanticMediaWiki/SemanticMediaWiki.php on line 72
PHP Warning: Class 'SMW\ListResultPrinter' not found in PATH TO WIKI/extensions/SemanticMediaWiki/SemanticMediaWiki.php on line 73
PHP Warning: Class 'SMW\DIConcept' not found in PATH TO WIKI/extensions/SemanticMediaWiki/SemanticMediaWiki.php on line 74
PHP Fatal error: Class 'SMW\SimpleDependencyBuilder' not found in PATH TO WIKI/extensions/SemanticMediaWiki/SemanticMediaWiki.php on line 112
The PATH TO WIKI being my edit. So, there is something wrong, even if I try to get composer to download the latest version.
I assume you're using the latest Semantic Bundle - but are you using strictly extensions from SB, or are some of the extensions (like SMW itself) coming from elsewhere?
There are other extensions, like Auth_phpBB and MergeUser, NativeSVG and a extension I wrote myself, for instance.
First, I'm not quite sure composer works, like it should. Examples go for composer install ...
, but I have to run it with php composer.phar install ...
. Am I supposed to create a 'composer' shell file myself? Do I need to ?
That said, I seems that composer downloaded everything needed. And yes, I downloaded the latest semanticbundle.
Installation_without_shell_access#Troubleshooting stated, that I have to remove Validator if errors like that occur. I did, but nothing changed.
Heinrich, while others are better informed about this than me, I'm not sure if the two approaches, that is, using SB as well as Composer, are full compatible. In fact, the latest version of SB is a welcome service for people (like myself) who cannot run Composer and need to install a lot of related extensions on top of SMW. Either download the individual extensions yourself (not from SB) and run Composer or use SB and don't run Composer.
Thanks for the input. I now have my wiki back running again. Problem was, that even with a clean installation of mediawiki and semantic bundle it didn't work for some reason. I now use composer and have manually installed some other extensions.
I hope all the other extensions are added to composer soon, for it is really comfortable, if it works.
Hi,
When i try to update or initialize database in smanticmediawiki i get the following error
Notice: Only variables should be passed by reference in C:\xampp\htdocs\mediawiki\extensions\SemanticMediaWiki\includes\Setup.php on line 273.
I am new to it so can anyone help me.