Last modified: 2014-01-03 16:14:07 UTC
If $wgGroupPermissions['*']['read'] is set to 'false', then the call to /wiki/index.php?title=-&action=raw&smaxage=0&gen=js&useskin=myskin outputs not a javascript file, nor nothing, but the quite normal HTML page with the message about not being logged in. IE7 says this is not valid JS, and it does have a point there. This problem probably also exists for IE6 and IE8. On my local installation, since we have a project-specific default skin, I patched it like so: if($this->data['loggedin' ] == '') { $this->data['jsvarurl' ] = ''; } But a better solution would be setting jsvarurl to nothing if the user must log in to read before this point, or just outputting nothing for action=raw.
Hi Cynthia! Sorry that nobody has taken a look at this report yet and given feedback. Cynthia: If you have time, could you please update to a recent supported version (see http://www.mediawiki.org/wiki/Version_lifecycle ) and tell us if this problem still happens? If this still happens, please add a comment to this report and tell us your exact software version in case that you know (by updating the "Version" field of this bug report). If the problem does not happen anymore at all, please set the status of this report to RESOLVED > WORKSFORME. Thanks a lot for your help!
I get a syntax error in Firefox Error Console. Confirming.
MySkin is (now) removed from MediaWiki. Does this occurs in other skins?
Cynthia: Closing as WORKSFORME for the time being, but if this still occurs in other skins, please add a comment here and reopen. Thanks!