Page MenuHomePhabricator

Styles are not loaded
Closed, ResolvedPublic

Description

Author: dasch

Description:
I updated from 1.5.2 to 1.5.3 and now styles are not loaded anymore/do not appear anywhere in the page
My MediaWiki Version is 1.17alpha (r76433)


Version: unspecified
Severity: major

Details

Reference
bz25944

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 11:22 PM
bzimport set Reference to bz25944.

dasch wrote:

And by the way... entering Userpages I get this error

Fatal error: Call to a member function isTemplate() on a non-object in /.../httpdocs/extensions/SemanticMediaWiki/includes/parserhooks/SMW_Declare.php on line 26

(In reply to comment #0)

I updated from 1.5.2 to 1.5.3 and now styles are not loaded anymore/do not
appear anywhere in the page
My MediaWiki Version is 1.17alpha (r76433)

Can you link to this, or reproduce it on a public wiki?

(In reply to comment #1)

And by the way... entering Userpages I get this error

Fatal error: Call to a member function isTemplate() on a non-object in
/.../httpdocs/extensions/SemanticMediaWiki/includes/parserhooks/SMW_Declare.php
on line 26

There is a known issue with #declare in 1.5.3, which has been fixed since the release. Using the latest svn version of SMW (which, as far as I know, is stable) should help you out.

dasch wrote:

Here you can see the error, the SMW-Box at the bottom of the page has no styles
http://www.wecowi.de

(In reply to comment #3)

Here you can see the error, the SMW-Box at the bottom of the page has no styles
http://www.wecowi.de

Ok, I see. It's not immediately clear to me what's going wrong when looking at the code. I'll try to reproduce this and fix it if needed before the next SMW release. Until then you can stick to MW 1.16 (where the styles should load correctly), which I'd recommend loose from this issue, as many extensions are not yet fully working with 1.17.

I just fixed the issue. You can get the working code from SVN trunk or wait for SMW 1.5.4 (no idea when it'll be released).