ok add an or on the mimetype if<span style="font-size:11pt;font-family:"Calibri","sans-serif";color:rgb(31,73,125)"> for ‘application/octet-stream’<br><br>and try swapping the 3, for a 4<br></span><div class="gmail_extra">
<br><br><div class="gmail_quote">On Thu, Nov 22, 2012 at 11:59 AM, Fay Cross <span dir="ltr"><<a href="mailto:Fay.Cross@nottingham.ac.uk" target="_blank">Fay.Cross@nottingham.ac.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div link="blue" vlink="purple" lang="EN-GB"><div><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Ok, in Firefox it fails because the file type appears as ‘application/octet-stream’<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">In IE8 and Chrome it fails because of...<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif"">if(count(explode("/",$y))==3){<u></u><u></u></span></p>
<p class="MsoNormal" style="text-indent:36.0pt"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif"">die(IMPORT_ZIP_FOLDER_LEVEL . "****");<u></u><u></u></span></p><p class="MsoNormal">
<span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">$y is ‘wizards/en-GB/data.xwd’ and it doesn’t like this because it thinks that means ‘</span><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">The files in your zip folder need to be in the main folder, not within another folder in the zip.’</span><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal" style="margin-left:36.0pt"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"" lang="EN-US">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"" lang="EN-US"> <a href="mailto:xerte-dev-bounces@lists.nottingham.ac.uk" target="_blank">xerte-dev-bounces@lists.nottingham.ac.uk</a> [mailto:<a href="mailto:xerte-dev-bounces@lists.nottingham.ac.uk" target="_blank">xerte-dev-bounces@lists.nottingham.ac.uk</a>] <b>On Behalf Of </b>Pat Lockley<br>
<b>Sent:</b> 22 November 2012 11:15<br><b>To:</b> For Xerte technical developers<br><b>Subject:</b> [Xerte-dev] Re: Export problem<u></u><u></u></span></p></div><p class="MsoNormal" style="margin-left:36.0pt"><u></u> <u></u></p>
<p class="MsoNormal" style="margin-left:36.0pt">Stupid question response - firebug console (well the chrome console) should show all the text a web page returns, so a php echo should appear in firebug<br><br>*installs firebug*<br>
<br>Yep :)<br><br>If you look in the code - there is an echo of that error (might be in the language file now as a text string, so cross ref) you'll see what condition generates that error, and then work back through the logic.<u></u><u></u></p>
<div><p class="MsoNormal" style="margin-right:0cm;margin-bottom:12.0pt;margin-left:36.0pt"><u></u> <u></u></p><div><p class="MsoNormal" style="margin-left:36.0pt">On Thu, Nov 22, 2012 at 11:01 AM, Fay Cross <<a href="mailto:Fay.Cross@nottingham.ac.uk" target="_blank">Fay.Cross@nottingham.ac.uk</a>> wrote:<u></u><u></u></p>
<div><div><p class="MsoNormal" style="margin-left:36.0pt"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Stupid question alert – would php echos appear in the firebug console?</span><u></u><u></u></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span><u></u><u></u></p><p class="MsoNormal" style="margin-left:36.0pt">
<span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Incidentally, I just tried importing in IE instead and got a different error to the Firefox one – ‘The files in your zip folder need to be in the main folder, not within another folder in the zip.’ (they’re not in another folder)</span><u></u><u></u></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span><u></u><u></u></p><div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal" style="margin-left:72.0pt"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"" lang="EN-US">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"" lang="EN-US"> <a href="mailto:xerte-dev-bounces@lists.nottingham.ac.uk" target="_blank">xerte-dev-bounces@lists.nottingham.ac.uk</a> [mailto:<a href="mailto:xerte-dev-bounces@lists.nottingham.ac.uk" target="_blank">xerte-dev-bounces@lists.nottingham.ac.uk</a>] <b>On Behalf Of </b>Pat Lockley<br>
<b>Sent:</b> 22 November 2012 10:28<br><b>To:</b> For Xerte technical developers<br><b>Subject:</b> [Xerte-dev] Re: Export problem</span><u></u><u></u></p></div><div><div><p class="MsoNormal" style="margin-left:72.0pt"> <u></u><u></u></p>
<p class="MsoNormal" style="margin-left:72.0pt">the "you can only import zip files" is usually a mime type issue.<br><br>Look in import.php for the first if statement that checks the mime type of the file.<br><br>
If you echo that variable and then track in console or fiddler you could debug that part.<br><br>Sometimes mozilla and chrome report different mimetypes to IE, so it might be that as well.<u></u><u></u></p><div><p class="MsoNormal" style="margin-bottom:12.0pt;margin-left:72.0pt">
 <u></u><u></u></p><div><p class="MsoNormal" style="margin-left:72.0pt">On Thu, Nov 22, 2012 at 10:04 AM, Fay Cross <<a href="mailto:Fay.Cross@nottingham.ac.uk" target="_blank">Fay.Cross@nottingham.ac.uk</a>> wrote:<u></u><u></u></p>
<div><div><p class="MsoNormal" style="margin-left:72.0pt">I know this is something that comes up a lot but even using the current files from the toolkits svn set up in xampp I can’t export and then import a project.  The export (as archive zip) seems to works ok – all the expected files are in the zip.  But when I try to import it I get an error ‘You can only import Zip files’<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:72.0pt"> <u></u><u></u></p><p class="MsoNormal" style="margin-left:72.0pt">Also, I the language options check boxes on the editor are still not appearing correctly – wasn’t this fixed last week?<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:72.0pt"> <u></u><u></u></p><p class="MsoNormal" style="margin-left:72.0pt">Thanks<u></u><u></u></p></div><p class="MsoNormal" style="margin-bottom:12.0pt;margin-left:72.0pt"><u></u> <u></u></p>
</div><p class="MsoNormal" style="margin-bottom:12.0pt;margin-left:72.0pt"><br>_______________________________________________<br>Xerte-dev mailing list<br><a href="mailto:Xerte-dev@lists.nottingham.ac.uk" target="_blank">Xerte-dev@lists.nottingham.ac.uk</a><br>
<a href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev" target="_blank">http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev</a><u></u><u></u></p></div><p class="MsoNormal" style="margin-left:72.0pt"> <u></u><u></u></p>
</div></div></div></div><p class="MsoNormal" style="margin-right:0cm;margin-bottom:12.0pt;margin-left:36.0pt"><br><br><u></u><u></u></p></div><p class="MsoNormal" style="margin-right:0cm;margin-bottom:12.0pt;margin-left:36.0pt">
<br>_______________________________________________<br>Xerte-dev mailing list<br><a href="mailto:Xerte-dev@lists.nottingham.ac.uk" target="_blank">Xerte-dev@lists.nottingham.ac.uk</a><br><a href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev" target="_blank">http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev</a><u></u><u></u></p>
</div><p class="MsoNormal" style="margin-left:36.0pt"><u></u> <u></u></p></div></div>
<br><br>
<br></div><br>_______________________________________________<br>
Xerte-dev mailing list<br>
<a href="mailto:Xerte-dev@lists.nottingham.ac.uk">Xerte-dev@lists.nottingham.ac.uk</a><br>
<a href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev" target="_blank">http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev</a><br>
<br></blockquote></div><br></div>