https://bugzilla.wikimedia.org/show_bug.cgi?id=49870
Web browser: ---
Bug ID: 49870
Summary: Fatal memory allocation error when using the parameter
$article of the hook ArticlePageDataAfter on servers
with little memory
Product: MediaWiki
Version: 1.22-git
Hardware: Other
OS: Linux
Status: UNCONFIRMED
Severity: minor
Priority: Unprioritized
Component: General/Unknown
Assignee: [email protected]
Reporter: [email protected]
Classification: Unclassified
Mobile Platform: ---
In LocalSettings, without any extensions, put this:
$wgHooks[ 'ArticlePageDataAfter' ][] = 'onArticlePageDataAfter';
function onArticlePageDataAfter( $article, $row ) {
// get_class($article) => 'WikiPage'
$text = $article->getRawText();
echo $text;
die();
}
This fails with "Fatal error: Allowed memory size of 134217728 bytes exhausted
(tried to allocate 523800 bytes) in [...]"
Granted, that's only 128 MB of RAM which is below the minimum hardware
requirements.
I think the reason might be that at this point the WikiPage object may not be
fully initialized. In later hooks the method works fine.
--
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l