Extension talk:PostEdit
This page used the LiquidThreads extension to give structured discussions. It has since been converted to wikitext, so the content and history here are only an approximation of what was actually displayed at the time these comments were made. |
PHP Fatal error: Call to a member function getRequest() on a non-object
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)
- You could try replacing the function with this one (untested, but should work):
- Ori.livneh (talk) 10:54, 15 February 2013 (UTC)
public static function onMakeGlobalVariablesScript( &$vars ) { global $wgCookiePath, $wgRequest; if ( $wgRequest->getCookie( 'showPostEdit' ) ) { $vars[ 'wgCookiePath' ] = $wgCookiePath; } return true; }
(data analysis) points to a non-existing page
So at least there is no data. Rillke (talk) 18:54, 12 July 2013 (UTC)
- 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)
Where is the CSS?
Where is the CSS related to this extension, for the MediaWiki:Common.css ? 87.91.51.235 (talk) 02:45, 1 December 2019 (UTC)