Last modified: 2010-05-15 15:38:31 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 T5551, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 3551 - $wgWhitelistRead causes "syntax error on line 1" under IE6
$wgWhitelistRead causes "syntax error on line 1" under IE6
Status: RESOLVED INVALID
Product: MediaWiki
Classification: Unclassified
General/Unknown (Other open bugs)
1.5.x
PC Windows XP
: Normal normal with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
:
: 4733 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2005-09-26 13:18 UTC by Cristiano Leoni
Modified: 2010-05-15 15:38 UTC (History)
1 user (show)

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


Attachments

Description Cristiano Leoni 2005-09-26 13:18:59 UTC
Tested on both Linux and Windows2000, ver. 1.4.9, 1.4.10, language=english, italian. 
Same result:

as soon as you use the setting:

$wgWhitelistRead = array ("Main Page");

whetever you put into the above array it just generates an error when you access the 
wiki's main page.
The error is obvious in IE6 (but does not occur in Firefox). A small window pops up: 

-----------
Runtime Error 

Line: 1 
Error: Syntax Error
-----------

after saving the page on disk and opening it, the error still occurs. 

An inspection of the page revealed that this error lays into a series of 
uncomprehensible set of SRCed, external Javascript code.


If I can give an advice: perform auth checks on server side and drop all those 
Javascript includes or make them work on IE.
Comment 1 Rob Church 2005-09-26 14:49:38 UTC
Those sorts of checks are done server-side; as far as I know, we only rely upon
JS for very minor things like interface tweaks per-browser. Crucial stuff like
protecting pages from viewing is done before the page gets to the browser.

You could try this, just to put my mind at ease:

    $wgWhitelistRead = array("Main Page");

I'm not 100%, but I believe the space makes the difference.
Comment 2 Brion Vibber 2005-09-26 19:29:21 UTC
Include "-" in the whitelist.
Comment 3 Shawn Goodin 2005-12-13 21:22:02 UTC
(In reply to comment #2)
> Include "-" in the whitelist.

What do you mean by include "-" that looks like a hyphen is that an underscore???  Do you mean "Main_Page"

I tried that below but I still get the same error...

$wgWhitelistRead=array("Main_Page","Special:Userlogin","MediaWiki:Monobook.js","MediaWiki:Monobook.css");
Comment 4 Shawn Goodin 2005-12-13 21:33:51 UTC
I am also getting this on version 1.5.3

$wgWhitelistRead=array("Main Page","Special:Userlogin","MediaWiki:Monobook.js","MediaWiki:Monobook.css");
$wgGroupPermissions['*']['createaccount'] = false;
$wgGroupPermissions['*']['read'] = false;
$wgGroupPermissions['*']['edit'] = false;

This is my permissions settings let me know if there is a way to fix this????
Comment 5 Brion Vibber 2005-12-15 19:41:56 UTC
"-" means "-". Have you tried it?
Comment 6 Shawn Goodin 2005-12-15 19:55:24 UTC
$wgWhitelistRead=array("-","Main Page","Special:Userlogin","MediaWiki:Monobook.js","MediaWiki:Monobook.css");

Adding "-" into the array works!
Comment 7 Brion Vibber 2006-01-23 06:24:04 UTC
*** Bug 4733 has been marked as a duplicate of this bug. ***

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


Navigation
Links