Talk:Meza/Extension Installation Community Cheat-Sheet

About this board

Revansx (talkcontribs)

To install:

https://www.mediawiki.org/wiki/Extension:SimpleCalendar

Add this to MezaLocalExtensions.yml:

  - name: SimpleCalendar
    repo: https://github.com/wikimedia/mediawiki-extensions-SimpleCalendar.git
    version: "{{ mediawiki_default_branch }}"
    legacy_load: true

and then run this:

sudo meza deploy <env> --tags mediawiki --skip-tags mediawiki-core,verify-wiki

where <env> is usually "monolith"

Reply to "SimpleCalendar"
Revansx (talkcontribs)
https://www.mediawiki.org/wiki/Extension:Flow

First install Flow with:

  - name: Flow
    repo: https://gerrit.wikimedia.org/r/mediawiki/extensions/Flow.git
    version: "{{ mediawiki_default_branch }}"
    composer_merge: True

Then run the "populateContentModel.php" maintenance script as instructed

Then update it to:

  - name: Flow
    repo: https://gerrit.wikimedia.org/r/mediawiki/extensions/Flow.git
    version: "{{ mediawiki_default_branch }}"
    composer_merge: True
    config: |
      $wgNamespaceContentModels[NS_TALK] = 'flow-board';
      $wgNamespaceContentModels[NS_USER_TALK] = 'flow-board';
Revansx (talkcontribs)

2019-06-06 verified on Meza 31.8

Reply to "Flow"
Revansx (talkcontribs)
Revansx (talkcontribs)

2019-06-06 verified on Meza 31.8

Reply to "WhosOnline"
Revansx (talkcontribs)
https://www.mediawiki.org/wiki/Extension:UserMerge
  # Allows sysops to merge user A to user B and delete User A
  - name: UserMerge
    repo: https://github.com/wikimedia/mediawiki-extensions-UserMerge.git
    version: "{{ mediawiki_default_branch }}"
    config: |
      $wgGroupPermissions['bureaucrat']['usermerge'] = true;

Revansx (talkcontribs)

verified on MEZA 31.8 and 31.9

Reply to "UserMerge"
Revansx (talkcontribs)
Revansx (talkcontribs)

verified on MEZA 31.8

Reply to "SemanticActions"
Revansx (talkcontribs)
Revansx (talkcontribs)

verified on MEZA 31.8

Reply to "PageImporter"
Revansx (talkcontribs)
https://www.mediawiki.org/wiki/Extension:Lingo
  - name: Lingo
    composer: "mediawiki/lingo"
    version: "~3.0"
    config: |
      // installed by composer, we have to manually load it
      wfLoadExtension( "Lingo" );
      // avoid funkiness in MobileFrontend
      $wgMFRemovableClasses = [ 'base' => [ '.mw-lingo-tooltip' ] ];
Revansx (talkcontribs)

2019-06-07 verified on Meza 31.8

Reply to "Lingo"

VEforAll (Not Working yet)

2
Revansx (talkcontribs)
https://www.mediawiki.org/wiki/Extension:VEForAll
  # Allows for visual editor to be used in form pages
  - name: VEForAll
    repo: https://github.com/wikimedia/mediawiki-extensions-VEForAll.git
    version: "{{ mediawiki_default_branch }}"
    git_submodules: True
    composer_merge: True
    config: |
      wfLoadExtension( 'VEForAll' );
Revansx (talkcontribs)

I'm having trouble getting VEforALl to deploy. Using the following code in MezaLocalExtensions.yml

- name: VEForAll
    repo: https://github.com/wikimedia/mediawiki-extensions-VEForAll.git
    version: "{{ mediawiki_default_branch }}"
    git_submodules: True
    composer_merge: True
    config: |
      wfLoadExtension( 'VEForAll' );

produces the following error in my deploy:

TASK [mediawiki : Verify metastore index upgraded] ******************************************************************************************************************************************
Friday 07 June 2019  09:04:08 -0400 (0:00:00.509)       0:01:54.997 ***********
fatal: [localhost]: FAILED! => {
    "changed": true,
    "cmd": "WIKI=demo php /opt/htdocs/mediawiki/extensions/CirrusSearch/maintenance/metastore.php --upgrade",
    "delta": "0:00:00.231206",
    "end": "2019-06-07 09:04:08.624410",
    "rc": 255,
    "start": "2019-06-07 09:04:08.393204"
}

STDOUT:


Fatal error: Uncaught Exception: /opt/htdocs/mediawiki/extensions/VEForAll/extension.json does not exist! in /opt/htdocs/mediawiki/includes/registration/ExtensionRegistry.php:107
Stack trace:
#0 /opt/htdocs/mediawiki/includes/GlobalFunctions.php(50): ExtensionRegistry->queue('/opt/htdocs/med...')
#1 /opt/.deploy-meza/Extensions.php(300): wfLoadExtension('VEForAll')
#2 /opt/htdocs/mediawiki/LocalSettings.php(647): require_once('/opt/.deploy-me...')
#3 /opt/htdocs/mediawiki/includes/Setup.php(94): require_once('/opt/htdocs/med...')
#4 /opt/htdocs/mediawiki/maintenance/doMaintenance.php(81): require_once('/opt/htdocs/med...')
#5 /opt/htdocs/mediawiki/extensions/CirrusSearch/maintenance/metastore.php(166): require_once('/opt/htdocs/med...')
#6 {main}
  thrown in /opt/htdocs/mediawiki/includes/registration/ExtensionRegistry.php on line 107


MSG:

non-zero return code

Does anyone know why VEforAll is not getting extension.json from the repo?

Reply to "VEforAll (Not Working yet)"
Revansx (talkcontribs)
https://www.mediawiki.org/wiki/Extension:Cargo
  - name: Cargo
    repo: https://gerrit.wikimedia.org/r/p/mediawiki/extensions/Cargo
    # FIXME: Commit allowing Cargo to work with $wgDBservers, which meza uses.
    #        When a Cargo version is tagged after this point, switch to that.
    version: ab7a941d6fb5d41d1d19898366e90671e3f5858d
    config: |
      $smwgEnabledCompatibilityMode = true;
      $wgCargoDefaultQueryLimit = 5000;
      $wgCargoPageDataColumns[] = 'fullText';
      $wgCargoPageDataColumns[] = 'categories';
Reply to "Cargo"
Revansx (talkcontribs)
Reply to "MyVariables"
Return to "Meza/Extension Installation Community Cheat-Sheet" page.