Jump to content

Topic on Project:Support desk

Template Styles Fatal Error

11
FXWorks (talkcontribs)

My search-fu can't seem to find a solution.

I'm trying to upgrade my Mediawiki installation from 1.39.3 to 1.42.3. Probably shouldn't matter but I'm using the official container.

I've run the installer/upgrader and the database was updated and whatnot.

I've upgraded all the skins and templates to the appropriate versions for 1.42 but I can't seem to get around an issue with TemplateStyles.

I get a fatal error:

https://fxide.io/TemplateStyles_mediawiki_error.txt

Disabling the extension makes the site work correctly but with the <templatestyles blah blah> stuff inline as expected.

I thought it might be related to jumping too many versions?

Or is it something else?

I'm testing the upgrade on a VM so it's not a big deal to tear it all down and add an intermediate upgrade step but if I can I'd like to avoid that (time constrained).

Docs say LTS to LTS is ok or did I misread?

Did I miss a "new and exciting" configuration step?

Missing something obvious?

Anyone have any insights?


Thanks a bunch!

Samwilson (talkcontribs)

@FXWorks: Are you sure you've got the right extension versions? It looks like it might not be using the 1.42 compatible version of TemplateStyles.

Bawolff (talkcontribs)

You are the second person to report something like this, so it might be an issue in the extension.

Bawolff (talkcontribs)
Bawolff (talkcontribs)

As a work around, you can use composer to change the wikimedia/scoped-callback package in TemplateStyles extension to version 4.0.0 (Using a command like composer require wikimedia/scoped-callback:4.0.0 run inside the extension/TemplateStyles directory).

Hopefully a new version of the extension will be issued soon.

Fabioski01 (talkcontribs)

fix worked. Thanks!

FXWorks (talkcontribs)

Just to double confirm - the work around worked for me also.

Now to debate whether or not to apply this to my production site or wait for an update/fix to the template.

FXWorks (talkcontribs)

Thanks for the attention to this @Samwilson and @Bawolff

I did use the download version picker widget linked from the official web page for the template. The filename is

TemplateStyles-REL1_42-1a2e46c.tar.gz

Short on cycles at the moment, may try the composer work around later.


Thank you!

Fabioski01 (talkcontribs)

Having the same exact problem. I get extensionDependencyError: TemplateStyles is not compatible with the current MediaWiki core (version 1.42.3), it requires: >= 1.43.\n in

even if I downloaded the 1.42 stable.

Bawolff (talkcontribs)

@Fabioski01: - that is a different problem and likely unrelated. Are you sure you downloaded the right version? What is the filenane of your download.

Fabioski01 (talkcontribs)

TemplateStyles-REL1_42-1a2e46c

Reply to "Template Styles Fatal Error"