Extension talk:EditWarning/0.4

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
 * 
 * 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)

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