Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SpecialPage::SpecialPage #1

Open
wants to merge 17 commits into
base: master
from

Conversation

Projects
None yet
2 participants
@Zidjinn
Copy link

commented Jun 13, 2014

It's not possible to call Specialpage anymore because of this error. I found a solution here: https://www.mail-archive.com/wikibugs-l@lists.wikimedia.org/msg53602.html. In the file AccessControlPanel.body.php I replaced the lines

   function AccessControlPanel() {
           SpecialPage::SpecialPage( 'AccessControlPanel', 'protect' );
   }

by

   function AccessControlPanel() {
           parent::__construct( 'AccessControlPanel', 'protect' );
   }

as suggested and now it works again. There should be a version control to choose the old behaviour in old mediawikis and change to the new in Mediawiki 1.23

Mediawiki 1.23
It's not possible to call Specialpage anymore because of this error. I found a solution here: https://www.mail-archive.com/wikibugs-l@lists.wikimedia.org/msg53602.html. In the file AccessControlPanel.body.php I replaced the lines

       function AccessControlPanel() {
               SpecialPage::SpecialPage( 'AccessControlPanel', 'protect' );
       }

by

       function AccessControlPanel() {
               parent::__construct( 'AccessControlPanel', 'protect' );
       }

as suggested and now it works again. There should be a version control to choose the old behaviour in old mediawikis and change to the new in Mediawiki 1.23
@Zidjinn

This comment has been minimized.

Copy link
Author

commented Jun 13, 2014

parent::__construct( 'AccessControlPanel', 'protect' ); works fine, but now :

if create a New group :
Warning: Missing argument 3 for DatabaseBase::selectRow(), called in /home/DB/www/extensions/UMEduWiki/AccessControlPanel/AccessControlPanel.body.php on line 146

if assign User in this New group :
Warning: Invalid argument supplied for foreach() in /home/DB/www/extensions/UMEduWiki/AccessControlPanel/AccessControlPanel.body.php on line 487

@Zidjinn

This comment has been minimized.

Copy link
Author

commented Jun 13, 2014

For me, previous (old) pages, created by Access control panel Groups disapears.

WikiName.org/wiki/ProtectedGroupName:PageName

become
WikiName.org/wiki/:PageName

if I create a page with this content : #REDIRECT[[ProtectedGroupName:PageName]], the page is visible. (And already protected)..

@raverunner

This comment has been minimized.

Copy link

commented Nov 21, 2017

function AccessControlPanel() {
SpecialPage::SpecialPage( 'AccessControlPanel', 'protect' );
}

Didn't work for me in MW 1.29. change
SpecialPage::SpecialPage( 'AccessControlPanel', 'protect' );
to
parent::__construct( 'AccessControlPanel', 'protect' );
Now work good, but if choose group and press Show Members see this error:
[d6fe3e009cf216a328ca13e6] /index.php?title=Special:AccessControlPanel&action=remove&value=ask Error from line 267 of /var/www/html/mediawiki/extensions/UMEduWiki/AccessControlPanel/AccessControlPanel.body.php: Call to undefined method User::getSkin()

Backtrace:

#0 /var/www/html/mediawiki/extensions/UMEduWiki/AccessControlPanel/AccessControlPanel.body.php(526): AccessControlPanel->listGroupMembers(array)
#1 /var/www/html/mediawiki/includes/specialpage/SpecialPage.php(522): AccessControlPanel->execute(NULL)
#2 /var/www/html/mediawiki/includes/specialpage/SpecialPageFactory.php(578): SpecialPage->run(NULL)
#3 /var/www/html/mediawiki/includes/MediaWiki.php(287): SpecialPageFactory::executePath(Title, RequestContext)
#4 /var/www/html/mediawiki/includes/MediaWiki.php(862): MediaWiki->performRequest()
#5 /var/www/html/mediawiki/includes/MediaWiki.php(523): MediaWiki->main()
#6 /var/www/html/mediawiki/index.php(43): MediaWiki->run()
#7 {main}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.