Topic on Extension talk:Lingo

Issue with Installing Lingo on MW 1.35.6

9
Summary by Elcapitan68

Resolved by installing from archive via ExtensionDistributor. Composer command to override the locked extension version is suggested as well.

88.133.166.172 (talkcontribs)

Hello,

I would like to install Lingo extension on Mediawiki 1.35.6; however, it seems that Lingo is not compatible anymore with the version I have. Currently I don't want to upgrade to MW 1.39. Is their any solution for that?


Mediawiki: 1.35.6

PHP: 7.4.33

MySQL: 8.0.33-0ubuntu0.20.04.1


Update:

Although it says on the repo https://github.com/wikimedia/mediawiki-extensions-Lingo that the extension requires MW 1.31 or later the extension still does not work in my case. After adding wfLoadExtension( 'Lingo' );

And then updating through php update.php /maintenance/, i get the error below: (Also the webpage turns to blank)

#0 /var/www/html/pmbd/includes/registration/ExtensionRegistry.php(258): ExtensionRegistry->re

#1 /var/www/html/pmbd/includes/Setup.php(161): ExtensionRegistry->loadFromQueue()

#2 /var/www/html/pmbd/maintenance/doMaintenance.php(91): require_once('/var/www/html/p...')

#3 /var/www/html/pmbd/maintenance/update.php(253): require_once('/var/www/html/p...')

#4 {main}


Thanks for the help :)

Elcapitan68 (talkcontribs)

Please, tell us what version of Lingo are you using. If you installed it from git, what is the branch you are on?

AIDInn - pmbd (talkcontribs)

Thank you for your reply.


I am installing Lingo through Composer through adding the following code.

{

"require": {

"mediawiki/lingo": "^3.0",

}

}


Since I am using "^" before the version number I guess then its grabbing any or latest version of Lingo.

Elcapitan68 (talkcontribs)

You are right, "^3.0" pulls the latest version, which is 1.39 compatible. For MediaWiki 1.35 please try "3.1.1":

{

"require": {

"mediawiki/lingo": "3.1.1",

}

}

AIDInn - pmbd (talkcontribs)

Thank you for your reply.

I have added the line you suggested in composer.local.json. Afterwards I use composer.phar to update using the command: sudo php composer.phar update –-no-dev –-prefer-source

and now i am getting a different error proposed by the composer as shown below:


Your requirements could not be resolved to an installable set of packages.

  Problem 1

   - The requested package mediawiki/lingo (locked at 3.2.0, required as 3.1.1) is satisfiable by mediawiki/lingo[3.2.0] but these conflict with your requirements or minimum-stability.


Ill be grateful if you can help me fix this issue, Thank you in advance.

Elcapitan68 (talkcontribs)

I think the correct way to overwrite the version locked in your root composer.json would be:

sudo php composer.phar update --no-dev --prefer-source mediawiki/lingo

AIDInn - pmbd (talkcontribs)

I think its working now, i just installed the tgz file that is related to REL135. I will test the extension and report back if everything is working normally. Thank you for your support. I will mark this issue as resolved once i test the extension

Elcapitan68 (talkcontribs)
AIDInn - pmbd (talkcontribs)

Sorry for the late reply, so far no issues. I will mark this issue as resolved. Thank you so much you for your support.