https://bugzilla.wikimedia.org/show_bug.cgi?id=22005

           Summary: Error while POST text to create a page
           Product: MediaWiki
           Version: unspecified
          Platform: PC
               URL: http://fr.wikinews.org
        OS/Version: Windows XP
            Status: NEW
          Severity: enhancement
          Priority: Normal
         Component: API
        AssignedTo: roan.katt...@gmail.com
        ReportedBy: lebo.bel...@gmail.com
                CC: bryan.tongm...@gmail.com, vasi...@gmail.com,
                    soxre...@gmail.com


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


-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to