Jump to content

Extension talk:PostEdit

Add topic
From mediawiki.org
Latest comment: 6 years ago by 87.91.51.235 in topic Where is the CSS?


PHP Fatal error: Call to a member function getRequest() on a non-object

[edit]

I have a requirement where this extension fits well, but I am not able to get it working. I am getting following Warining and error:


PHP Warning: Missing argument 2 for PostEditHooks::onMakeGlobalVariablesScript()...in PostEdit.hooks.php

PHP Fatal error: Call to a member function getRequest() on a non-object...in PostEdit.hooks.php


Seems the $out parameter passed to onMakeGlobalVariablesScript function donot hold any object to call the getRequest() function. I am using MW 1.18.2 Please advise on how I can resolve this, link to new bug free version or suggest any alternate hook that I can refer. Many Thanks!

Shrinivas Gangal 121.241.69.194 08:28, 15 February 2013 (UTC)Reply

You could try replacing the function with this one (untested, but should work):
public static function onMakeGlobalVariablesScript( &$vars ) {
	global $wgCookiePath, $wgRequest;
	if ( $wgRequest->getCookie( 'showPostEdit' ) ) {
		$vars[ 'wgCookiePath' ] = $wgCookiePath;
	}
	return true;
}
Ori.livneh (talk) 10:54, 15 February 2013 (UTC)Reply

(data analysis) points to a non-existing page

[edit]

So at least there is no data. Rillke (talk) 18:54, 12 July 2013 (UTC)Reply

Sorry, forgot to preface it with the Research namespace. Fixed now, and correct link is m:Research:Post-edit feedback/PEF-1 Steven Walling (WMF) • talk 19:17, 15 July 2013 (UTC)Reply
Thank you. Rillke (talk) 11:01, 16 July 2013 (UTC)Reply

Where is the CSS?

[edit]

Where is the CSS related to this extension, for the MediaWiki:Common.css ? 87.91.51.235 (talk) 02:45, 1 December 2019 (UTC)Reply