Mediawiki/Cargo: Difference between revisions
Antonizoon (talk | contribs) No edit summary |
Antonizoon (talk | contribs) |
||
(One intermediate revision by the same user not shown) | |||
Line 25: | Line 25: | ||
If you encounter a job queue version with Cargo (enable all the below in {{ic|LocalSettings.php}}) | If you encounter a job queue version with Cargo (enable all the below in {{ic|LocalSettings.php}}) | ||
{{bc| | {{bc|<nowiki> | ||
$wgShowExceptionDetails = true; | $wgShowExceptionDetails = true; | ||
$wgShowSQLErrors = true; | $wgShowSQLErrors = true; | ||
$wgDebugDumpSql = true; | $wgDebugDumpSql = true; | ||
$wgShowDBErrorBacktrace = true; | $wgShowDBErrorBacktrace = true; | ||
}} | </nowiki>}} | ||
Just add daemonized = true to the Job Queue config. | Just add daemonized = true to the Job Queue config. | ||
<pre><nowiki> | |||
$wgJobTypeConf['default'] = [ | $wgJobTypeConf['default'] = [ | ||
'class' => 'JobQueueRedis', | 'class' => 'JobQueueRedis', | ||
Line 44: | Line 44: | ||
]; | ]; | ||
</nowiki> | </nowiki></pre> | ||
https://www.mediawiki.org/wiki/Topic:Ss9ues5n7gtctppm | https://www.mediawiki.org/wiki/Topic:Ss9ues5n7gtctppm |
Latest revision as of 03:11, 26 July 2017
Cargo is an alternative to Semantic MediaWiki which relies more strongly on infoboxes pushed to the side of an article, rather than being the primary page.
Installation[edit]
Cargo[edit]
mediawikiwiki:Extension:Cargo/Download_and_installation
Make sure to create a separate database and user for Cargo (but can use the same instance), which can help isolate bugs in cargo from affecting the integrity or security of the entire MediaWiki database.
Page Forms[edit]
Page Forms are used to make it easy for editors to add semantic data, and perhaps even automatic infoboxes. This is a crucial component of any semantic database system.
mediawikiwiki:Extension:Page_Forms/Download_and_installation
Usage[edit]
MediaWiki/Editing/Advanced#Cargo (Semantic_Infoboxes)
Troubleshooting[edit]
Exception from line 92 of /var/www/mediawiki/includes/jobqueue/JobQueueRedis.php: Non-daemonized mode is no longer supported. Please install the mediawiki/services/jobrunner service and update $wgJobTypeConf as needed.
If you encounter a job queue version with Cargo (enable all the below in LocalSettings.php
)
$wgShowExceptionDetails = true;
$wgShowSQLErrors = true;
$wgDebugDumpSql = true;
$wgShowDBErrorBacktrace = true;
Just add daemonized = true to the Job Queue config.
$wgJobTypeConf['default'] = [ 'class' => 'JobQueueRedis', 'redisServer' => "127.0.0.1", 'redisConfig' => [ 'connectTimeout' => 1 ], 'daemonized' => true ];