Extension talk:PostEdit/Flow

About this board

87.91.51.235 (talkcontribs)

Where is the CSS related to this extension, for the MediaWiki:Common.css ?

Reply to "Where is the CSS?"

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

2
121.241.69.194 (talkcontribs)

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

ATDT (talkcontribs)

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;
}

This post was posted by Ori Livneh, but signed as Ori.livneh.

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

(data analysis) points to a non-existing page

3
Rillke (talkcontribs)

So at least there is no data.

Reply to "(data analysis) points to a non-existing page"
There are no older topics
Return to "PostEdit/Flow" page.