Mediawiki/Cargo: Difference between revisions

From Bibliotheca Anonoma
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 17: Line 17:
== Usage ==
== Usage ==


[[MediaWiki/Editing#Cargo (Semantic_Infoboxes)]]
[[MediaWiki/Editing/Advanced#Cargo (Semantic_Infoboxes)]]
 
== Troubleshooting ==
 
{{bc|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 {{ic|LocalSettings.php}})
 
{{bc|<nowiki>
$wgShowExceptionDetails = true;
$wgShowSQLErrors = true;
$wgDebugDumpSql  = true;
$wgShowDBErrorBacktrace = true;
</nowiki>}}
 
Just add daemonized = true to the Job Queue config.
 
<pre><nowiki>
$wgJobTypeConf['default'] = [
        'class'      => 'JobQueueRedis',
        'redisServer' => "127.0.0.1",
        'redisConfig' => [
                'connectTimeout' => 1
        ],
        'daemonized' => true
 
];
</nowiki></pre>
 
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

];

https://www.mediawiki.org/wiki/Topic:Ss9ues5n7gtctppm