RazeSoldier / mwExtUpgrader

A tool for batch upgrade MediaWiki extensions
GNU General Public License v3.0
23 stars 3 forks source link

Too many values supplied for parameter "edbexts". The limit is 50. #9

Closed CXuesong closed 5 years ago

CXuesong commented 5 years ago

I tried to use the master branch to upgrade the extensions. However, there seems to be error downloading them. I got this MW API response upgrading the extensions:

{
    "error": {
        "code": "too-many-edbexts",
        "info": "Too many values supplied for parameter \"edbexts\". The limit is 50.",
        "docref": "See https://www.mediawiki.org/w/api.php for API usage. Subscribe to the mediawiki-api-announce mailing list at <https://lists.wikimedia.org/mailman/listinfo/mediawiki-api-announce> for notice of API deprecations and breaking changes."
    },
    "warnings": {
        "extdistbranches": {
            "warnings": "Unrecognized value for parameter \"edbskins\": ."
        }
    },
    "servedby": "mw1234"
}

The request is sent here https://github.com/RazeSoldier/mwExtUpgrader/blob/5269b2d589d81695a040be6d76f47b00dca259ee/includes/ExtensionRepo.php#L72-L74

I'm using this script on MediaWiki 1.34.0-wmf20.

RazeSoldier commented 5 years ago

Thank you for discovering this bug. I want to ask a few questions:

  1. How many extensions and skins does your wiki have?
  2. How many are downloaded from mediawiki.org?
RazeSoldier commented 5 years ago

As a temporary solution, I recommend that you use a tool that is also written by me.

CXuesong commented 5 years ago
  1. How many extensions and skins does your wiki have?

~200 I suppose 🌚

  1. How many are downloaded from mediawiki.org?

I'm not pretty sure, but I'm sure the number is way less than 50. I used the official .tar.gz MediaWiki package in the beginning and it may already contain some extensions. Later I used .zip files downloaded from GitHub image repo to upgrade the core.

CXuesong commented 5 years ago

Thanks for your kit! I will try it out.

Actually I'm writing yet another updater with C# just now and the progress is ~50% I suppose πŸ˜‚

RazeSoldier commented 5 years ago

To use this kit, you have to use Composer to install the dependencies of this kit. If you don't know how to do it, please tell me, I can post a pre-release with the dependencies.

CXuesong commented 5 years ago

Tried out your script but got stuck 🌚

RazeSoldier/MWUpdateKit#1

Anyway, there is no rush on this. I'm only running this on a home-made Wikibase site…

CXuesong commented 5 years ago

MWUpdateKit works! Thanks a lot πŸ˜€

Except that it will fail on the extensions that exists but does not have specified version, such as JADE without mw 1.33.0.

And though it seems that there are a lot of extension folders in my installation, most of them are empty inside, including JADE. Actually I have never go to that folder and check inside, nor have I enabled it. Perhaps I need to clean them up.

3D                       CollaborationKit       FileExporter                  JsonConfig                      PageTriage            SecurePoll                 UserMerge
AbuseFilter              Collection             FileImporter                  Kartographer                    PageViewInfo          Sentry                     VipsScaler
ActiveAbstract           CommonsMetadata        FlaggedRevs                   LabeledSectionTransclusion      PagedTiffHandler      ShortUrl                   VisualEditor
AdvancedSearch           ConfirmAccount         Flow                          LabeledSectionTransclusion.old  ParserFunctions       SiteMatrix                 WikiEditor
AntiSpoof                ConfirmEdit            FundraiserLandingPage         LandingCheck                    ParserMigration       SkinPerPage                WikiLove
ApiFeatureUsage          CongressLookup         FundraisingTranslateWorkflow  LdapAuthentication              ParsoidBatchAPI       SpamBlacklist              Wikibase
ArticleCreationWorkflow  ContactPage            GWToolset                     Linter                          PdfHandler            SubPageList3               WikibaseCirrusSearch
ArticlePlaceholder       ContentTranslation     Gadgets                       LiquidThreads                   PerformanceInspector  SubpageSortkey             WikibaseLexeme
Babel                    ContributionTracking   GeoCrumbs                     Listings                        Petition              SyntaxHighlight_GeSHi      WikibaseLexemeCirrusSearch
BetaFeatures             CreditsSource          GeoData                       LocalisationUpdate              Poem                  TemplateData               WikibaseMediaInfo
BounceHandler            Dashiki                GettingStarted                LoginNotify                     PoolCounter           TemplateSandbox            WikibaseQualityConstraints
Calendar                 DataTypes              GlobalBlocking                MachineVision.inv               Popups                TemplateStyles             Wikidata
Campaigns                DisableAccount         GlobalCssJs                   MapSources                      ProofreadPage         TemplateWizard             Wikidata.org
Capiunto                 Disambiguator          GlobalPreferences             MassMessage                     PropertySuggester     TextExtracts               WikidataPageBanner
CategoryTree             DismissableSiteNotice  GlobalUsage                   Math                            QuickSurveys          Thanks                     WikimediaBadges
CentralAuth              DonationInterface      GlobalUserPage                MobileApp                       Quiz                  TheWikipediaLibrary        WikimediaEditorTasks
CentralNotice            DoubleWiki             GoogleNewsSitemap             MobileFrontend                  README                TimedMediaHandler          WikimediaEvents
CharInsert               DynamicSidebar         Graph                         MultimediaViewer                RSS                   TitleBlacklist             WikimediaIncubator
CheckUser                EUCopyrightCampaign    GrowthExperiments             MwEmbedSupport                  ReadingLists          TocTree                    WikimediaMaintenance
CirrusSearch             Echo                   GuidedTour                    NavigationTiming                RelatedArticles       TorBlock                   WikimediaMessages
Cite                     EducationProgram       HeadScript                    NewUserMessage                  RelatedSites          Translate                  XAnalytics
CiteThisPage             Elastica               ImageMap                      Newsletter                      Renameuser            TranslationNotifications   ZeroBanner
Citoid                   ElectronPdfService     InputBox                      Nuke                            ReplaceText           TrustedXFF                 ZeroPortal
Cldr                     EntitySchema.inv       Insider                       OATHAuth                        RevisionSlider        TwoColConflict             cldr
CleanChanges             EventBus               Interwiki                     OAuth                           SandboxLink           UnicodeConverter           intersection
CodeEditor               EventLogging           InterwikiSorting              ORES                            Score                 UniversalLanguageSelector  timeline
CodeMirror               ExtensionDistributor   JADE                          OpenStackManager                Scribunto             UploadWizard               wikihiero
CodeReview               ExternalGuidance       Jade                          PageAssessments                 SearchExtraNS         UploadsLink
Cognate                  FeaturedFeeds          Josa                          PageImages                      SecureLinkFixer       UrlShortener