Last modified: 2012-09-27 01:10:44 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 T27488, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 25488 - wgGroupPermissions setting causes Vector.php error
wgGroupPermissions setting causes Vector.php error
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Interface (Other open bugs)
1.16.x
All Linux
: Normal normal (vote)
: ---
Assigned To: Trevor Parscal
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-10-11 18:00 UTC by Svgalbertian
Modified: 2012-09-27 01:10 UTC (History)
6 users (show)

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


Attachments

Description Svgalbertian 2010-10-11 18:00:55 UTC
My LocalSettings.php are as follows:

$wgGroupPermissions['*']['read'] = false;
$wgDefaultSkin = 'vector';

When not logged in get the following error when clicking on 'Talk:Main Page'

Fatal error: Call to a member function isCurrent() on a non-object in /home/XXXXX/w/skins/Vector.php on line 143

Changing $wgDefaultSkin to standard, nostalgia, cologneblue, or monobook I do not get the error. When logged in I do not get the error.
Comment 1 Roan Kattouw 2010-10-11 18:11:02 UTC
Are you sure this is caused by your $wgGroupPermissions setting? If you comment out or remove the ['*']['read'] = false; line, does the error go away?

For other commenters' convenience, line 143 is:
if ( ( $isTalk && $wgArticle->isCurrent() ) || ( $wgOut->showNewSectionLink() ) ) {

So this seems to point to $wgArticle not being set right, which is strange.
Comment 2 Svgalbertian 2010-10-11 18:53:24 UTC
Commenting out '$wgGroupPermissions['*']['createaccount'] = false;' makes the error go away.

However that also allow anonymous edits. The expected behavior is that get the following message.

"Login required

You must log in to view other pages."

Using the other skins, I get that message. Using Vector, I get the fatal error.
Comment 3 Svgalbertian 2010-10-11 18:56:46 UTC
Just to be clear this issue only effects the talk page, not the 'Main Page' or 'Log in'.
Comment 4 Alexandre Emsenhuber [IAlex] 2010-11-07 11:13:27 UTC
Fixed in r76239. This doesn't occur in other skins because SkinTemplate.php line 733 checks for $wgArticle.

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


Navigation
Links