[Xerte-dev] Re: Export problem

Tom Reijnders reijnders at tor.nl
Thu Nov 22 12:39:33 GMT 2012


Sorry Fay,

I fixed that one, but apparently forgot to commit it...

Tom

Op 22-11-2012 12:59, Fay Cross schreef:
>
> 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 <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
> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev

-- 
--

Tom Reijnders
TOR Informatica
Chopinlaan 27
5242HM Rosmalen
Tel: 073 5226191
Fax: 073 5226196

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nottingham.ac.uk/pipermail/xerte-dev/attachments/20121122/f1a344b6/attachment-0001.html>


More information about the Xerte-dev mailing list