Author: lebo.beland
Description:
I have a problem when trying to create a page with a php script on a Wikimedia site (same problem on fr.wikipedia.org and fr.wikinews.org, didn't try on other Wikimedia site). I'm sending the variable $_POST['text'] to the server but when 'text' is a bit long, I got an error. The error that I recieve is :
Request: POST http://fr.wikipedia.org/w/api.php, from 207.134.216.200 via sq35.wikimedia.org (squid/2.7.STABLE6) to ()
Error: ERR_INVALID_REQ, errno [No Error] at Mon, 04 Jan 2010 03:01:56 GMT
For example :
If I put $text = "<center> {| border=\"1px\" width=\"75%\" class=\"wikitable\" align=\"center\" cellspacing=\"3px\" !colspan=12| Résultats du " . $date . " |- style=\"border:1px solid #889999; background-color:#F0F0F0;\" ! Équipe gagnante Équipe perdante Pointage final |}"; everything works fine.
But, if I put $text = "{{date|{{subst:#ifeq:{{subst:#time:j}}|1|1er|{{subst:#time:j}}}} {{subst:#time:F Y}}}} Le " . $date . ", " . $nbParties . " parties se déroulaient dans la [[w:Ligue de hockey junior majeur du Québec|Ligue de hockey junior majeur du Québec]] (LHJMQ). <br/> <br/> <center> {| border=\"1px\" width=\"75%\" class=\"wikitable\" align=\"center\" cellspacing=\"3px\" !colspan=12| Résultats du " . $date . " |- style=\"border:1px solid #889999; background-color:#F0F0F0;\" ! Équipe gagnante Équipe perdante Pointage final |}"; I got the error message.
Amqui
Version: unspecified
Severity: enhancement
OS: Windows XP
Platform: PC
URL: http://fr.wikinews.org