Page MenuHomePhabricator

Call to undefined method RequestAccountPage::getPageTitle
Closed, InvalidPublic

Description

This is what I get when trying to access "Special:ConfirmAccount"

[b575eddc] /Spezial:Benutzerkonto_beantragen

Exception from line 376 of /.../includes/SpecialPage.php: Call to undefined method RequestAccountPage::getPageTitle

Backtrace:
#0 /.../extensions/ConfirmAccount/frontend/specialpages/actions/RequestAccount_body.php(111): SpecialPage->__call(string, array)
#1 /.../extensions/ConfirmAccount/frontend/specialpages/actions/RequestAccount_body.php(111): RequestAccountPage->getPageTitle()
#2 /.../extensions/ConfirmAccount/frontend/specialpages/actions/RequestAccount_body.php(84): RequestAccountPage->showForm()
#3 /.../includes/SpecialPage.php(631): RequestAccountPage->execute(NULL)
#4 /.../includes/SpecialPageFactory.php(488): SpecialPage->run(NULL)
#5 /.../includes/Wiki.php(298): SpecialPageFactory::executePath(Title, RequestContext)
#6 /.../includes/Wiki.php(602): MediaWiki->performRequest()
#7 /.../includes/Wiki.php(467): MediaWiki->main()
#8 /.../index.php(49): MediaWiki->run()
#9 {main}

The wiki is now on MW 1.22.5, with PHP 5.3.27 and MySQL 5.5.36.

This worked on MW 1.20.2.


Version: REL1_22-branch
Severity: major

Details

Reference
bz63548

Event Timeline

bzimport raised the priority of this task from to High.Nov 22 2014, 3:15 AM
bzimport set Reference to bz63548.
bzimport added a subscriber: Unknown Object (MLST).

Wondering if this is similar to bug 62062...

I have to admit that this is actually an invalid bug. If you use REL1_22 as one should one will not be confronted with this problem since the breaking change was authored afterwards.

It would have perhaps been nice to do a backwards compatibility thing like it was done in the meantime for other extensions e.g. [1] [2] but it was definitely not obligatory.

[1] https://www.mediawiki.org/wiki/Thread:Extension_talk:UserMerge/Call_to_undefined_method_UserMerge::getPageTitle
[2] https://www.mediawiki.org/wiki/Thread:Extension_talk:InviteSignup/Call_to_undefined_method_SpecialInviteSignup::getPageTitle

richter_marc wrote:

Sorry for replying to an already "solved" issue after a month after closing, but I do have the same issue and do not understand the solution:

I do not use Git with MediaWiki, but instead rely on the official packages. I have installed version 1.22.6 of mediawiki from the official releases site (http://releases.wikimedia.org/mediawiki/1.22/mediawiki-1.22.6.tar.gz). After extracting this, I ran the update.php maintenance script and updated the 3rd party extensions also to the latest version.
I still end up with the error described. As far as I understand, it should only affect those who choose the wrong / defective Git branch? Since I'm running from Tarball, I guess that "solution" doesn't help me, is it?

My error is like the following:

[3c92bd23] /whfwiki/Spezial:Benutzerkonto_beantragen Exception from line 376 of /var/www/www.bardor.de/htdocs/mediawiki/includes/SpecialPage.php: Call to undefined method RequestAccountPage::getPageTitle

Backtrace:

#0 /var/www/www.bardor.de/htdocs/mediawiki/extensions/ConfirmAccount/frontend/specialpages/actions/RequestAccount_body.php(111): SpecialPage->__call(string, array)
#1 /var/www/www.bardor.de/htdocs/mediawiki/extensions/ConfirmAccount/frontend/specialpages/actions/RequestAccount_body.php(111): RequestAccountPage->getPageTitle()
#2 /var/www/www.bardor.de/htdocs/mediawiki/extensions/ConfirmAccount/frontend/specialpages/actions/RequestAccount_body.php(84): RequestAccountPage->showForm()
#3 /var/www/www.bardor.de/htdocs/mediawiki/includes/SpecialPage.php(631): RequestAccountPage->execute(NULL)
#4 /var/www/www.bardor.de/htdocs/mediawiki/includes/SpecialPageFactory.php(488): SpecialPage->run(NULL)
#5 /var/www/www.bardor.de/htdocs/mediawiki/includes/Wiki.php(298): SpecialPageFactory::executePath(Title, RequestContext)
#6 /var/www/www.bardor.de/htdocs/mediawiki/includes/Wiki.php(602): MediaWiki->performRequest()
#7 /var/www/www.bardor.de/htdocs/mediawiki/includes/Wiki.php(467): MediaWiki->main()
#8 /var/www/www.bardor.de/htdocs/mediawiki/index.php(49): MediaWiki->run()
#9 {main}

The URL to see this is http://www.bardor.de/whfwiki/Spezial:Benutzerkonto_beantragen .

I have only 4 third-party extensions enabled:

https://www.mediawiki.org/wiki/Extension:ConfirmAccount
https://www.mediawiki.org/wiki/Extension:Cite/Cite.php
https://www.mediawiki.org/wiki/Extension:WikiEditor
https://www.mediawiki.org/wiki/Extension:Piwik_Integration

All are the latest versions available.

I'd be very happy for help on this.

Probably you downloaded the incorrect version of the ConfirmAccount extension as I did. Since this breaking change you really have to make sure that you are using compatible code. This version [1] should work for you.

[1] https://git.wikimedia.org/zip/?r=mediawiki/extensions/ConfirmAccount&h=74fabfc4a00443f06ba4d7a658d346501c0bfe78&format=zip

richter_marc wrote:

Aaaah, OK, now I got it: The extension ConfirmAccount is meant, not MediaWiki itself! Sorry, I missread the related docs as if there is a specific branch of MediaWiki to select!
Now everything is clear, thank you for clarifying!

trout.jd wrote:

Hello,

Sorry to continue a discussion that seems to be resolved, but I am still running into the same issue that Marc wrote about. I am running mediawiki 1.22.5 with the latest version of ConfirmAccount (commit 8371f282499d2f715a56ed18b6a9fa0b0e8e3e8b).

I also tried version 74fabfc4a00443f06ba4d7a658d346501c0bfe78 as recommend in this thread, but they both result in the error:

[849e2c29] /mediawiki/Special:RequestAccount Exception from line 376 of /opt/bitnami/apps/mediawiki/htdocs/includes/SpecialPage.php: Call to undefined method RequestAccountPage::getPageTitle

trout.jd wrote:

(In reply to JD Trout from comment #6)

Hello,

Sorry to continue a discussion that seems to be resolved, but I am still
running into the same issue that Marc wrote about. I am running mediawiki
1.22.5 with the latest version of ConfirmAccount (commit
8371f282499d2f715a56ed18b6a9fa0b0e8e3e8b).

I also tried version 74fabfc4a00443f06ba4d7a658d346501c0bfe78 as recommend
in this thread, but they both result in the error:

[849e2c29] /mediawiki/Special:RequestAccount Exception from line 376 of
/opt/bitnami/apps/mediawiki/htdocs/includes/SpecialPage.php: Call to
undefined method RequestAccountPage::getPageTitle

Never mind, I realized what I was doing wrong. I was pulling master, but I should have been looking for the branch that associated with my version of mediawiki. For me it was git clone -b REL1_22 https://gerrit.wikimedia.org/r/p/mediawiki/extensions/ConfirmAccount.git

Sorry about that.