[Xerte-dev] Re: Export problem
Fay Cross
Fay.Cross at nottingham.ac.uk
Thu Nov 22 12:38:57 GMT 2012
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.
Cheers for your help Pat :)
From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Pat Lockley
Sent: 22 November 2012 12:33
To: For Xerte technical developers
Subject: [Xerte-dev] Re: Export problem
make it an or for either condition
so if html model folder found the number =
if not
then number =
The big thing is that this code has been re done in my branch *shoots self*
On Thu, Nov 22, 2012 at 12:24 PM, Fay Cross <Fay.Cross at nottingham.ac.uk<mailto:Fay.Cross at nottingham.ac.uk>> wrote:
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?
From: xerte-dev-bounces at lists.nottingham.ac.uk<mailto:xerte-dev-bounces at lists.nottingham.ac.uk> [mailto:xerte-dev-bounces at lists.nottingham.ac.uk<mailto:xerte-dev-bounces at lists.nottingham.ac.uk>] On Behalf Of Pat Lockley
Sent: 22 November 2012 12:13
To: For Xerte technical developers
Subject: [Xerte-dev] Re: Export problem
ok add an or on the mimetype if for 'application/octet-stream'
and try swapping the 3, for a 4
On Thu, Nov 22, 2012 at 11:59 AM, Fay Cross <Fay.Cross at nottingham.ac.uk<mailto:Fay.Cross at nottingham.ac.uk>> wrote:
Ok, in Firefox it fails because the file type appears as 'application/octet-stream'
In IE8 and Chrome it fails because of...
if(count(explode("/",$y))==3){
die(IMPORT_ZIP_FOLDER_LEVEL . "****");
$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.'
From: xerte-dev-bounces at lists.nottingham.ac.uk<mailto:xerte-dev-bounces at lists.nottingham.ac.uk> [mailto:xerte-dev-bounces at lists.nottingham.ac.uk<mailto:xerte-dev-bounces at lists.nottingham.ac.uk>] On Behalf Of Pat Lockley
Sent: 22 November 2012 11:15
To: For Xerte technical developers
Subject: [Xerte-dev] Re: Export problem
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
*installs firebug*
Yep :)
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.
On Thu, Nov 22, 2012 at 11:01 AM, Fay Cross <Fay.Cross at nottingham.ac.uk<mailto:Fay.Cross at nottingham.ac.uk>> wrote:
Stupid question alert - would php echos appear in the firebug console?
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)
From: xerte-dev-bounces at lists.nottingham.ac.uk<mailto:xerte-dev-bounces at lists.nottingham.ac.uk> [mailto:xerte-dev-bounces at lists.nottingham.ac.uk<mailto:xerte-dev-bounces at lists.nottingham.ac.uk>] On Behalf Of Pat Lockley
Sent: 22 November 2012 10:28
To: For Xerte technical developers
Subject: [Xerte-dev] Re: Export problem
the "you can only import zip files" is usually a mime type issue.
Look in import.php for the first if statement that checks the mime type of the file.
If you echo that variable and then track in console or fiddler you could debug that part.
Sometimes mozilla and chrome report different mimetypes to IE, so it might be that as well.
On Thu, Nov 22, 2012 at 10:04 AM, Fay Cross <Fay.Cross at nottingham.ac.uk<mailto:Fay.Cross at nottingham.ac.uk>> wrote:
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'
Also, I the language options check boxes on the editor are still not appearing correctly - wasn't this fixed last week?
Thanks
_______________________________________________
Xerte-dev mailing list
Xerte-dev at lists.nottingham.ac.uk<mailto:Xerte-dev at lists.nottingham.ac.uk>
http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev
_______________________________________________
Xerte-dev mailing list
Xerte-dev at lists.nottingham.ac.uk<mailto:Xerte-dev at lists.nottingham.ac.uk>
http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev
_______________________________________________
Xerte-dev mailing list
Xerte-dev at lists.nottingham.ac.uk<mailto:Xerte-dev at lists.nottingham.ac.uk>
http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev
_______________________________________________
Xerte-dev mailing list
Xerte-dev at lists.nottingham.ac.uk<mailto:Xerte-dev at lists.nottingham.ac.uk>
http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nottingham.ac.uk/pipermail/xerte-dev/attachments/20121122/3a648a05/attachment.html>
More information about the Xerte-dev
mailing list