We've Moved! Please visit our new and improved forum over at our new portal: https://portal.plumvoice.com/hc/en-us/community/topics

Calling php script.

Questions and answers about IVR programming for Plum DEV

Moderators: admin, support

Post Reply
jbrohan
Posts: 19
Joined: Mon Nov 19, 2007 10:17 am
Location: Montreal Canada
Contact:

Calling php script.

Post by jbrohan »

Hello
I', having some difficulty callling a php script. The calling code seems to go OK, but it fails with a bad fetch in the called php script.

<filled>
You entered <value expr="idx"/>.
Get ready, you are going on a trip!
<submit next="xmlgetp.php"
method = "get"
namelist = "idx"/>
</filled>

xmlgetp.php text...
<?xml version="1.0"?>
<vxml version="2.1">
<var name="full_name" expr="bananas"/>
<form id="test_form">
<block>
Hello <value expr="full_name"/>, nice to meet you!
</block>
</form>
</vxml>

the error is
DocumentParser::FetchDocument - Parse error in file "xmlgetp.php", line 1, column 4 - Unknown element 'br'
errno: 205 uri xmlgetp.php
...there is no "br" this comes from some hidden parser I think?
The calling seems very delicate, for example the method = "GET" causes a problem right away, it seems it has to be lower case.

I'm inclined to think that I'm approaching this from a wrong direction, but I'm planning to have many small routines to return items mostly from a MySQL database through php.

Thank you for your help.
John
John Brohan National Instruments LabVIEW expert in Montreal
Traders Micro "We connect all sorts of things to computers"
telemedicine applications
www.woundfollowup.com

support
Posts: 3632
Joined: Mon Jun 02, 2003 3:47 pm
Location: Boston, MA
Contact:

IVR issue stems from parse error in file

Post by support »

Hi,

This kind of IVR error means that there is a parse error in the file. If you check the IVR call log and click on "Click here to view saved VoiceXML script", you can see the contents of the file that's returned by your web browser.

See here for more information: http://www.plumvoice.com/docs/dev/plumd ... mon_Errors

If you're still encountering this IVR issue, you could provide us with the php script and IVR call log so that we can help you further debug the IVR issue.

Regards,
Plum Support

Post Reply