<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>The only solution I ran across was a pretty rough one.<div><span style="font-size: 12pt;">Check the file sizes and warn the user it may not export correctly.</span></div><div><br><div><hr id="stopSpelling">From: ronm@mitchellmedia.co.uk<br>To: xerte-dev@lists.nottingham.ac.uk<br>Date: Wed, 30 Apr 2014 21:09:29 +0100<br>Subject: [Xerte-dev] Re: example_zipper issue revisited<br><br><style><!--
.ExternalClass p.ecxMsoNormal, .ExternalClass li.ecxMsoNormal, .ExternalClass div.ecxMsoNormal {
font-size:12.0pt;
font-family:"Times New Roman","serif";
}

.ExternalClass a:link, .ExternalClass span.ecxMsoHyperlink {
color:blue;
text-decoration:underline;
}

.ExternalClass span.ecxMsoHyperlinkFollowed {
color:purple;
text-decoration:underline;
}

.ExternalClass p {
font-size:12.0pt;
font-family:"Times New Roman","serif";
}

.ExternalClass p.ecxMsoAcetate, .ExternalClass li.ecxMsoAcetate, .ExternalClass div.ecxMsoAcetate {
font-size:8.0pt;
font-family:"Tahoma","sans-serif";
}

.ExternalClass span.ecxBalloonTextChar {
font-family:"Tahoma","sans-serif";
}

.ExternalClass span.ecxEmailStyle20 {
font-family:"Calibri","sans-serif";
color:#1F497D;
}

.ExternalClass span.ecxEmailStyle21 {
font-family:"Calibri","sans-serif";
color:#1F497D;
}

.ExternalClass span.ecxEmailStyle22 {
font-family:"Calibri","sans-serif";
color:#1F497D;
}

.ExternalClass .ecxMsoChpDefault {
font-size:10.0pt;
}

.ExternalClass div.ecxWordSection1 {
}

--></style><div class="ecxWordSection1"><p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;">Just confirmed that changing memory_limit to 300MB fixes the issue for a project containing a 62MB file. This was on the sandpit server using the same project reported as being problematic. I changed the memory_limit to 256MB first (from 128MB) and it failed to export* and generated a whole load of example_zippers in the project folder. Cleared those out, changed the memory_limit to 300MB and export worked fine without generating example_zipper files.</span></p><p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;"> </span></p><p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;">*To be fair I didn't check to see if there were example_zipper files already in place from previous tests after changing to 256MB but certainly 300MB works for this file size.</span></p><p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;"> </span></p><p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;">I think a key question is whether there is a solution to this that doesn't require changes to memory_limit? I don't remember seeing this issue previously even with large projects.</span></p><p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;"> </span></p><p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;">Ron</span></p><p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;"> </span></p><div><div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm;"><p class="ecxMsoNormal"><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>Ron Mitchell<br><b>Sent:</b> 30 April 2014 20:01<br><b>To:</b> 'For Xerte technical developers'; xerte@pgogywebstuff.com<br><b>Subject:</b> [Xerte-dev] Re: example_zipper issue revisited</span></p></div></div><p class="ecxMsoNormal"> </p><p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;">Those links seem to have got combined and broke :-(</span></p><p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;"><a href="https://github.com/thexerteproject/xerteonlinetoolkits/blob/2.1/modules/xerte/export.php" target="_blank">https://github.com/thexerteproject/xerteonlinetoolkits/blob/2.1/modules/xerte/export.php</a> </span></p><p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;"> </span></p><p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;"><a href="https://github.com/thexerteproject/xerteonlinetoolkits/blob/develop/modules/xerte/export.php" target="_blank">https://github.com/thexerteproject/xerteonlinetoolkits/blob/develop/modules/xerte/export.php</a> </span></p><p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;"> </span></p><p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;">Both line 61</span></p><p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;"> </span></p><div><div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm;"><p class="ecxMsoNormal"><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">xerte-dev-bounces@lists.nottingham.ac.uk</a> [<a href="mailto:xerte-dev-bounces@lists.nottingham.ac.uk">mailto:xerte-dev-bounces@lists.nottingham.ac.uk</a>] <b>On Behalf Of </b>Ron Mitchell<br><b>Sent:</b> 30 April 2014 19:58<br><b>To:</b> <a href="mailto:xerte@pgogywebstuff.com">xerte@pgogywebstuff.com</a>; 'For Xerte technical developers'<br><b>Subject:</b> [Xerte-dev] Re: example_zipper issue revisited</span></p></div></div><p class="ecxMsoNormal"> </p><p class="ecxMsoNormal"><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></p><p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;"> </span></p><p class="ecxMsoNormal"><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></p><p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;"> </span></p><p class="ecxMsoNormal"><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></p><p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;"> </span></p><p class="ecxMsoNormal"><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></p><p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;"> </span></p><p class="ecxMsoNormal"><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></p><p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;"> </span></p><p class="ecxMsoNormal"><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></p><p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;"> </span></p><p class="ecxMsoNormal"><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></p><p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;"> </span></p><p class="ecxMsoNormal"><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></p><p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;"> </span></p><p class="ecxMsoNormal"><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></p><p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;"> </span></p><p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;">Ron</span></p><p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;"> </span></p><div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm;"><p class="ecxMsoNormal"><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">xerte-dev-bounces@lists.nottingham.ac.uk</a> [<a href="mailto:xerte-dev-bounces@lists.nottingham.ac.uk">mailto: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></p></div><p class="ecxMsoNormal"> </p><div><p class="ecxMsoNormal">Does exampler_zipper appear in the code, it sounds like something I left in. </p><div><p class="ecxMsoNormal"> </p></div><div><p class="ecxMsoNormal">I imagine it is a PHP timeout issue kicking in, or Memory being maxed out.</p></div><div><p class="ecxMsoNormal"> </p></div><div><p class="ecxMsoNormal">The zip script it supposed to do a clean up. Maybe do it before export now as well</p></div></div><div><p class="ecxMsoNormal" style=""> </p><div><p class="ecxMsoNormal">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:</p><p class="ecxMsoNormal" style="">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">xerte-dev-bounces@lists.nottingham.ac.uk</a><br>[mailto:<a href="mailto:xerte-dev-bounces@lists.nottingham.ac.uk">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">xerte-dev-bounces@lists.nottingham.ac.uk</a><br>[<a href="mailto:xerte-dev-bounces@lists.nottingham.ac.uk">xerte-dev-bounces@lists.nottingham.ac.uk</a>] On Behalf Of Julian Tenney<br>[<a href="mailto:Julian.Tenney@nottingham.ac.uk">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">xerte-dev-bounces@lists.nottingham.ac.uk</a><br>[mailto:<a href="mailto:xerte-dev-bounces@lists.nottingham.ac.uk">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%2c6219%2cen.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%2c15691%2cen.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">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">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></p></div><p class="ecxMsoNormal"> </p></div><p class="ecxMsoNormal"> </p>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>This message has been checked for viruses but the contents of an attachment 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><p class="ecxMsoNormal"> </p><p class="ecxMsoNormal"> </p>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>This message has been checked for viruses but the contents of an attachment 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><p class="ecxMsoNormal"> </p></div>
<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>This message has been checked for viruses but the contents of an attachment 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>_______________________________________________
Xerte-dev mailing list
Xerte-dev@lists.nottingham.ac.uk
http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev</div></div>                                          </div></body>
</html>