Last modified: 2014-05-21 23:59:39 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 T65548, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 63548 - Call to undefined method RequestAccountPage::getPageTitle
Call to undefined method RequestAccountPage::getPageTitle
Status: RESOLVED INVALID
Product: MediaWiki extensions
Classification: Unclassified
ConfirmAccount (Other open bugs)
REL1_22-branch
All All
: High major with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-04-04 20:28 UTC by [[kgh]]
Modified: 2014-05-21 23:59 UTC (History)
4 users (show)

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


Attachments

Description [[kgh]] 2014-04-04 20:28:30 UTC
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.
Comment 1 Andre Klapper 2014-04-07 10:07:07 UTC
Wondering if this is similar to bug 62062...
Comment 2 [[kgh]] 2014-04-12 16:12:54 UTC
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
Comment 3 Marc Richter 2014-05-10 14:04:44 UTC
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.
Comment 4 [[kgh]] 2014-05-10 14:14:49 UTC
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
Comment 5 Marc Richter 2014-05-10 14:18:10 UTC
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!
Comment 6 JD Trout 2014-05-21 21:31:01 UTC
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
Comment 7 JD Trout 2014-05-21 23:59:39 UTC
(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.

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


Navigation
Links