Yeah, but I've done the work I need to do for here :)<br><br>And now I'll have to do it again :(<br><br>*mumbles from cave*<br><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Nov 22, 2012 at 1:03 PM, Julian Tenney <span dir="ltr"><<a href="mailto:Julian.Tenney@nottingham.ac.uk" target="_blank">Julian.Tenney@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">You mean you’re not being paid right now?<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">;-)<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 12:42</span></p><div><div class="h5"><br><b>To:</b> For Xerte technical developers<br><b>Subject:</b> [Xerte-dev] Re: Export problem<u></u><u></u></div></div><p></p></div><div><div class="h5">
<p class="MsoNormal" style="margin-left:36.0pt"><u></u> <u></u></p><p class="MsoNormal" style="margin-left:36.0pt">No problem, ask Andy to email me where I can send the invoice<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 12:38 PM, 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">Yes, (why didn’t I think of that doh).  I think I need to sort through the html5 stuff too as although it’s just two folders (common_html5 and models_html5) there might be some stuff in there that’s not needed.</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">Cheers for your help Pat </span><span style="font-size:11.0pt;font-family:Wingdings;color:#1f497d">J</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 12:33</span><u></u><u></u></p><div><div><p class="MsoNormal" style="margin-left:36.0pt"><br><b>To:</b> For Xerte technical developers<br><b>Subject:</b> [Xerte-dev] Re: Export problem<u></u><u></u></p>
</div></div></div><div><div><p class="MsoNormal" style="margin-left:72.0pt"> <u></u><u></u></p><p class="MsoNormal" style="margin-left:72.0pt">make it an or for either condition<br><br>so if html model folder found the number =<br>
<br>if not<br><br>then number = <br><br>The big thing is that this code has been re done in my branch *shoots self*<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 12:24 PM, 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"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Thanks, works in them all now, although I had to change the explode bit to 8 (because now the export includes the html5 stuff and there’s horribly nested folders in the jquery ui css).  If you’re importing an old project without the html5 stuff in it won’t catch projects where the zip has an extra folder in though – is that going to be a big problem?</span><u></u><u></u></p>
<p class="MsoNormal" style="margin-left:72.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:108.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 12:13</span><u></u><u></u></p><div><div><p class="MsoNormal" style="margin-left:72.0pt"><br><b>To:</b> For Xerte technical developers<br><b>Subject:</b> [Xerte-dev] Re: Export problem<u></u><u></u></p>
</div></div></div><div><div><p class="MsoNormal" style="margin-left:108.0pt"> <u></u><u></u></p><p class="MsoNormal" style="margin-left:108.0pt">ok add an or on the mimetype if<span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> for ‘application/octet-stream’<br>
<br>and try swapping the 3, for a 4</span><u></u><u></u></p><div><p class="MsoNormal" style="margin-bottom:12.0pt;margin-left:108.0pt"> <u></u><u></u></p><div><p class="MsoNormal" style="margin-left:108.0pt">On Thu, Nov 22, 2012 at 11:59 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:108.0pt"><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’</span><u></u><u></u></p>
<p class="MsoNormal" style="margin-left:108.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:108.0pt">
<span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">In IE8 and Chrome it fails because of...</span><u></u><u></u></p><p class="MsoNormal" style="margin-left:108.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:108.0pt"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif"">if(count(explode("/",$y))==3){</span><u></u><u></u></p><p class="MsoNormal" style="margin-left:108.0pt;text-indent:36.0pt">
<span style="font-size:11.0pt;font-family:"Calibri","sans-serif"">die(IMPORT_ZIP_FOLDER_LEVEL . "****");</span><u></u><u></u></p><p class="MsoNormal" style="margin-left:108.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:108.0pt"><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 ‘The files in your zip folder need to be in the main folder, not within another folder in the zip.’</span><u></u><u></u></p>
<p class="MsoNormal" style="margin-left:108.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:144.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</span><u></u><u></u></p></div><p class="MsoNormal" style="margin-left:144.0pt"> <u></u><u></u></p>
<p class="MsoNormal" style="margin-left:144.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-bottom:12.0pt;margin-left:144.0pt"> <u></u><u></u></p><div><p class="MsoNormal" style="margin-left:144.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:144.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:144.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:144.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:144.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:180.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:180.0pt"> <u></u><u></u></p>
<p class="MsoNormal" style="margin-left:180.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:180.0pt">
 <u></u><u></u></p><div><p class="MsoNormal" style="margin-left:180.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:180.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:180.0pt"> <u></u><u></u></p><p class="MsoNormal" style="margin-left:180.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:180.0pt"> <u></u><u></u></p><p class="MsoNormal" style="margin-left:180.0pt">Thanks<u></u><u></u></p></div><p class="MsoNormal" style="margin-bottom:12.0pt;margin-left:180.0pt"> <u></u><u></u></p>
</div><p class="MsoNormal" style="margin-bottom:12.0pt;margin-left:180.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:180.0pt"> <u></u><u></u></p>
</div></div></div></div><p class="MsoNormal" style="margin-bottom:12.0pt;margin-left:144.0pt"> <u></u><u></u></p></div><p class="MsoNormal" style="margin-bottom:12.0pt;margin-left:144.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:144.0pt"> <u></u><u></u></p></div></div><p class="MsoNormal" style="margin-bottom:12.0pt;margin-left:108.0pt"> <u></u><u></u></p></div><p class="MsoNormal" style="margin-bottom:12.0pt;margin-left:108.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:108.0pt"> <u></u><u></u></p></div></div></div></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></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>