Extension talk:EditWarning/0.4

From MediaWiki.org
Jump to: navigation, search

[edit] Path to message file

Been using this on a wiki within my company but we keep seeing 404 errors in the httpd logs.

always referring to

/Extensions/EditWarning/style.css

my platform is linux so path is case sensitive..

my extensions folder is all lower case... yet in the http log it has capital E

I have grepped all the EditWarning php scripts and extension is always lower case in functional statements..

Appreciate if you can help me resolve this

Many thanks Rob

Hi Rob,
you could try this to find the error:
  • Open the wiki in your browser
  • Open the page source
  • Search for the line referencing the style.css file
  • Copy the url of the href-Attribute and try to open it with your browser
greetings, --Nemphis 21:17, 26 March 2010 (UTC)
Yeah tried that. It looks fine
<link href="extensions/EditWarning/style.css" rel="stylesheet" type="text/css" />
Tried appending the href to the wiki root and the style.css opens fine with the code editor I have associated with .css
I just can't work out where this capitalisation is happening !!!
Any more ideas ???
Robski 13:15, 31 March 2010 (GMT)
Change in "EditWarning.class.php" the line:
require_once $IP . "/extensions/EditWarning/Messages.i18n.php";
to
require_once dirname( __FILE__ ) . "/Messages.i18n.php";
Kind regards, --Jostar 13:21, 20 September 2011 (UTC)


[edit] Bug: Broken with PHP 5.3

See: https://bugs.php.net/bug.php?id=49241

Gives: Hook fnEditWarning_edit has invalid call signature; Parameter 1 to fnEditWarning_edit() expected to be a reference, value given

With: PHP 5.3.3 MW 17


Looks like this error has been addressed: "Hi, you can download a fixed version at http://blog.code-geek.de/archives/7-EditWarning-Release-0.4-RC1.html. Sorry for the inconvenience. --Nemphis 21:44, 26 September 2011 (UTC)"

I confirmed the new release works on mw 1.17.0 --Ucananduwill 13:13, 27 September 2011 (UTC)

Personal tools
Namespaces

Variants
Actions
Navigation
Support
Download
Development
Communication
Print/export
Toolbox