Last modified: 2010-05-15 15:33:25 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">
Have you ensured that the whitelist includes the style sheet and javascript pages that are used?
(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");
Created attachment 719 [details] Error message in IE
Hi, I have the same problem, but with IE6 running under Win2k SP4. Andi
Sorry, I've forgot to say, that this problem not occurs, when I'm using Opera
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()