|
From: brent t. s. <bre...@gm...> - 2012-08-01 04:28:15
|
On 07/31/12 17:07, Robert Munteanu wrote: > looks like i'm just missing the "project" key, right? > > >> Right, the project is mandatory. there's definitely something odd going on here. can i get some clarification on what sort of values that mantisconnect is *expecting* for mc_issue_add()? or maybe just an example block so i know i'm not going crazy here? here's what i'm running now (along with a copious amount of testing; you'll notice that the $ticket() array successfully initializes). script: http://pastebin.com/M6xWVc3X output: http://pastebin.com/xcyiRYxc AND here's the relevant bit from the logs. [Wed Aug 01 00:10:38 2012] [error] [client XX.XX.XX.XX] PHP Fatal error: Uncaught SoapFault exception: [Server] Error Type: SYSTEM NOTICE,\nError Description:\nUninitialized string offset: 0,\nStack Trace:\nmc_issue_api.php L518 mci_get_project_id(<string>'')\nUnknownFile L? mc_issue_add(<string>'anonymous', <string>'*SCRUBBED*', <Array> { ['project'] => '', ['category'] => '1', ['summary'] => 'this is a test bug', ['description'] => 'livesite testing', ['additional_information'] => '(submitted via feedback.html)' })\nnusoap.php L4087 call_user_func_array(<string>'mc_issue_add', <Array> { [0] => 'anonymous', [1] => '*SCRUBBED*', [2] => <Array> { ['project'] => '', ['category'] => '1', ['summary'] => 'this is a test bug', ['description'] => 'livesite testing', ['additional_information'] => '(submitted via feedback.html)' } })\nnusoap.php L3718 invoke_method()\nmantisconnect.php L1542 service(<string>'<?xml version="1.0" encoding="UTF-8"?>\n<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://futureware.biz/mantisconnect" xmlns:xsd="http://www.w3.or in /path/to/mantis/site-anon_report.php on line 45, referer: http://URI/path/to/mantis/feedback.html But it's more or less the exact same error message as the pastebin. Should I try upgrading Mantis from 1.2.8 to 1.2.11 (and, I'm assuming, mantisconnect as a result of that)? I don't recall seeing this sort of issue as being one of the issues fixed. I just for the life of me cannot figure out why it's stripping the 'project' key. Additionally, I'm also curious how I would integrate custom fields into ticket creation as well using this method, as it seems mc_issue_add() wasn't accepting the way I was referencing them. |