Hello, I am having an issue importing forms. We've applied the fix below but when importing we get "You already have this form in your forms list". The form does not appear in my list so perhaps forms are public when created?
Help appreciated.
Stephen
Subject: Re: Importing forms
From: Nuala Davis <[log in to unmask]>
Reply-To: WebPA <[log in to unmask]>
Date: Mon, 9 Feb 2015 14:21:15 +0000
Hi Mikey
I recall we had something similar and were very grateful to René Haentjens <[log in to unmask]> who offered a code fix for this in an email on 14/8/13 - here's a snip
=======
I made the following changes in the tutors/forms/import scripts, and it all seems to work now, René.
index.php:
<form name="frmXml" enctype="multipart/form-data" action="xml_file.php"
method="POST"> <!-- // RH, was "../../../tmp/xml_file.php" -->
import.php:
'form_xml' => $xml //RH, was ''
xml_file.php (in 3 places):
require_once("../../../includes/inc_global.php"); // RH, was "../includes/..." (3 lines changed) $isValid = Validate($localfile, 'schema.xsd'); // RH, was '../tutors/forms/import/schema.xsd'
'form_xml' => $xml // RH, was ''
======
We had this with 2.0.0.9 & 10 and Rene with 2.0.0.11 - Rene's tweak sorted it on our install.
Cheers, Nuala
>-----Original Message-----
>From: WebPA [mailto:[log in to unmask]] On Behalf Of Mikey West
>Sent: 09 February 2015 14:01
>To: [log in to unmask]
>Subject: Importing forms
>
>I'm having a problem importing forms. (an XML file)
>
>I get the following error ...
>
>The requested URL /webpa/tmp/xml_file.php was not found on this server.
>
>The cut and paste option doesn't work either.
>
>(Note: I now have two corrupt forms I cannot delete.)
>
>Any help would be much appreciated.
>
>With best wishes
>
>Mikey
|