Topic on Project:Support desk

Problem with vector skin not working

12
Fustbariclation (talkcontribs)

I'm tying to get my upgraded system to work. Everything is working, apart from the main vector stylesheet - I just get the pages as if it is on the print screen. Any suggestions as to what I've got wrong would be gratefully received!

In Firefox, I get these errors;

The stylesheet http://takingserviceforward.org/wiki/load.php?debug=false&lang=en&modules=mediawiki.legacy.commonPrint%2Cshared%7Cmediawiki.sectionAnchor%7Cmediawiki.skinning.interface%7Cskins.vector.styles&only=styles&skin=vector was not loaded because its MIME type, "text/html", is not "text/css".

The stylesheet http://takingserviceforward.org/wiki/load.php?debug=false&lang=en&modules=ext.smw.style%7Cext.smw.tooltip.styles&only=styles&skin=vector was not loaded because its MIME type, "text/html", is not "text/css".

load.php:2:0

SyntaxError: expected expression, got '<'

In Safari they are:

SyntaxError: Unexpected token '<'

(anonymous function)

Did not parse stylesheet at 'http://takingserviceforward.org/wiki/load.php?debug=false&lang=en&modules=mediawiki.helplink%2CsectionAnchor%7Cmediawiki.legacy.commonPrint%2Cshared%7Cmediawiki.skinning.interface%7Cskins.vector.styles&only=styles&skin=vector' because non CSS MIME types are not allowed in strict mode.

My versions are:

Version

Jump to: navigation, search

MediaWiki License

Installed software

Entry point URLs

Installed skins

Installed extensions

Installed libraries

Parser extension tags

, , , , , , , , , , , , , , , , , , , , , , , , , , , and

Parser function hooks

anchorencode, arraydefine, arraydiff, arrayindex, arrayintersect, arraymap, arraymaptemplate, arraymerge, arrayprint, arrayreset, arraysearch, arraysearcharray, arraysize, arrayslice, arraysort, arrayunion, arrayunique, ask, autoedit, basepagename, basepagenamee, bidi, calendarenddate, calendarstartdate, canonicalurl, canonicalurle, cascadingsources, clear_external_data, compound_query, concept, coordinates, count, counter, declare, default_form, defaultsort, display_external_table, display_line, display_map, display_point, display_points, displaytitle, distance, drilldowninfo, drilldownlink, explode, expr, external_value, filepath, finddestination, for_external_table, formatdate, formatnum, forminput, formlink, formredlink, fullpagename, fullpagenamee, fullurl, fullurle, gender, geocode, geodistance, get_db_data, get_file_data, get_ldap_data, get_soap_data, get_web_data, grammar, if, ifanon, ifblocked, ifeq, iferror, ifexist, ifexpr, ifingroup, ifsysop, info, int, interlanguagelink, interlanguagelist, language, lc, lcfirst, len, localurl, localurle, mapsdoc, meetingminutesform, meetingminutestemplate, namespace, namespacee, namespacenumber, ns, nse, numberingroup, numberofactiveusers, numberofadmins, numberofarticles, numberofedits, numberoffiles, numberofpages, numberofusers, padleft, padright, pageid, pagename, pagenamee, pagesincategory, pagesize, plural, pos, protectionlevel, queryformlink, rel2abs, replace, revisionday, revisionday2, revisionid, revisionmonth, revisionmonth1, revisiontimestamp, revisionuser, revisionyear, rootpagename, rootpagenamee, rpos, set, set_internal, set_internal_recurring_event, set_recurring_event, show, signupfields, smwdoc, special, speciale, splist, store_external_table, sub, subjectpagename, subjectpagenamee, subjectspace, subjectspacee, subobject, subpagecount, subpagelist, subpagename, subpagenamee, subpages, switch, switchtablink, synopsize, tag, talkpagename, talkpagenamee, talkspace, talkspacee, time, timel,

titleparts, uc, ucfirst, urldecode, urlencode and widget

~~~~

