Extension talk:ValidUserEdit

From mediawiki.org

Mediawiki 1.17: Detected bug in an extension! Hook efValidUserEdit has invalid call signature; Parameter 1 to efValidUserEdit() expected to be a reference, value given


  1. 0 C:\xampp\htdocs\mediawiki\includes\EditPage.php(313): wfRunHooks('AlternateEdit', Array)
  2. 1 C:\xampp\htdocs\mediawiki\includes\EditPage.php(296): EditPage->edit()
  3. 2 C:\xampp\htdocs\mediawiki\includes\Wiki.php(522): EditPage->submit()
  4. 3 C:\xampp\htdocs\mediawiki\includes\Wiki.php(69): MediaWiki->performAction(Object(OutputPage), Object(Article), Object(Title), Object(User), Object(WebRequest))
  5. 4 C:\xampp\htdocs\mediawiki\index.php(114): MediaWiki->performRequestForTitle(Object(Title), Object(Article), Object(OutputPage), Object(User), Object(WebRequest))
  6. 5 {main}

Thank you for this extension, i hope you can fix the problem ;-)


This bug is caused by the declaration of the function efValidUserEdit. You have to delete the "&" in front of "$editpage" like that: function efValidUserEdit($editpage) {