Last modified: 2014-06-01 17:29:11 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 T64568, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 62568 - APC: 1.23 not compatible with MediaWiki 1.23/1.22 branches
APC: 1.23 not compatible with MediaWiki 1.23/1.22 branches
Status: REOPENED
Product: MediaWiki extensions
Classification: Unclassified
APC (Other open bugs)
REL1_23-branch
All All
: Normal major (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-03-12 16:53 UTC by Brendan Heussler
Modified: 2014-06-01 17:29 UTC (History)
5 users (show)

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


Attachments

Description Brendan Heussler 2014-03-12 16:53:41 UTC
getPageTitle() does not exist

[8178f5e8] /matonto/index.php/Special:APC Exception from line 376 of /var/www/html/mediawiki-1.22.3/includes/SpecialPage.php: Call to undefined method SpecialAPC::getPageTitle

Backtrace:

#0 /var/www/html/mediawiki-1.22.3/extensions/APC/SpecialAPC.php(20): SpecialPage->__call(string, array)
#1 /var/www/html/mediawiki-1.22.3/extensions/APC/SpecialAPC.php(20): SpecialAPC->getPageTitle()
#2 /var/www/html/mediawiki-1.22.3/includes/SpecialPageFactory.php(337): SpecialAPC->__construct()
#3 /var/www/html/mediawiki-1.22.3/includes/SpecialPageFactory.php(441): SpecialPageFactory::getPage(string)
#4 /var/www/html/mediawiki-1.22.3/includes/Wiki.php(298): SpecialPageFactory::executePath(Title, RequestContext)
#5 /var/www/html/mediawiki-1.22.3/includes/Wiki.php(602): MediaWiki->performRequest()
#6 /var/www/html/mediawiki-1.22.3/includes/Wiki.php(467): MediaWiki->main()
#7 /var/www/html/mediawiki-1.22.3/index.php(49): MediaWiki->run()
#8 {main}
Comment 1 Lewis Cawte 2014-03-12 17:17:15 UTC
Can't reproduce using master of core and the extension (although I am getting A LOT of unrelated warnings and notices...), I'll look into it a bit further with a clone of 1.22.3.
Comment 2 Andre Klapper 2014-03-12 17:42:00 UTC
Thanks for taking the time to report this!

Is "this" APC part of the 1.22.3 tarball?
In that case I bet it's bug 62101.
Comment 3 Brendan Heussler 2014-03-12 17:47:47 UTC
No.  I got APC from cloning the source code repository listed on the Extension:APC wiki page

https://gerrit.wikimedia.org/r/p/mediawiki/extensions/APC.git
Comment 4 Brendan Heussler 2014-03-12 17:50:50 UTC
Whoops, I thought you were talking about the extension.  I am using APC (3.1.13).  I installed it using pecl
Comment 5 Krinkle 2014-03-12 18:08:16 UTC
(In reply to Brendan Heussler from comment #3)
> No.  I got APC from cloning the source code repository listed on the
> Extension:APC wiki page
> 
> https://gerrit.wikimedia.org/r/p/mediawiki/extensions/APC.git

In that case, the problem is mixing versions.

If you use latest master of an extension, you should use latest master of MediaWiki. Neither is recommended to use in a production environment, only for testing / development.

So assuming you're using v1.22.3, make sure download[1] the 1.22.x version of that extension, or alternatively, "git checkout REL1_22" in the extension directory you cloned from git.

The error you got is because of a change made in MediaWiki core to the SpecialPage interface (new in MediaWiki v1.23alpha, not yet released), and the APC extension made adjustments accordingly to remain compatible with the latest version of MediaWiki (https://gerrit.wikimedia.org/r/#/c/103901/).

Closing as it is not a bug in the software from what I can see.

[1] https://www.mediawiki.org/wiki/Special:ExtensionDistributor/APC
Comment 6 agaida 2014-05-13 22:01:17 UTC
REL1_23 of MediaWik and REL1_23 produces the same bug - so it should not be closed. Reverting  https://git.wikimedia.org/commit/mediawiki%2Fextensions%2FAPC/42ed5a5e85020ca9f617fa3e8f4c2b4f8e5e8a72 solve that for me (Second part)

        function __construct() {
                parent::__construct( 'APC' );
                $this->title = $this->getTitle();
        }
Work
        function __construct() {
                parent::__construct( 'APC' );
                $this->title = $this->getPageTitle();
        }
Work not.
Comment 7 Andre Klapper 2014-05-14 00:13:27 UTC
[Fixing bug summary and version field]
Comment 8 Laurence 'GreenReaper' Parry 2014-06-01 17:29:11 UTC
Confirmed for REL1_22 as well (the current release). Fixing the two lines mentioning getPageTitle to getTitle fixes the problem.

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


Navigation
Links