88.130.80.101 (talkcontribs)

Obviously, you have to make sure that the output from load.php comes with the right MIME type, which is "text/css"!

Fustbariclation (talkcontribs)

Yes, thank you, but I'd worked that out.

What I don't understand is how to do that, and why it is giving the wrong MIME type.

Do you know?

Ciencia Al Poder (talkcontribs)
Fustbariclation (talkcontribs)

Thank you! I think that's the problem. It's because I used composer without the --no-dev option.

I'll fix that and see what happens.

Actually, I woke up this morning thinking that might be worth trying - so thank you for the encouragement.

Fustbariclation (talkcontribs)

Well, I'm afraid that I've still got the problem with no skin showing. I think I've cleaned up my versions.

Are these looking better?

Entry point URLs

Installed skins

Installed extensions

Installed libraries

Parser extension tags

, , , , , , , , , , , , , , , , , , , , , , , , , , ,  and 

Parser function hooks

anchorencode, arraydefine, arraydiff, arrayindex, arrayintersect, arraymap, arraymaptemplate, arraymerge, arrayprint, arrayreset, arraysearch, arraysearcharray, arraysize, arrayslice, arraysort, arrayunion, arrayunique, ask, autoedit, basepagename, basepagenamee, calendarenddate, calendarstartdate, canonicalurl, canonicalurle, cascadingsources, clear_external_data, compound_query, concept, coordinates, count, counter, declare, default_form, defaultsort, display_external_table, display_line, display_map, display_point, display_points, displaytitle, distance, drilldowninfo, drilldownlink, explode, expr, external_value, filepath, finddestination, for_external_table, formatdate, formatnum, forminput, formlink, formredlink, fullpagename, fullpagenamee, fullurl, fullurle, gender, geocode, geodistance, get_db_data, get_file_data, get_ldap_data, get_soap_data, get_web_data, grammar, if, ifanon, ifblocked, ifeq, iferror, ifexist, ifexpr, ifingroup, ifsysop, imageurl, info, int, interlanguagelink, interlanguagelist, language, layout, lc, lcfirst, len, localurl, localurle, mapsdoc, meetingminutesform, meetingminutestemplate, movetoskin, namespace, namespacee, namespacenumber, ns, nse, numberingroup, numberofactiveusers, numberofadmins, numberofarticles, numberofedits, numberoffiles, numberofpages, numberofusers, padleft, padright, pageid, pagename, pagenamee, pagesincategory, pagesize, plural, pos, protectionlevel, queryformlink, rel2abs, replace, revisionday, revisionday2, revisionid, revisionmonth, revisionmonth1, revisiontimestamp, revisionuser, revisionyear, rootpagename, rootpagenamee, rpos, set, set_internal, set_internal_recurring_event, set_recurring_event, setskin, show, signupfields, skinsert, smwdoc, special, speciale, splist, store_external_table, sub, subjectpagename, subjectpagenamee, subjectspace, subjectspacee, subobject, subpagecount, subpagelist, subpagename, subpagenamee, subpages, switch, switchtablink, synopsize, tag, talkpagename, talkpagenamee, talkspace, talkspacee, time, timel, titleparts, uc, ucfirst, urldecode, urlencode and widget

Florianschmidtwelzow (talkcontribs)

