Last modified: 2010-05-15 15:33:25 UTC
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: Syntax Error
Url: <page Url>
Top of the HTML source:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr">
(In reply to comment #1)
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
I have the same problem, but with IE6 running under Win2k SP4.
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()