<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 12 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-GB link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>I don't think an alert is displayed to the user when it fails and the example_zipper files are left in the project folder and I think increase after each failed attempt.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>I know on the one hand it's not best practice to upload mp4's direct and better to use a streaming server but there are obviously occasions where people do need to upload direct and 62MB as an example isn't exactly huge. <o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Sounds like non-default memory_limit or at least increase from 128MB has become a system requirement? <o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> xerte-dev-bounces@lists.nottingham.ac.uk [mailto:xerte-dev-bounces@lists.nottingham.ac.uk] <b>On Behalf Of </b>Pat L (pgogy)<br><b>Sent:</b> 30 April 2014 21:03<br><b>To:</b> For Xerte technical developers<br><b>Subject:</b> [Xerte-dev] Re: example_zipper issue revisited<o:p></o:p></span></p></div><p class=MsoNormal><o:p> </o:p></p><div><p class=MsoNormal>It's not the code, it's the file sizes.<o:p></o:p></p><div><p class=MsoNormal>MP4s will be bigger when zipped than they are as files<o:p></o:p></p></div><div><p class=MsoNormal>Example zipper is the temp file name the code uses, i assume when it runs out of memory it dumps the file.<o:p></o:p></p></div><div><p class=MsoNormal>There is a logic to doing a file size check before exporting and warning with large files<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div></div><div><p class=MsoNormal style='margin-bottom:12.0pt'><o:p> </o:p></p><div><p class=MsoNormal>On Wed, Apr 30, 2014 at 7:58 PM, Ron Mitchell <<a href="mailto:ronm@mitchellmedia.co.uk" target="_blank">ronm@mitchellmedia.co.uk</a>> wrote:<o:p></o:p></p><div><div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Yep it's in 2.1 <a href="https://github.com/thexerteproject/xerteonlinetoolkits/blob/2.1/modules/xerte/export.php%20line%2061" target="_blank">https://github.com/thexerteproject/xerteonlinetoolkits/blob/2.1/modules/xerte/export.php line 61</a></span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'> </span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>and in develop too:  <a href="https://github.com/thexerteproject/xerteonlinetoolkits/blob/develop/modules/xerte/export.php%20line%2061" target="_blank">https://github.com/thexerteproject/xerteonlinetoolkits/blob/develop/modules/xerte/export.php line 61</a></span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'> </span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>I've been testing further on a server where I can change anything and it does seem like increasing memory_limit resolves the issue but I'm not sure what the equation would be for file size v required limit or if any of the other php settings have a part to play too. I can't be sure but this seems like a relatively new issue too.  My tests so far…</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'> </span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>1. Small projects don't seem to be a problem - no example_zipper created and projects export ok.</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'> </span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>2. I was alerted to the problem again by a user of the Techdis sandpit who reported not being able to export here project yet was able to previously. The particular project included a 62MB mp4 so that's what I've been testing with now but on a different server. On this server with the memory_limit set to 128MB example_zipper files were created and part of the exported zip as well as left on the server.</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'> </span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>3. Increasing the memory_limit to 300MB enable the export to work and no example_zipper created.</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'> </span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>4. I mentioned I had a similar issue with a Wordpress install recently where the server host had to increase the memory_limit and in that case to 256MB and that seems to be a regular problem especially for people on shared hosting where they can't change the memory limit themselves. 128MB seems to be the default but I guess it could vary quite a bit depending on hosts.</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'> </span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>5. What I'm not sure about is if this is a new problem due to changes in Xerte code and whether it's been fixed previously as I think John suggested.?</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'> </span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>6. There are so many variables here I can't test reliably without others testing too e.g. I don't know if the combined file size with lots of smaller files gives the same  result as this single 62MB file or if other PHP settings also have a part to play. My fear is that we don't know how big the problem is. Partly because export isn't as common as just creating and linking and that together with project size variation, settings variation etc and perhaps some not knowing that these files even exist means it could be quite common without many knowing.</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'> </span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Ron</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'> </span><o:p></o:p></p><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> <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 L (pgogy)<br><b>Sent:</b> 30 April 2014 18:53<br><b>To:</b> For Xerte technical developers<br><b>Subject:</b> [Xerte-dev] Re: example_zipper issue revisited</span><o:p></o:p></p></div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> <o:p></o:p></p><div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>Does exampler_zipper appear in the code, it sounds like something I left in. <o:p></o:p></p><div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> <o:p></o:p></p></div><div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>I imagine it is a PHP timeout issue kicking in, or Memory being maxed out.<o:p></o:p></p></div><div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> <o:p></o:p></p></div><div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>The zip script it supposed to do a clean up. Maybe do it before export now as well<o:p></o:p></p></div></div><div><p class=MsoNormal style='mso-margin-top-alt:auto;margin-bottom:12.0pt'> <o:p></o:p></p><div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>On Wed, Apr 30, 2014 at 11:02 AM, Ron Mitchell <<a href="mailto:ronm@mitchellmedia.co.uk" target="_blank">ronm@mitchellmedia.co.uk</a>> wrote:<o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;margin-bottom:12.0pt'>Hi all<br>I've updated some installations using the current 2.1 git download and had<br>hoped that the example_zipper issue I mentioned previously would be fixed<br>but it seems it hasn't? However it might only be showing up when large files<br>are included or with certain php or server configurations etc or perhaps<br>it's been fixed in develop but not applied to 2.1? This may also be an issue<br>going unoticed to some extent and leaving lots of redundant zip files in<br>project folders. So testing and questions...<br><br>What I'm finding with current 2.1 code on more than one server is that<br>exporting smaller projects works fine with no example_zipper files left on<br>the server or included in the zip download. However if a project includes<br>larger media files it either doesn't export or when it does it leaves<br>example_zipper files in the project folder as well as including them in the<br>zip download. I'm not sure where small - large overlaps but for instance<br>I've been testing export of a project containing a 60MB mp4.<br><br>Q1. Was this a known issue fixed in develop but not in current 2.1 branch?<br><br>Q2. Could this only be occurring with particular PHP/server settings and if<br>so what are the relevant settings?<br><br>Q3. Can others reproduce this using current 2.1 branch?<br><br>Cheers<br>Ron<br><br>-----Original Message-----<br>From: <a href="mailto:xerte-dev-bounces@lists.nottingham.ac.uk" target="_blank">xerte-dev-bounces@lists.nottingham.ac.uk</a><br>[mailto:<a href="mailto:xerte-dev-bounces@lists.nottingham.ac.uk" target="_blank">xerte-dev-bounces@lists.nottingham.ac.uk</a>] On Behalf Of Smith, John<br>Sent: 08 April 2014 14:05<br>To: For Xerte technical developers<br>Subject: [Xerte-dev] Re: session issue + example_zipper issue<br><br>I've not really seen any session issues on a windows install and on xampp<br>mainly though. Have never seen the invalid templat id error either...<br><br>the example_zipper_new... file seems to be related to old export code<br>(<a href="https://code.google.com/p/xerteonlinetoolkits/source/browse/trunk/modules/xerte/export.php?spec=svn696&r=696" target="_blank">https://code.google.com/p/xerteonlinetoolkits/source/browse/trunk/modules/x<br>erte/export.php?spec=svn696&r=696</a>) with _xyz on the end nothing shows in<br>Google but remove _xyz and you get hits...<br><br>Regards,<br><br>John Smith | Learning Technologist<br>Room A251, Govan Mbeki Building | School of Health & Life Sciences | Glasgow<br>Caledonian University Cowcaddens Road | Glasgow | G4 0BA<br>________________________________________<br>From: <a href="mailto:xerte-dev-bounces@lists.nottingham.ac.uk" target="_blank">xerte-dev-bounces@lists.nottingham.ac.uk</a><br>[<a href="mailto:xerte-dev-bounces@lists.nottingham.ac.uk" target="_blank">xerte-dev-bounces@lists.nottingham.ac.uk</a>] On Behalf Of Julian Tenney<br>[<a href="mailto:Julian.Tenney@nottingham.ac.uk" target="_blank">Julian.Tenney@nottingham.ac.uk</a>]<br>Sent: 08 April 2014 13:39<br>To: For Xerte technical developers<br>Subject: [Xerte-dev] Re: session issue + example_zipper issue<br><br>Never seen 'invalid template id'. But 'session ID not set' is doing my head<br>in.<br><br>I don't recognise 2.<br><br>From: <a href="mailto:xerte-dev-bounces@lists.nottingham.ac.uk" target="_blank">xerte-dev-bounces@lists.nottingham.ac.uk</a><br>[mailto:<a href="mailto:xerte-dev-bounces@lists.nottingham.ac.uk" target="_blank">xerte-dev-bounces@lists.nottingham.ac.uk</a>] On Behalf Of Ron Mitchell<br>Sent: 08 April 2014 13:23<br>To: 'For Xerte technical developers'<br>Subject: [Xerte-dev] session issue + example_zipper issue<br><br>Hi all<br>I think an issue I mentioned in the thread entitled testing results got lost<br>in the discussion about re-running setup so I'm checking again along with a<br>separate issue I've noticed.<br><br>Issue 1<br>I downloaded xertetoolkits_2.1 Version:2.1 Last update  2014-03-14 from the<br>community site and from my testing this revision is not reliable e.g. one<br>minute I can create an LO and the next minute I get one of two errors when<br>trying to create a new lo:<br>Session ID not set<br>or<br>Invalid template_id (could not find in DB)<br><br>Q. Does this not happen for others?<br><br>Issue 2<br>In an older revision that I've been using which seems to be relatively<br>trouble free I've noticed that one or more files named something like<br>example_zipper_new_xyz. is getting created and included in any successful<br>export but also still residing in the project folder on the server.<br><br>Q. Does anyone recognise this? Was it fixed in a later revision that doesn't<br>have the session issue above?<br><br>Cheers<br>Ron<br><br><br><br><br>This message and any attachment are intended solely for the addressee and<br>may contain confidential information. If you have received this message in<br>error, please send it back to me, and immediately delete it.   Please do not<br>use, copy or disclose the information contained in this message or in any<br>attachment.  Any views or opinions expressed by the author of this email do<br>not necessarily reflect the views of the University of Nottingham.<br><br>This message has been checked for viruses but the contents of an attachment<br>may still contain software viruses which could damage your computer system,<br>you are advised to perform your own checks. Email communications with the<br>University of Nottingham may be monitored as permitted by UK legislation.<br><br>Glasgow Caledonian University is a registered Scottish charity, number<br>SC021474<br><br>Winner: Times Higher Education's Widening Participation Initiative of the<br>Year 2009 and Herald Society's Education Initiative of the Year 2009.<br><a href="http://www.gcu.ac.uk/newsevents/news/bycategory/theuniversity/1/name,6219,en.html" target="_blank">http://www.gcu.ac.uk/newsevents/news/bycategory/theuniversity/1/name,6219,en<br>.html</a><br><br>Winner: Times Higher Education's Outstanding Support for Early Career<br>Researchers of the Year 2010, GCU as a lead with Universities Scotland<br>partners.<br><a href="http://www.gcu.ac.uk/newsevents/news/bycategory/theuniversity/1/name,15691,en.html" target="_blank">http://www.gcu.ac.uk/newsevents/news/bycategory/theuniversity/1/name,15691,e<br>n.html</a><br><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><br>This message and any attachment are intended solely for the addressee and<br>may contain confidential information. If you have received this message in<br>error, please send it back to me, and immediately delete it.   Please do not<br>use, copy or disclose the information contained in this message or in any<br>attachment.  Any views or opinions expressed by the author of this email do<br>not necessarily reflect the views of the University of Nottingham.<br><br>This message has been checked for viruses but the contents of an attachment<br>may still contain software viruses which could damage your computer system,<br>you are advised to perform your own checks. Email communications with the<br>University of Nottingham may be monitored as permitted by UK legislation.<br><br><br><br><br><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><br>This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it.   Please do not use, copy or disclose the information contained in this message or in any attachment.  Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham.<br><br>This message has been checked for viruses but the contents of an attachment<br>may still contain software viruses which could damage your computer system, you are advised to perform your own checks. Email communications with the University of Nottingham may be monitored as permitted by UK legislation.<br><br><br><o:p></o:p></p></div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> <o:p></o:p></p></div></div></div></div><p class=MsoNormal><o:p> </o:p></p></div></div></body></html>