First of all: You still use the master branch of the Vector skin. You should use a stable release for all extensions, skins and MediaWiki itself, too. Second thing: Please run composer update or use the mediawiki/core/vendor git repository to get the correct version of all dependencies. In your case, I assume, that you already has the installed dependencies of the master branch, which are incompatible with the stable release, which results in the following error for the style modules (that's why you have no skin):

exception 'Less_Exception_Parser' with message 'File `mediawiki.mixins` not found. in buttons.less' in /home/servi145/public_html/wiki/vendor/less.php/less.php/lib/Less/Parser.php:2581 Stack trace: #0 /home/servi145/public_html/wiki/vendor/less.php/less.php/lib/Less/Parser.php(309): Less_Parser->Error('File `mediawiki...') #1 /home/servi145/public_html/wiki/vendor/less.php/less.php/lib/Less/Tree/Import.php(265): Less_Parser->parseFile('mediawiki.mixin...', 'mediawiki.mixin...', true) #2 /home/servi145/public_html/wiki/vendor/less.php/less.php/lib/Less/Tree/Import.php(193): Less_Tree_Import->ParseImport('mediawiki.mixin...', 'mediawiki.mixin...', Object(Less_Environment)) #3 /home/servi145/public_html/wiki/vendor/less.php/less.php/lib/Less/Tree/Ruleset.php(248): Less_Tree_Import->compile(Object(Less_Environment)) #4 /home/servi145/public_html/wiki/vendor/less.php/less.php/lib/Less/Tree/Ruleset.php(235): Less_Tree_Ruleset->evalImports(Object(Less_Environment)) #5 /home/servi145/public_html/wiki/vendor/less.php/less.php/lib/Less/Tree/Ruleset.php(70): Less_Tree_Ruleset->PrepareRuleset(Object(Less_Environment)) #6 /home/servi145/public_html/wiki/vendor/less.php/less.php/lib/Less/Parser.php(186): Less_Tree_Ruleset->compile(Object(Less_Environment)) #7 /home/servi145/public_html/wiki/vendor/less.php/less.php/lessc.inc.php(131): Less_Parser->getCss() #8 /home/servi145/public_html/wiki/includes/resourceloader/ResourceLoaderFileModule.php(970): lessc->compileFile('/home/servi145/...') #9 /home/servi145/public_html/wiki/includes/resourceloader/ResourceLoaderFileModule.php(916): ResourceLoaderFileModule->compileLessFile('/home/servi145/...', Object(lessc)) #10 /home/servi145/public_html/wiki/includes/resourceloader/ResourceLoaderFileModule.php(886): ResourceLoaderFileModule->readStyleFile('resources/src/m...', false, Object(ResourceLoaderContext)) #11 /home/servi145/public_html/wiki/includes/resourceloader/ResourceLoaderFileModule.php(419): ResourceLoaderFileModule->readStyleFiles(Array, false, Object(ResourceLoaderContext)) #12 /home/servi145/public_html/wiki/includes/resourceloader/ResourceLoader.php(952): ResourceLoaderFileModule->getStyles(Object(ResourceLoaderContext)) #13 /home/servi145/public_html/wiki/includes/resourceloader/ResourceLoader.php(642): ResourceLoader->makeModuleResponse(Object(ResourceLoaderContext), Array, Array) #14 /home/servi145/public_html/wiki/load.php(42): ResourceLoader->respond(Object(ResourceLoaderContext)) #15 {main} */ /* exception 'Less_Exception_Parser' with message 'File `mediawiki.mixins` not found. in screen.less' in /home/servi145/public_html/wiki/vendor/less.php/less.php/lib/Less/Parser.php:2581 Stack trace: #0 /home/servi145/public_html/wiki/vendor/less.php/less.php/lib/Less/Parser.php(309): Less_Parser->Error('File `mediawiki...') #1 /home/servi145/public_html/wiki/vendor/less.php/less.php/lib/Less/Tree/Import.php(265): Less_Parser->parseFile('mediawiki.mixin...', 'mediawiki.mixin...', true) #2 /home/servi145/public_html/wiki/vendor/less.php/less.php/lib/Less/Tree/Import.php(193): Less_Tree_Import->ParseImport('mediawiki.mixin...', 'mediawiki.mixin...', Object(Less_Environment)) #3 /home/servi145/public_html/wiki/vendor/less.php/less.php/lib/Less/Tree/Ruleset.php(248): Less_Tree_Import->compile(Object(Less_Environment)) #4 /home/servi145/public_html/wiki/vendor/less.php/less.php/lib/Less/Tree/Import.php(269): Less_Tree_Ruleset->evalImports(Object(Less_Environment)) #5 /home/servi145/public_html/wiki/vendor/less.php/less.php/lib/Less/Tree/Import.php(193): Less_Tree_Import->ParseImport('/home/servi145/...', 'components', Object(Less_Environment)) #6 /home/servi145/public_html/wiki/vendor/less.php/less.php/lib/Less/Tree/Ruleset.php(248): Less_Tree_Import->compile(Object(Less_Environment)) #7 /home/servi145/public_html/wiki/vendor/less.php/less.php/lib/Less/Tree/Ruleset.php(235): Less_Tree_Ruleset->evalImports(Object(Less_Environment)) #8 /home/servi145/public_html/wiki/vendor/less.php/less.php/lib/Less/Tree/Ruleset.php(70): Less_Tree_Ruleset->PrepareRuleset(Object(Less_Environment)) #9 /home/servi145/public_html/wiki/vendor/less.php/less.php/lib/Less/Parser.php(186): Less_Tree_Ruleset->compile(Object(Less_Environment)) #10 /home/servi145/public_html/wiki/vendor/less.php/less.php/lessc.inc.php(131): Less_Parser->getCss() #11 /home/servi145/public_html/wiki/includes/resourceloader/ResourceLoaderFileModule.php(970): lessc->compileFile('/home/servi145/...') #12 /home/servi145/public_html/wiki/includes/resourceloader/ResourceLoaderFileModule.php(916): ResourceLoaderFileModule->compileLessFile('/home/servi145/...', Object(lessc)) #13 /home/servi145/public_html/wiki/includes/resourceloader/ResourceLoaderFileModule.php(886): ResourceLoaderFileModule->readStyleFile('screen.less', false, Object(ResourceLoaderContext)) #14 /home/servi145/public_html/wiki/includes/resourceloader/ResourceLoaderFileModule.php(419): ResourceLoaderFileModule->readStyleFiles(Array, false, Object(ResourceLoaderContext)) #15 /home/servi145/public_html/wiki/includes/resourceloader/ResourceLoader.php(952): ResourceLoaderFileModule->getStyles(Object(ResourceLoaderContext)) #16 /home/servi145/public_html/wiki/includes/resourceloader/ResourceLoader.php(642): ResourceLoader->makeModuleResponse(Object(ResourceLoaderContext), Array, Array) #17 /home/servi145/public_html/wiki/load.php(42): ResourceLoader->respond(Object(ResourceLoaderContext)) #18 {main} */

(source)

Fustbariclation (talkcontribs)

Thank you very much! That's extremely helpful.

I see exactly what I've done wrong. On the vector page, I missed the composer entry and used the git download instead. I've corrected that.

It would be nice if there was a sample composer.json file with all the extensions at the proper release - then it would be just a matter of removing the unwanted ones, and idiots like me wouldn't make this sort of silly mistake.

Florianschmidtwelzow (talkcontribs)

If you would use a release tarball, you wouldn't have such problems ;) And MediaWiki and any other extension, that needs composer dependencies, has a composer.json included :) So I don't know, what you mean :)

This post was hidden by Ciencia Al Poder (history)
Fustbariclation (talkcontribs)

Sorry, this is related, but slightly different. I'll put in a separate question if necessary.

There seems to be no version for vector. Composer gives me:

- Installation request for mediawiki/vector-skin * -> satisfiable by mediawiki/vector-skin[1.x-dev, dev-master]

So, to load the vector skin, I need to set:

"minimum-stability": "dev",           "prefer-stable": true,

Which is why, I think, I ended up putting the stability to 'dev'. Even if I set minimum stability to 'alpha', it won't install vector.

Florianschmidtwelzow (talkcontribs)

Please note, that composer isn't one of the really supported installation ways. You should use the Installation guide on the skin/extension page (||Skin:Vector#Installation|see Vector]]) to install the skin/extension. Other ways may work, but maybe needs some more knowledge about the installation method and how it's used in the MediaWiki universum :)

Reply to "Problem with vector skin not working"