[Xerte-dev] Re: Export problem

Pat Lockley patrick.lockley at googlemail.com
Thu Nov 22 12:12:43 GMT 2012


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>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] *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>
> 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] *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>
> 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
> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev****
>
>  ****
>
>
>
> ****
>
>
> _______________________________________________
> Xerte-dev mailing list
> 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
> 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/7b2503a0/attachment.html>


More information about the Xerte-dev mailing list