Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resource Loader: Unexpected general module #1977

Closed
kghbln opened this issue Nov 4, 2016 · 13 comments
Closed

Resource Loader: Unexpected general module #1977

kghbln opened this issue Nov 4, 2016 · 13 comments
Labels
bug Occurrence of an unintended or unanticipated behaviour that causes a vulnerability or fatal error code quality
Milestone

Comments

@kghbln
Copy link
Member

kghbln commented Nov 4, 2016

Setup and configuration

  • Semantic MediaWiki 2.5.0-alpha (c4cfb88) 08:03, 3. Nov. 2016
  • MediaWiki 1.28.0-rc.0 (7625c75) 15:14, 3. Nov. 2016
  • PHP 5.6.27-0+deb8u1 (apache2handler)
  • MariaDB 10.0.28-MariaDB-1~jessie

Issue

The resourceloader log is throwing the following issues in masses:

2016-11-04 12:54:19 phalaris 0210020150926-02100_: Unexpected general module "ext.smw.style" in styles queue.
2016-11-04 12:54:19 phalaris 0210020150926-02100_: Unexpected general module "ext.smw.tooltip.styles" in styles queue.
2016-11-04 12:54:19 phalaris 0210020150926-02100_: Unexpected general module "ext.semanticbreadcrumblinks" in styles queue.
2016-11-04 12:54:19 phalaris 0210020150926-02100_: Unexpected general module "ext.smw.style" in styles queue.
2016-11-04 12:54:19 phalaris 0210020150926-02100_: Unexpected general module "ext.smw.tooltip.styles" in styles queue.

This issue is present for quite some time so not restricted to the version combination mentioned above.

@kghbln kghbln added the bug Occurrence of an unintended or unanticipated behaviour that causes a vulnerability or fatal error label Nov 4, 2016
@mwjames
Copy link
Contributor

mwjames commented Nov 5, 2016

MediaWiki 1.28.0-rc.0

See https://phabricator.wikimedia.org/T142438.

Your module is seen as a general module instead of a style module because it has dependencies, which have never been supported on style modules. Things probably work fine for you because it either doesn't really depend on it, or because you're already loading that module.
Removing the dependencies property should fix the warning.

I have no immediate plans on fixing this but given the "... Removing the dependencies property ..." maybe only listed sources require a touch up:

@kghbln
Copy link
Member Author

kghbln commented Nov 5, 2016

Thanks to your insight on this. So it seems to be more of an code quality issue. Does not look utmost important to fix right now but good to keep in mind.

@mwjames
Copy link
Contributor

mwjames commented Nov 19, 2016

Does not look utmost important to fix right now but good to keep in mind.

Fixed with #2018 and came with the weekly tidy train.

@mwjames mwjames closed this as completed Nov 19, 2016
@kghbln
Copy link
Member Author

kghbln commented Nov 19, 2016

Cool, not just my logs will much like this!

@kghbln
Copy link
Member Author

kghbln commented Nov 26, 2016

@mwjames I do not like to tell but the resourceloder log continues to issue these errors galore.

@mwjames
Copy link
Contributor

mwjames commented Nov 26, 2016

resourceloder log continues to issue these errors galore.

... with the same messages I guess.

@mwjames
Copy link
Contributor

mwjames commented Nov 26, 2016

2016-11-04 12:54:19 phalaris 0210020150926-02100_: Unexpected general module "ext.semanticbreadcrumblinks" in styles queue

This one isn't fixed.

Unexpected general module "ext.smw.style" in styles queue.
2016-11-04 12:54:19 phalaris 0210020150926-02100_: Unexpected general module "ext.smw.tooltip.styles" in styles queue.

Those two still appear?

@kghbln
Copy link
Member Author

kghbln commented Nov 26, 2016

This one isn't fixed.

This should be an issue at SBL. Will open to move it out of this issue.

Those two still appear?
Affirmative "Unexpected general module "ext.smw.tooltip.styles" in styles queue." is still out in the wild.

@mwjames
Copy link
Contributor

mwjames commented Nov 26, 2016

Affirmative "Unexpected general module "ext.smw.tooltip.styles" in styles queue." is still out in the wild.

Let's see whether 7f351b7 fixes it or not.

@kghbln
Copy link
Member Author

kghbln commented Nov 26, 2016

SBL now reported SemanticMediaWiki/SemanticBreadcrumbLinks#21

@kghbln
Copy link
Member Author

kghbln commented Nov 26, 2016

Let's see whether 7f351b7 fixes it or not.

It does. No more unexpected general modules!

@kghbln kghbln closed this as completed Nov 26, 2016
@mwjames
Copy link
Contributor

mwjames commented Nov 27, 2016

Let's see whether 7f351b7 fixes it or not.

I saw some out of place CSS, hopefully ee70e49 fixes it.

image

@kghbln
Copy link
Member Author

kghbln commented Nov 28, 2016

I saw some out of place CSS, hopefully ee70e49 fixes it.

Just looked around and tested some info bubbles. It appears to have done the job!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Occurrence of an unintended or unanticipated behaviour that causes a vulnerability or fatal error code quality
Projects
None yet
Development

No branches or pull requests

2 participants