Last modified: 2010-05-15 15:33:25 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T4878, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 2878 - Syntax error message displayed in IE when anonymous on site
Syntax error message displayed in IE when anonymous on site
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
General/Unknown (Other open bugs)
1.4.x
PC Mac System 9.x
: Normal normal with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2005-07-16 06:52 UTC by Seb
Modified: 2010-05-15 15:33 UTC (History)
0 users

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments
Error message in IE (107.73 KB, image/gif)
2005-07-16 07:55 UTC, Seb
Details

Description Seb 2005-07-16 06:52:34 UTC
Hi,

I get a syntax error message from Internet Explorer 6 (XP SP2) on each page until I am logged as a 
valid user. The wiki is configured not to allow anonymous browsing.

Error
=========================================================

Line: 2
Char: 1
Error: Syntax Error
Code: 0
Url: <page Url>
=========================================================

Top of the HTML source:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 
Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr">
Comment 1 Brion Vibber 2005-07-16 06:58:46 UTC
Have you ensured that the whitelist includes the style sheet and javascript pages that are used?
Comment 2 Seb 2005-07-16 07:10:43 UTC
(In reply to comment #1)
> Have you ensured that the whitelist includes the style sheet and javascript pages that are used?

Not sure to understand, sorry.

I have in the LocalSettings.php file:

#Entirely disable Anonymous Edits
$wgWhitelistEdit = true;

# Pages anonymous (not-logged-in) users may see
$wgWhitelistRead = array ("Main Page", "Special:Userlogin", "Wikipedia:Help");

Comment 3 Seb 2005-07-16 07:55:17 UTC
Created attachment 719 [details]
Error message in IE
Comment 4 Andreas Bleul 2005-08-10 12:44:54 UTC
Hi,

I have the same problem, but with IE6 running under Win2k SP4. 

Andi
Comment 5 Andreas Bleul 2005-08-10 13:12:09 UTC
Sorry, I've forgot to say, that this problem not occurs, when I'm using Opera
Comment 6 Andreas Bleul 2005-09-08 10:58:58 UTC
I think, the problem lies in User.php::isAllowed.

This line within the definition of the array $groupRights causes the problem:

'read'          => empty( $wgWhitelistRead ) ? '*' : 'user',

This means, that, when an user is not logged in and no $wgWhitelistRead exists, 
the right will be set to * and everthing is fine.

But when the List is not empty, the right is set to 'user'. So, only logged in 
users can see the page; in this case the login page...

Just change the line to:

'read'          =>  '*' 

The Whitelist will be evaluated in Title.php::userCanRead()

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links