From i.donkervoort at 12change.eu Fri Jun 20 15:20:50 2014 From: i.donkervoort at 12change.eu (Inge Donkervoort 12Change) Date: Fri, 20 Jun 2014 16:20:50 +0200 Subject: [Xerte-dev] Name publisher not on syndicate list In-Reply-To: References: <4F044573.8040609@tor.nl> <4F0452DC.4020107@tor.nl> <4F0453C8.2040302@tor.nl> Message-ID: <53A44342.9090308@12change.eu> Hi, I'm testing the management.php page. One of the things I can add here is the name of the publisher for the learning objects in the syndicate list. But the name is not published on the list. Does anyone know what's wrong? Bye, Inge 12Change Chopinlaan 27 5242 HM Rosmalen T 073-5226195 F 073-5226196 E i.donkervoort at 12change.eu I www.12change.eu T twitter L linkedIn -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: dfgdcghi.png Type: image/png Size: 20483 bytes Desc: not available URL: From J.J.Smith at gcu.ac.uk Sat Jun 21 22:41:35 2014 From: J.J.Smith at gcu.ac.uk (Smith, John) Date: Sat, 21 Jun 2014 22:41:35 +0100 Subject: [Xerte-dev] Re: Name publisher not on syndicate list In-Reply-To: <53A44342.9090308@12change.eu> References: <4F044573.8040609@tor.nl> <4F0452DC.4020107@tor.nl> <4F0453C8.2040302@tor.nl> , <53A44342.9090308@12change.eu> Message-ID: Hi Inge, I just tried this and it definitely updated, are you sure the changes were successfully saved? You can try this by updating and then refreshing the page and going back to management.php->Site->RSS Settings and see if the changes that you made are still there. Regards, John Smith | Learning Technologist Room A250, Govan Mbeki Building | School of Health & Life Sciences | Glasgow Caledonian University Cowcaddens Road | Glasgow | G4 0BA Please address ALL support requests to hlsblt at gcu.ac.uk where one of the School Learning Technologists will pick up the job. This will ensure that all jobs are completed as promptly as possible. ________________________________________ From: xerte-dev-bounces at lists.nottingham.ac.uk [xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Inge Donkervoort 12Change [i.donkervoort at 12change.eu] Sent: 20 June 2014 15:20 To: xerte-dev at lists.nottingham.ac.uk Subject: [Xerte-dev] Name publisher not on syndicate list Hi, I'm testing the management.php page. One of the things I can add here is the name of the publisher for the learning objects in the syndicate list. But the name is not published on the list. [cid:part1.03070702.00050706 at 12change.eu] Does anyone know what's wrong? Bye, Inge 1 2 Change Chopinlaan 27 5242 HM Rosmalen T 073-5226195 F 073-5226196 E i.donkervoort at 12change.eu I www.12change.eu T twitter L linkedIn Glasgow Caledonian University is a registered Scottish charity, number SC021474 From xerte at pgogywebstuff.com Mon Jun 23 09:56:48 2014 From: xerte at pgogywebstuff.com (Pat L (pgogy)) Date: Mon, 23 Jun 2014 09:56:48 +0100 Subject: [Xerte-dev] Re: Name publisher not on syndicate list In-Reply-To: References: <4F044573.8040609@tor.nl> <4F0452DC.4020107@tor.nl> <4F0453C8.2040302@tor.nl> <53A44342.9090308@12change.eu> Message-ID: It could be cached - those settings are saved all together so I think a bug would have cropped up ages ago For reference the institutions name may be saved on one page in management,php and on another page as well On Sat, Jun 21, 2014 at 10:41 PM, Smith, John wrote: > Hi Inge, > > I just tried this and it definitely updated, are you sure the changes were > successfully saved? You can try this by updating and then refreshing the > page and going back to management.php->Site->RSS Settings and see if the > changes that you made are still there. > > Regards, > > John Smith | Learning Technologist > Room A250, Govan Mbeki Building | School of Health & Life Sciences | > Glasgow Caledonian University > Cowcaddens Road | Glasgow | G4 0BA > > Please address ALL support requests to hlsblt at gcu.ac.uk where one of the > School Learning Technologists will pick up the job. This will ensure that > all jobs are completed as promptly as possible. > ________________________________________ > From: xerte-dev-bounces at lists.nottingham.ac.uk [ > xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Inge Donkervoort > 12Change [i.donkervoort at 12change.eu] > Sent: 20 June 2014 15:20 > To: xerte-dev at lists.nottingham.ac.uk > Subject: [Xerte-dev] Name publisher not on syndicate list > > Hi, > > I'm testing the management.php page. > One of the things I can add here is the name of the publisher for the > learning objects in the syndicate list. > But the name is not published on the list. > > [cid:part1.03070702.00050706 at 12change.eu] > Does anyone know what's wrong? > > Bye, > Inge > > > 1 2 Change > Chopinlaan 27 > 5242 HM Rosmalen > T 073-5226195 > F 073-5226196 > E i.donkervoort at 12change.eu > I www.12change.eu > > T twitter > L linkedIn > > > > Glasgow Caledonian University is a registered Scottish charity, number > SC021474 > > _______________________________________________ > Xerte-dev mailing list > Xerte-dev at lists.nottingham.ac.uk > http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev > 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. > > 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. > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From J.J.Smith at gcu.ac.uk Mon Jun 23 11:59:02 2014 From: J.J.Smith at gcu.ac.uk (Smith, John) Date: Mon, 23 Jun 2014 11:59:02 +0100 Subject: [Xerte-dev] Re: Name publisher not on syndicate list In-Reply-To: References: <4F044573.8040609@tor.nl> <4F0452DC.4020107@tor.nl> <4F0453C8.2040302@tor.nl> <53A44342.9090308@12change.eu> , Message-ID: Yes I would have assumed too that any problem there would have been flagged up... Regards, John Smith | Learning Technologist Room A250, Govan Mbeki Building | School of Health & Life Sciences | Glasgow Caledonian University Cowcaddens Road | Glasgow | G4 0BA Please address ALL support requests to hlsblt at gcu.ac.uk where one of the School Learning Technologists will pick up the job. This will ensure that all jobs are completed as promptly as possible. ________________________________________ From: xerte-dev-bounces at lists.nottingham.ac.uk [xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Pat L (pgogy) [xerte at pgogywebstuff.com] Sent: 23 June 2014 09:56 To: For Xerte technical developers Subject: [Xerte-dev] Re: Name publisher not on syndicate list It could be cached - those settings are saved all together so I think a bug would have cropped up ages ago For reference the institutions name may be saved on one page in management,php and on another page as well On Sat, Jun 21, 2014 at 10:41 PM, Smith, John > wrote: Hi Inge, I just tried this and it definitely updated, are you sure the changes were successfully saved? You can try this by updating and then refreshing the page and going back to management.php->Site->RSS Settings and see if the changes that you made are still there. Regards, John Smith | Learning Technologist Room A250, Govan Mbeki Building | School of Health & Life Sciences | Glasgow Caledonian University Cowcaddens Road | Glasgow | G4 0BA Please address ALL support requests to hlsblt at gcu.ac.uk where one of the School Learning Technologists will pick up the job. This will ensure that all jobs are completed as promptly as possible. ________________________________________ From: xerte-dev-bounces at lists.nottingham.ac.uk [xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Inge Donkervoort 12Change [i.donkervoort at 12change.eu] Sent: 20 June 2014 15:20 To: xerte-dev at lists.nottingham.ac.uk Subject: [Xerte-dev] Name publisher not on syndicate list Hi, I'm testing the management.php page. One of the things I can add here is the name of the publisher for the learning objects in the syndicate list. But the name is not published on the list. [cid:part1.03070702.00050706 at 12change.eu] Does anyone know what's wrong? Bye, Inge 1 2 Change Chopinlaan 27 5242 HM Rosmalen T 073-5226195 F 073-5226196 E i.donkervoort at 12change.eu> I www.12change.eu T twitter L linkedIn Glasgow Caledonian University is a registered Scottish charity, number SC021474 _______________________________________________ Xerte-dev mailing list Xerte-dev at lists.nottingham.ac.uk http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev 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. 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. Glasgow Caledonian University is a registered Scottish charity, number SC021474 From Julian.Tenney at nottingham.ac.uk Wed Jun 25 10:58:18 2014 From: Julian.Tenney at nottingham.ac.uk (Julian Tenney) Date: Wed, 25 Jun 2014 10:58:18 +0100 Subject: [Xerte-dev] preview.xml not created Message-ID: <12C67A1EEC419342AF5E59DA31562C3F0D292A9269@EXCHANGE1.ad.nottingham.ac.uk> Got a user here who logs in, tries to create a LO, but preview .xml isn't being created: consequently the editor has no LO icon in it when it loads up. Other users on same computer work fine. Any idea what's going on? [cid:image001.jpg at 01CF9064.5F50E4A0] -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.jpg Type: image/jpeg Size: 8487 bytes Desc: image001.jpg URL: From david at palepurple.co.uk Wed Jun 25 11:00:02 2014 From: david at palepurple.co.uk (David Goodwin) Date: Wed, 25 Jun 2014 11:00:02 +0100 Subject: [Xerte-dev] Re: preview.xml not created In-Reply-To: <12C67A1EEC419342AF5E59DA31562C3F0D292A9269@EXCHANGE1.ad.nottingham.ac.uk> References: <12C67A1EEC419342AF5E59DA31562C3F0D292A9269@EXCHANGE1.ad.nottingham.ac.uk> Message-ID: <53AA9DA2.30300@palepurple.co.uk> I have a feeling XOT may be mixing up it's saving of preview.xml and data.xml - in that it saves data.xml when it should save preview.xml etc David. On 25/06/14 10:58, Julian Tenney wrote: > Got a user here who logs in, tries to create a LO, but preview .xml > isn?t being created: consequently the editor has no LO icon in it when > it loads up. Other users on same computer work fine. Any idea what?s > going on? > > cid:image004.jpg at 01CF905F.BC2E7D90 > > > > _______________________________________________ > Xerte-dev mailing list > Xerte-dev at lists.nottingham.ac.uk > http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev > -- Pale Purple Ltd PHP Web application development and support http://www.palepurple.co.uk @PalePurpleLtd 07792 380669 / 0845 0046746 From Julian.Tenney at nottingham.ac.uk Wed Jun 25 11:00:51 2014 From: Julian.Tenney at nottingham.ac.uk (Julian Tenney) Date: Wed, 25 Jun 2014 11:00:51 +0100 Subject: [Xerte-dev] Re: preview.xml not created In-Reply-To: <53AA9DA2.30300@palepurple.co.uk> References: <12C67A1EEC419342AF5E59DA31562C3F0D292A9269@EXCHANGE1.ad.nottingham.ac.uk> <53AA9DA2.30300@palepurple.co.uk> Message-ID: <12C67A1EEC419342AF5E59DA31562C3F0D292A9270@EXCHANGE1.ad.nottingham.ac.uk> Why only for one user? -----Original Message----- From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of David Goodwin Sent: 25 June 2014 11:00 To: For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created I have a feeling XOT may be mixing up it's saving of preview.xml and data.xml - in that it saves data.xml when it should save preview.xml etc David. On 25/06/14 10:58, Julian Tenney wrote: > Got a user here who logs in, tries to create a LO, but preview .xml > isn't being created: consequently the editor has no LO icon in it when > it loads up. Other users on same computer work fine. Any idea what's > going on? > > cid:image004.jpg at 01CF905F.BC2E7D90 > > > > _______________________________________________ > Xerte-dev mailing list > Xerte-dev at lists.nottingham.ac.uk > http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev > -- Pale Purple Ltd PHP Web application development and support http://www.palepurple.co.uk @PalePurpleLtd 07792 380669 / 0845 0046746 _______________________________________________ Xerte-dev mailing list Xerte-dev at lists.nottingham.ac.uk http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev From david at palepurple.co.uk Wed Jun 25 11:25:44 2014 From: david at palepurple.co.uk (David Goodwin) Date: Wed, 25 Jun 2014 11:25:44 +0100 Subject: [Xerte-dev] Re: preview.xml not created In-Reply-To: <12C67A1EEC419342AF5E59DA31562C3F0D292A9270@EXCHANGE1.ad.nottingham.ac.uk> References: <12C67A1EEC419342AF5E59DA31562C3F0D292A9269@EXCHANGE1.ad.nottingham.ac.uk> <53AA9DA2.30300@palepurple.co.uk> <12C67A1EEC419342AF5E59DA31562C3F0D292A9270@EXCHANGE1.ad.nottingham.ac.uk> Message-ID: <53AAA3A8.2000509@palepurple.co.uk> No. For everyone. At least it seemed to be like that for me. I probably messed up preview.php or whatever it is. David. On 25/06/14 11:00, Julian Tenney wrote: > Why only for one user? > > -----Original Message----- > From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of David Goodwin > Sent: 25 June 2014 11:00 > To: For Xerte technical developers > Subject: [Xerte-dev] Re: preview.xml not created > > I have a feeling XOT may be mixing up it's saving of preview.xml and data.xml - in that it saves data.xml when it should save preview.xml etc > > David. > > On 25/06/14 10:58, Julian Tenney wrote: >> Got a user here who logs in, tries to create a LO, but preview .xml >> isn't being created: consequently the editor has no LO icon in it when >> it loads up. Other users on same computer work fine. Any idea what's >> going on? >> >> cid:image004.jpg at 01CF905F.BC2E7D90 >> >> >> >> _______________________________________________ >> Xerte-dev mailing list >> Xerte-dev at lists.nottingham.ac.uk >> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev >> > > -- > Pale Purple Ltd > > PHP Web application development and support > > http://www.palepurple.co.uk > @PalePurpleLtd > 07792 380669 / 0845 0046746 > > _______________________________________________ > 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 > 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. > > 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. > > > > -- Pale Purple Ltd PHP Web application development and support http://www.palepurple.co.uk @PalePurpleLtd 07792 380669 / 0845 0046746 From Julian.Tenney at nottingham.ac.uk Wed Jun 25 11:28:13 2014 From: Julian.Tenney at nottingham.ac.uk (Julian Tenney) Date: Wed, 25 Jun 2014 11:28:13 +0100 Subject: [Xerte-dev] Re: preview.xml not created In-Reply-To: <53AAA3A8.2000509@palepurple.co.uk> References: <12C67A1EEC419342AF5E59DA31562C3F0D292A9269@EXCHANGE1.ad.nottingham.ac.uk> <53AA9DA2.30300@palepurple.co.uk> <12C67A1EEC419342AF5E59DA31562C3F0D292A9270@EXCHANGE1.ad.nottingham.ac.uk> <53AAA3A8.2000509@palepurple.co.uk> Message-ID: <12C67A1EEC419342AF5E59DA31562C3F0D292A92AC@EXCHANGE1.ad.nottingham.ac.uk> It's only happening for one user. -----Original Message----- From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of David Goodwin Sent: 25 June 2014 11:26 To: For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created No. For everyone. At least it seemed to be like that for me. I probably messed up preview.php or whatever it is. David. On 25/06/14 11:00, Julian Tenney wrote: > Why only for one user? > > -----Original Message----- > From: xerte-dev-bounces at lists.nottingham.ac.uk > [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of David > Goodwin > Sent: 25 June 2014 11:00 > To: For Xerte technical developers > Subject: [Xerte-dev] Re: preview.xml not created > > I have a feeling XOT may be mixing up it's saving of preview.xml and > data.xml - in that it saves data.xml when it should save preview.xml > etc > > David. > > On 25/06/14 10:58, Julian Tenney wrote: >> Got a user here who logs in, tries to create a LO, but preview .xml >> isn't being created: consequently the editor has no LO icon in it >> when it loads up. Other users on same computer work fine. Any idea >> what's going on? >> >> cid:image004.jpg at 01CF905F.BC2E7D90 >> >> >> >> _______________________________________________ >> Xerte-dev mailing list >> Xerte-dev at lists.nottingham.ac.uk >> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev >> > > -- > Pale Purple Ltd > > PHP Web application development and support > > http://www.palepurple.co.uk > @PalePurpleLtd > 07792 380669 / 0845 0046746 > > _______________________________________________ > 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 > 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. > > 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. > > > > -- Pale Purple Ltd PHP Web application development and support http://www.palepurple.co.uk @PalePurpleLtd 07792 380669 / 0845 0046746 _______________________________________________ Xerte-dev mailing list Xerte-dev at lists.nottingham.ac.uk http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev From ronm at mitchellmedia.co.uk Wed Jun 25 12:00:09 2014 From: ronm at mitchellmedia.co.uk (Ron Mitchell) Date: Wed, 25 Jun 2014 12:00:09 +0100 Subject: [Xerte-dev] Re: preview.xml not created In-Reply-To: <12C67A1EEC419342AF5E59DA31562C3F0D292A9270@EXCHANGE1.ad.nottingham.ac.uk> References: <12C67A1EEC419342AF5E59DA31562C3F0D292A9269@EXCHANGE1.ad.nottingham.ac.uk> <53AA9DA2.30300@palepurple.co.uk> <12C67A1EEC419342AF5E59DA31562C3F0D292A9270@EXCHANGE1.ad.nottingham.ac.uk> Message-ID: My hunch would be a username issue - check username matches the folders being created including case sensitivity? Sent from my iPhone > On 25 Jun 2014, at 11:00, Julian Tenney wrote: > > Why only for one user? > > -----Original Message----- > From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of David Goodwin > Sent: 25 June 2014 11:00 > To: For Xerte technical developers > Subject: [Xerte-dev] Re: preview.xml not created > > I have a feeling XOT may be mixing up it's saving of preview.xml and data.xml - in that it saves data.xml when it should save preview.xml etc > > David. > >> On 25/06/14 10:58, Julian Tenney wrote: >> Got a user here who logs in, tries to create a LO, but preview .xml >> isn't being created: consequently the editor has no LO icon in it when >> it loads up. Other users on same computer work fine. Any idea what's >> going on? >> >> cid:image004.jpg at 01CF905F.BC2E7D90 >> >> >> >> _______________________________________________ >> Xerte-dev mailing list >> Xerte-dev at lists.nottingham.ac.uk >> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev > > -- > Pale Purple Ltd > > PHP Web application development and support > > http://www.palepurple.co.uk > @PalePurpleLtd > 07792 380669 / 0845 0046746 > > _______________________________________________ > 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 > 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. > > 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. > > > > From Julian.Tenney at nottingham.ac.uk Wed Jun 25 12:03:44 2014 From: Julian.Tenney at nottingham.ac.uk (Julian Tenney) Date: Wed, 25 Jun 2014 12:03:44 +0100 Subject: [Xerte-dev] Re: preview.xml not created In-Reply-To: References: <12C67A1EEC419342AF5E59DA31562C3F0D292A9269@EXCHANGE1.ad.nottingham.ac.uk> <53AA9DA2.30300@palepurple.co.uk> <12C67A1EEC419342AF5E59DA31562C3F0D292A9270@EXCHANGE1.ad.nottingham.ac.uk> Message-ID: <12C67A1EEC419342AF5E59DA31562C3F0D292A92F9@EXCHANGE1.ad.nottingham.ac.uk> I'll check that. I didn't notice anything obvious though... -----Original Message----- From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Ron Mitchell Sent: 25 June 2014 12:00 To: For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created My hunch would be a username issue - check username matches the folders being created including case sensitivity? Sent from my iPhone > On 25 Jun 2014, at 11:00, Julian Tenney wrote: > > Why only for one user? > > -----Original Message----- > From: xerte-dev-bounces at lists.nottingham.ac.uk > [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of David > Goodwin > Sent: 25 June 2014 11:00 > To: For Xerte technical developers > Subject: [Xerte-dev] Re: preview.xml not created > > I have a feeling XOT may be mixing up it's saving of preview.xml and > data.xml - in that it saves data.xml when it should save preview.xml > etc > > David. > >> On 25/06/14 10:58, Julian Tenney wrote: >> Got a user here who logs in, tries to create a LO, but preview .xml >> isn't being created: consequently the editor has no LO icon in it >> when it loads up. Other users on same computer work fine. Any idea >> what's going on? >> >> cid:image004.jpg at 01CF905F.BC2E7D90 >> >> >> >> _______________________________________________ >> Xerte-dev mailing list >> Xerte-dev at lists.nottingham.ac.uk >> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev > > -- > Pale Purple Ltd > > PHP Web application development and support > > http://www.palepurple.co.uk > @PalePurpleLtd > 07792 380669 / 0845 0046746 > > _______________________________________________ > 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 > 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. > > 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. > > > > _______________________________________________ Xerte-dev mailing list Xerte-dev at lists.nottingham.ac.uk http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev From xerte at pgogywebstuff.com Wed Jun 25 12:10:28 2014 From: xerte at pgogywebstuff.com (Pat L (pgogy)) Date: Wed, 25 Jun 2014 12:10:28 +0100 Subject: [Xerte-dev] Re: preview.xml not created In-Reply-To: <12C67A1EEC419342AF5E59DA31562C3F0D292A92F9@EXCHANGE1.ad.nottingham.ac.uk> References: <12C67A1EEC419342AF5E59DA31562C3F0D292A9269@EXCHANGE1.ad.nottingham.ac.uk> <53AA9DA2.30300@palepurple.co.uk> <12C67A1EEC419342AF5E59DA31562C3F0D292A9270@EXCHANGE1.ad.nottingham.ac.uk> <12C67A1EEC419342AF5E59DA31562C3F0D292A92F9@EXCHANGE1.ad.nottingham.ac.uk> Message-ID: I think preview.xml is there when a new template is created? https://github.com/thexerteproject/xerteonlinetoolkits/blob/develop/modules/xerte/new_template.php *is it in the modules folder?* On Wed, Jun 25, 2014 at 12:03 PM, Julian Tenney < Julian.Tenney at nottingham.ac.uk> wrote: > I'll check that. I didn't notice anything obvious though... > > -----Original Message----- > From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto: > xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Ron Mitchell > Sent: 25 June 2014 12:00 > To: For Xerte technical developers > Subject: [Xerte-dev] Re: preview.xml not created > > My hunch would be a username issue - check username matches the folders > being created including case sensitivity? > > Sent from my iPhone > > > On 25 Jun 2014, at 11:00, Julian Tenney > wrote: > > > > Why only for one user? > > > > -----Original Message----- > > From: xerte-dev-bounces at lists.nottingham.ac.uk > > [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of David > > Goodwin > > Sent: 25 June 2014 11:00 > > To: For Xerte technical developers > > Subject: [Xerte-dev] Re: preview.xml not created > > > > I have a feeling XOT may be mixing up it's saving of preview.xml and > > data.xml - in that it saves data.xml when it should save preview.xml > > etc > > > > David. > > > >> On 25/06/14 10:58, Julian Tenney wrote: > >> Got a user here who logs in, tries to create a LO, but preview .xml > >> isn't being created: consequently the editor has no LO icon in it > >> when it loads up. Other users on same computer work fine. Any idea > >> what's going on? > >> > >> cid:image004.jpg at 01CF905F.BC2E7D90 > >> > >> > >> > >> _______________________________________________ > >> Xerte-dev mailing list > >> Xerte-dev at lists.nottingham.ac.uk > >> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev > > > > -- > > Pale Purple Ltd > > > > PHP Web application development and support > > > > http://www.palepurple.co.uk > > @PalePurpleLtd > > 07792 380669 / 0845 0046746 > > > > _______________________________________________ > > 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 > > 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. > > > > 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. > > > > > > > > > > _______________________________________________ > 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 > 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. > > 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. > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Julian.Tenney at nottingham.ac.uk Wed Jun 25 12:36:03 2014 From: Julian.Tenney at nottingham.ac.uk (Julian Tenney) Date: Wed, 25 Jun 2014 12:36:03 +0100 Subject: [Xerte-dev] Re: preview.xml not created In-Reply-To: References: <12C67A1EEC419342AF5E59DA31562C3F0D292A9269@EXCHANGE1.ad.nottingham.ac.uk> <53AA9DA2.30300@palepurple.co.uk> <12C67A1EEC419342AF5E59DA31562C3F0D292A9270@EXCHANGE1.ad.nottingham.ac.uk> <12C67A1EEC419342AF5E59DA31562C3F0D292A92F9@EXCHANGE1.ad.nottingham.ac.uk> Message-ID: <12C67A1EEC419342AF5E59DA31562C3F0D292A9329@EXCHANGE1.ad.nottingham.ac.uk> Pat, I?m not sure what you mean. From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Pat L (pgogy) Sent: 25 June 2014 12:10 To: For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created I think preview.xml is there when a new template is created? https://github.com/thexerteproject/xerteonlinetoolkits/blob/develop/modules/xerte/new_template.php is it in the modules folder? On Wed, Jun 25, 2014 at 12:03 PM, Julian Tenney > wrote: I'll check that. I didn't notice anything obvious though... -----Original Message----- From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Ron Mitchell Sent: 25 June 2014 12:00 To: For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created My hunch would be a username issue - check username matches the folders being created including case sensitivity? Sent from my iPhone > On 25 Jun 2014, at 11:00, Julian Tenney > wrote: > > Why only for one user? > > -----Original Message----- > From: xerte-dev-bounces at lists.nottingham.ac.uk > [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of David > Goodwin > Sent: 25 June 2014 11:00 > To: For Xerte technical developers > Subject: [Xerte-dev] Re: preview.xml not created > > I have a feeling XOT may be mixing up it's saving of preview.xml and > data.xml - in that it saves data.xml when it should save preview.xml > etc > > David. > >> On 25/06/14 10:58, Julian Tenney wrote: >> Got a user here who logs in, tries to create a LO, but preview .xml >> isn't being created: consequently the editor has no LO icon in it >> when it loads up. Other users on same computer work fine. Any idea >> what's going on? >> >> cid:image004.jpg at 01CF905F.BC2E7D90 >> >> >> >> _______________________________________________ >> Xerte-dev mailing list >> Xerte-dev at lists.nottingham.ac.uk >> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev > > -- > Pale Purple Ltd > > PHP Web application development and support > > http://www.palepurple.co.uk > @PalePurpleLtd > 07792 380669 / 0845 0046746 > > _______________________________________________ > 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 > 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. > > 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. > > > > _______________________________________________ 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 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. 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. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Julian.Tenney at nottingham.ac.uk Wed Jun 25 12:37:56 2014 From: Julian.Tenney at nottingham.ac.uk (Julian Tenney) Date: Wed, 25 Jun 2014 12:37:56 +0100 Subject: [Xerte-dev] Re: preview.xml not created In-Reply-To: <12C67A1EEC419342AF5E59DA31562C3F0D292A92F9@EXCHANGE1.ad.nottingham.ac.uk> References: <12C67A1EEC419342AF5E59DA31562C3F0D292A9269@EXCHANGE1.ad.nottingham.ac.uk> <53AA9DA2.30300@palepurple.co.uk> <12C67A1EEC419342AF5E59DA31562C3F0D292A9270@EXCHANGE1.ad.nottingham.ac.uk> <12C67A1EEC419342AF5E59DA31562C3F0D292A92F9@EXCHANGE1.ad.nottingham.ac.uk> Message-ID: <12C67A1EEC419342AF5E59DA31562C3F0D292A932D@EXCHANGE1.ad.nottingham.ac.uk> No, that looks right. At least the folder has the correct user name in it. -----Original Message----- From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Julian Tenney Sent: 25 June 2014 12:04 To: For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created I'll check that. I didn't notice anything obvious though... -----Original Message----- From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Ron Mitchell Sent: 25 June 2014 12:00 To: For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created My hunch would be a username issue - check username matches the folders being created including case sensitivity? Sent from my iPhone > On 25 Jun 2014, at 11:00, Julian Tenney wrote: > > Why only for one user? > > -----Original Message----- > From: xerte-dev-bounces at lists.nottingham.ac.uk > [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of David > Goodwin > Sent: 25 June 2014 11:00 > To: For Xerte technical developers > Subject: [Xerte-dev] Re: preview.xml not created > > I have a feeling XOT may be mixing up it's saving of preview.xml and > data.xml - in that it saves data.xml when it should save preview.xml > etc > > David. > >> On 25/06/14 10:58, Julian Tenney wrote: >> Got a user here who logs in, tries to create a LO, but preview .xml >> isn't being created: consequently the editor has no LO icon in it >> when it loads up. Other users on same computer work fine. Any idea >> what's going on? >> >> cid:image004.jpg at 01CF905F.BC2E7D90 >> >> >> >> _______________________________________________ >> Xerte-dev mailing list >> Xerte-dev at lists.nottingham.ac.uk >> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev > > -- > Pale Purple Ltd > > PHP Web application development and support > > http://www.palepurple.co.uk > @PalePurpleLtd > 07792 380669 / 0845 0046746 > > _______________________________________________ > 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 > 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. > > 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. > > > > _______________________________________________ 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 From ronm at mitchellmedia.co.uk Wed Jun 25 12:42:01 2014 From: ronm at mitchellmedia.co.uk (Ron Mitchell) Date: Wed, 25 Jun 2014 12:42:01 +0100 Subject: [Xerte-dev] Re: preview.xml not created In-Reply-To: <12C67A1EEC419342AF5E59DA31562C3F0D292A932D@EXCHANGE1.ad.nottingham.ac.uk> References: <12C67A1EEC419342AF5E59DA31562C3F0D292A9269@EXCHANGE1.ad.nottingham.ac.uk> <53AA9DA2.30300@palepurple.co.uk> <12C67A1EEC419342AF5E59DA31562C3F0D292A9270@EXCHANGE1.ad.nottingham.ac.uk> <12C67A1EEC419342AF5E59DA31562C3F0D292A92F9@EXCHANGE1.ad.nottingham.ac.uk> <12C67A1EEC419342AF5E59DA31562C3F0D292A932D@EXCHANGE1.ad.nottingham.ac.uk> Message-ID: <73213665-27D9-4ACB-9778-EAC0F189E671@mitchellmedia.co.uk> Does it match the name in the database exactly or is there more than one account with the same username? Could be wrong but this is how I've seen this issue. Sent from my iPhone > On 25 Jun 2014, at 12:37, Julian Tenney wrote: > > No, that looks right. At least the folder has the correct user name in it. > > -----Original Message----- > From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Julian Tenney > Sent: 25 June 2014 12:04 > To: For Xerte technical developers > Subject: [Xerte-dev] Re: preview.xml not created > > I'll check that. I didn't notice anything obvious though... > > -----Original Message----- > From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Ron Mitchell > Sent: 25 June 2014 12:00 > To: For Xerte technical developers > Subject: [Xerte-dev] Re: preview.xml not created > > My hunch would be a username issue - check username matches the folders being created including case sensitivity? > > Sent from my iPhone > >> On 25 Jun 2014, at 11:00, Julian Tenney wrote: >> >> Why only for one user? >> >> -----Original Message----- >> From: xerte-dev-bounces at lists.nottingham.ac.uk >> [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of David >> Goodwin >> Sent: 25 June 2014 11:00 >> To: For Xerte technical developers >> Subject: [Xerte-dev] Re: preview.xml not created >> >> I have a feeling XOT may be mixing up it's saving of preview.xml and >> data.xml - in that it saves data.xml when it should save preview.xml >> etc >> >> David. >> >>> On 25/06/14 10:58, Julian Tenney wrote: >>> Got a user here who logs in, tries to create a LO, but preview .xml >>> isn't being created: consequently the editor has no LO icon in it >>> when it loads up. Other users on same computer work fine. Any idea >>> what's going on? >>> >>> cid:image004.jpg at 01CF905F.BC2E7D90 >>> >>> >>> >>> _______________________________________________ >>> Xerte-dev mailing list >>> Xerte-dev at lists.nottingham.ac.uk >>> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev >> >> -- >> Pale Purple Ltd >> >> PHP Web application development and support >> >> http://www.palepurple.co.uk >> @PalePurpleLtd >> 07792 380669 / 0845 0046746 >> >> _______________________________________________ >> 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 >> 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. >> >> 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. > > _______________________________________________ > 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 > 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. > > 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. > > > > From Julian.Tenney at nottingham.ac.uk Wed Jun 25 14:27:47 2014 From: Julian.Tenney at nottingham.ac.uk (Julian Tenney) Date: Wed, 25 Jun 2014 14:27:47 +0100 Subject: [Xerte-dev] Re: preview.xml not created References: <12C67A1EEC419342AF5E59DA31562C3F0D292A9269@EXCHANGE1.ad.nottingham.ac.uk> <53AA9DA2.30300@palepurple.co.uk> <12C67A1EEC419342AF5E59DA31562C3F0D292A9270@EXCHANGE1.ad.nottingham.ac.uk> <12C67A1EEC419342AF5E59DA31562C3F0D292A92F9@EXCHANGE1.ad.nottingham.ac.uk> Message-ID: <12C67A1EEC419342AF5E59DA31562C3F0D292A93D3@EXCHANGE1.ad.nottingham.ac.uk> We have only one of these usernames, dating from 2006, so predates toolkits, and not a duplicate. -----Original Message----- From: Tenney Julian Sent: 25 June 2014 12:38 To: For Xerte technical developers Subject: RE: [Xerte-dev] Re: preview.xml not created No, that looks right. At least the folder has the correct user name in it. -----Original Message----- From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Julian Tenney Sent: 25 June 2014 12:04 To: For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created I'll check that. I didn't notice anything obvious though... -----Original Message----- From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Ron Mitchell Sent: 25 June 2014 12:00 To: For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created My hunch would be a username issue - check username matches the folders being created including case sensitivity? Sent from my iPhone > On 25 Jun 2014, at 11:00, Julian Tenney wrote: > > Why only for one user? > > -----Original Message----- > From: xerte-dev-bounces at lists.nottingham.ac.uk > [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of David > Goodwin > Sent: 25 June 2014 11:00 > To: For Xerte technical developers > Subject: [Xerte-dev] Re: preview.xml not created > > I have a feeling XOT may be mixing up it's saving of preview.xml and > data.xml - in that it saves data.xml when it should save preview.xml > etc > > David. > >> On 25/06/14 10:58, Julian Tenney wrote: >> Got a user here who logs in, tries to create a LO, but preview .xml >> isn't being created: consequently the editor has no LO icon in it >> when it loads up. Other users on same computer work fine. Any idea >> what's going on? >> >> cid:image004.jpg at 01CF905F.BC2E7D90 >> >> >> >> _______________________________________________ >> Xerte-dev mailing list >> Xerte-dev at lists.nottingham.ac.uk >> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev > > -- > Pale Purple Ltd > > PHP Web application development and support > > http://www.palepurple.co.uk > @PalePurpleLtd > 07792 380669 / 0845 0046746 > > _______________________________________________ > 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 > 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. > > 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. > > > > _______________________________________________ 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 From J.J.Smith at gcu.ac.uk Wed Jun 25 15:47:26 2014 From: J.J.Smith at gcu.ac.uk (Smith, John) Date: Wed, 25 Jun 2014 15:47:26 +0100 Subject: [Xerte-dev] Re: preview.xml not created In-Reply-To: <12C67A1EEC419342AF5E59DA31562C3F0D292A93D3@EXCHANGE1.ad.nottingham.ac.uk> References: <12C67A1EEC419342AF5E59DA31562C3F0D292A9269@EXCHANGE1.ad.nottingham.ac.uk> <53AA9DA2.30300@palepurple.co.uk> <12C67A1EEC419342AF5E59DA31562C3F0D292A9270@EXCHANGE1.ad.nottingham.ac.uk> <12C67A1EEC419342AF5E59DA31562C3F0D292A92F9@EXCHANGE1.ad.nottingham.ac.uk>, <12C67A1EEC419342AF5E59DA31562C3F0D292A93D3@EXCHANGE1.ad.nottingham.ac.uk> Message-ID: If the user creates a new LO and edit opens then do you see the blank, default preview.xml being copied into in the newly created USER-FILES folder? Regards, John Smith | Learning Technologist Room A250, Govan Mbeki Building | School of Health & Life Sciences | Glasgow Caledonian University Cowcaddens Road | Glasgow | G4 0BA Please address ALL support requests to hlsblt at gcu.ac.uk where one of the School Learning Technologists will pick up the job. This will ensure that all jobs are completed as promptly as possible. ________________________________________ From: xerte-dev-bounces at lists.nottingham.ac.uk [xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Julian Tenney [Julian.Tenney at nottingham.ac.uk] Sent: 25 June 2014 14:27 To: For Xerte technical developers (xerte-dev at lists.nottingham.ac.uk) Subject: [Xerte-dev] Re: preview.xml not created We have only one of these usernames, dating from 2006, so predates toolkits, and not a duplicate. -----Original Message----- From: Tenney Julian Sent: 25 June 2014 12:38 To: For Xerte technical developers Subject: RE: [Xerte-dev] Re: preview.xml not created No, that looks right. At least the folder has the correct user name in it. -----Original Message----- From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Julian Tenney Sent: 25 June 2014 12:04 To: For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created I'll check that. I didn't notice anything obvious though... -----Original Message----- From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Ron Mitchell Sent: 25 June 2014 12:00 To: For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created My hunch would be a username issue - check username matches the folders being created including case sensitivity? Sent from my iPhone > On 25 Jun 2014, at 11:00, Julian Tenney wrote: > > Why only for one user? > > -----Original Message----- > From: xerte-dev-bounces at lists.nottingham.ac.uk > [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of David > Goodwin > Sent: 25 June 2014 11:00 > To: For Xerte technical developers > Subject: [Xerte-dev] Re: preview.xml not created > > I have a feeling XOT may be mixing up it's saving of preview.xml and > data.xml - in that it saves data.xml when it should save preview.xml > etc > > David. > >> On 25/06/14 10:58, Julian Tenney wrote: >> Got a user here who logs in, tries to create a LO, but preview .xml >> isn't being created: consequently the editor has no LO icon in it >> when it loads up. Other users on same computer work fine. Any idea >> what's going on? >> >> cid:image004.jpg at 01CF905F.BC2E7D90 >> >> >> >> _______________________________________________ >> Xerte-dev mailing list >> Xerte-dev at lists.nottingham.ac.uk >> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev > > -- > Pale Purple Ltd > > PHP Web application development and support > > http://www.palepurple.co.uk > @PalePurpleLtd > 07792 380669 / 0845 0046746 > > _______________________________________________ > 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 > 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. > > 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. > > > > _______________________________________________ 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 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. 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. Glasgow Caledonian University is a registered Scottish charity, number SC021474 From Julian.Tenney at nottingham.ac.uk Wed Jun 25 15:51:42 2014 From: Julian.Tenney at nottingham.ac.uk (Julian Tenney) Date: Wed, 25 Jun 2014 15:51:42 +0100 Subject: [Xerte-dev] Re: preview.xml not created In-Reply-To: References: <12C67A1EEC419342AF5E59DA31562C3F0D292A9269@EXCHANGE1.ad.nottingham.ac.uk> <53AA9DA2.30300@palepurple.co.uk> <12C67A1EEC419342AF5E59DA31562C3F0D292A9270@EXCHANGE1.ad.nottingham.ac.uk> <12C67A1EEC419342AF5E59DA31562C3F0D292A92F9@EXCHANGE1.ad.nottingham.ac.uk>, <12C67A1EEC419342AF5E59DA31562C3F0D292A93D3@EXCHANGE1.ad.nottingham.ac.uk> Message-ID: <12C67A1EEC419342AF5E59DA31562C3F0D292A949F@EXCHANGE1.ad.nottingham.ac.uk> No, preview is not created. I think this is maybe to do with popup blocker, so edit never opens. What order do things happen in when a project is created? -----Original Message----- From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Smith, John Sent: 25 June 2014 15:47 To: For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created If the user creates a new LO and edit opens then do you see the blank, default preview.xml being copied into in the newly created USER-FILES folder? Regards, John Smith | Learning Technologist Room A250, Govan Mbeki Building | School of Health & Life Sciences | Glasgow Caledonian University Cowcaddens Road | Glasgow | G4 0BA Please address ALL support requests to hlsblt at gcu.ac.uk where one of the School Learning Technologists will pick up the job. This will ensure that all jobs are completed as promptly as possible. ________________________________________ From: xerte-dev-bounces at lists.nottingham.ac.uk [xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Julian Tenney [Julian.Tenney at nottingham.ac.uk] Sent: 25 June 2014 14:27 To: For Xerte technical developers (xerte-dev at lists.nottingham.ac.uk) Subject: [Xerte-dev] Re: preview.xml not created We have only one of these usernames, dating from 2006, so predates toolkits, and not a duplicate. -----Original Message----- From: Tenney Julian Sent: 25 June 2014 12:38 To: For Xerte technical developers Subject: RE: [Xerte-dev] Re: preview.xml not created No, that looks right. At least the folder has the correct user name in it. -----Original Message----- From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Julian Tenney Sent: 25 June 2014 12:04 To: For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created I'll check that. I didn't notice anything obvious though... -----Original Message----- From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Ron Mitchell Sent: 25 June 2014 12:00 To: For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created My hunch would be a username issue - check username matches the folders being created including case sensitivity? Sent from my iPhone > On 25 Jun 2014, at 11:00, Julian Tenney wrote: > > Why only for one user? > > -----Original Message----- > From: xerte-dev-bounces at lists.nottingham.ac.uk > [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of David > Goodwin > Sent: 25 June 2014 11:00 > To: For Xerte technical developers > Subject: [Xerte-dev] Re: preview.xml not created > > I have a feeling XOT may be mixing up it's saving of preview.xml and > data.xml - in that it saves data.xml when it should save preview.xml > etc > > David. > >> On 25/06/14 10:58, Julian Tenney wrote: >> Got a user here who logs in, tries to create a LO, but preview .xml >> isn't being created: consequently the editor has no LO icon in it >> when it loads up. Other users on same computer work fine. Any idea >> what's going on? >> >> cid:image004.jpg at 01CF905F.BC2E7D90 >> >> >> >> _______________________________________________ >> Xerte-dev mailing list >> Xerte-dev at lists.nottingham.ac.uk >> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev > > -- > Pale Purple Ltd > > PHP Web application development and support > > http://www.palepurple.co.uk > @PalePurpleLtd > 07792 380669 / 0845 0046746 > > _______________________________________________ > 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 > 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. > > 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. > > > > _______________________________________________ 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 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. 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. Glasgow Caledonian University is a registered Scottish charity, number SC021474 _______________________________________________ Xerte-dev mailing list Xerte-dev at lists.nottingham.ac.uk http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev From J.J.Smith at gcu.ac.uk Wed Jun 25 16:08:49 2014 From: J.J.Smith at gcu.ac.uk (Smith, John) Date: Wed, 25 Jun 2014 16:08:49 +0100 Subject: [Xerte-dev] Re: preview.xml not created In-Reply-To: <12C67A1EEC419342AF5E59DA31562C3F0D292A949F@EXCHANGE1.ad.nottingham.ac.uk> References: <12C67A1EEC419342AF5E59DA31562C3F0D292A9269@EXCHANGE1.ad.nottingham.ac.uk> <53AA9DA2.30300@palepurple.co.uk> <12C67A1EEC419342AF5E59DA31562C3F0D292A9270@EXCHANGE1.ad.nottingham.ac.uk> <12C67A1EEC419342AF5E59DA31562C3F0D292A92F9@EXCHANGE1.ad.nottingham.ac.uk>, <12C67A1EEC419342AF5E59DA31562C3F0D292A93D3@EXCHANGE1.ad.nottingham.ac.uk> , <12C67A1EEC419342AF5E59DA31562C3F0D292A949F@EXCHANGE1.ad.nottingham.ac.uk> Message-ID: Popup blocker doesn't usually stop preview.xml being copied, or at least it's never affected me like that before... plus wouldn't the popup blocker work for others too? Edit checks for the existence of preview.xml and either opens it or copies the blank https://github.com/thexerteproject/xerteonlinetoolkits/blob/f5ad19b03ed2c76ac29cbcd0ec5199360dc61d6a/modules/xerte/edit.php#L47 There are a few checks beforehand though that could error out (like below). Check the response in Google Chrome to see if any errors are being sent back i suppose: if(empty($row_username)) { die("Invalid user id ?"); } and if(!file_exists($preview) && file_exists($data)){ copy($data, $preview); chmod($preview, 0777); } So it looks like data.xml needs to be there which comes from the Nottingham template. Is data.xml being created in the folder? And a media folder to hold the multimedia? If not then it looks like this is failing https://github.com/thexerteproject/xerteonlinetoolkits/blob/f5ad19b03ed2c76ac29cbcd0ec5199360dc61d6a/modules/site/new_template.php#L76 It puts some debug messages into the logs so you might like to check there to see if anything shows up... Regards, John Smith | Learning Technologist Room A250, Govan Mbeki Building | School of Health & Life Sciences | Glasgow Caledonian University Cowcaddens Road | Glasgow | G4 0BA Please address ALL support requests to hlsblt at gcu.ac.uk where one of the School Learning Technologists will pick up the job. This will ensure that all jobs are completed as promptly as possible. ________________________________________ From: xerte-dev-bounces at lists.nottingham.ac.uk [xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Julian Tenney [Julian.Tenney at nottingham.ac.uk] Sent: 25 June 2014 15:51 To: For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created No, preview is not created. I think this is maybe to do with popup blocker, so edit never opens. What order do things happen in when a project is created? -----Original Message----- From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Smith, John Sent: 25 June 2014 15:47 To: For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created If the user creates a new LO and edit opens then do you see the blank, default preview.xml being copied into in the newly created USER-FILES folder? Regards, John Smith | Learning Technologist Room A250, Govan Mbeki Building | School of Health & Life Sciences | Glasgow Caledonian University Cowcaddens Road | Glasgow | G4 0BA Please address ALL support requests to hlsblt at gcu.ac.uk where one of the School Learning Technologists will pick up the job. This will ensure that all jobs are completed as promptly as possible. ________________________________________ From: xerte-dev-bounces at lists.nottingham.ac.uk [xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Julian Tenney [Julian.Tenney at nottingham.ac.uk] Sent: 25 June 2014 14:27 To: For Xerte technical developers (xerte-dev at lists.nottingham.ac.uk) Subject: [Xerte-dev] Re: preview.xml not created We have only one of these usernames, dating from 2006, so predates toolkits, and not a duplicate. -----Original Message----- From: Tenney Julian Sent: 25 June 2014 12:38 To: For Xerte technical developers Subject: RE: [Xerte-dev] Re: preview.xml not created No, that looks right. At least the folder has the correct user name in it. -----Original Message----- From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Julian Tenney Sent: 25 June 2014 12:04 To: For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created I'll check that. I didn't notice anything obvious though... -----Original Message----- From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Ron Mitchell Sent: 25 June 2014 12:00 To: For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created My hunch would be a username issue - check username matches the folders being created including case sensitivity? Sent from my iPhone > On 25 Jun 2014, at 11:00, Julian Tenney wrote: > > Why only for one user? > > -----Original Message----- > From: xerte-dev-bounces at lists.nottingham.ac.uk > [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of David > Goodwin > Sent: 25 June 2014 11:00 > To: For Xerte technical developers > Subject: [Xerte-dev] Re: preview.xml not created > > I have a feeling XOT may be mixing up it's saving of preview.xml and > data.xml - in that it saves data.xml when it should save preview.xml > etc > > David. > >> On 25/06/14 10:58, Julian Tenney wrote: >> Got a user here who logs in, tries to create a LO, but preview .xml >> isn't being created: consequently the editor has no LO icon in it >> when it loads up. Other users on same computer work fine. Any idea >> what's going on? >> >> cid:image004.jpg at 01CF905F.BC2E7D90 >> >> >> >> _______________________________________________ >> Xerte-dev mailing list >> Xerte-dev at lists.nottingham.ac.uk >> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev > > -- > Pale Purple Ltd > > PHP Web application development and support > > http://www.palepurple.co.uk > @PalePurpleLtd > 07792 380669 / 0845 0046746 > > _______________________________________________ > 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 > 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. > > 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. > > > > _______________________________________________ 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 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. 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. Glasgow Caledonian University is a registered Scottish charity, number SC021474 _______________________________________________ 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 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. 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. Glasgow Caledonian University is a registered Scottish charity, number SC021474 From Julian.Tenney at nottingham.ac.uk Wed Jun 25 16:12:54 2014 From: Julian.Tenney at nottingham.ac.uk (Julian Tenney) Date: Wed, 25 Jun 2014 16:12:54 +0100 Subject: [Xerte-dev] Re: preview.xml not created In-Reply-To: References: <12C67A1EEC419342AF5E59DA31562C3F0D292A9269@EXCHANGE1.ad.nottingham.ac.uk> <53AA9DA2.30300@palepurple.co.uk> <12C67A1EEC419342AF5E59DA31562C3F0D292A9270@EXCHANGE1.ad.nottingham.ac.uk> <12C67A1EEC419342AF5E59DA31562C3F0D292A92F9@EXCHANGE1.ad.nottingham.ac.uk>, <12C67A1EEC419342AF5E59DA31562C3F0D292A93D3@EXCHANGE1.ad.nottingham.ac.uk> , <12C67A1EEC419342AF5E59DA31562C3F0D292A949F@EXCHANGE1.ad.nottingham.ac.uk> Message-ID: <12C67A1EEC419342AF5E59DA31562C3F0D292A94C8@EXCHANGE1.ad.nottingham.ac.uk> Data.xml is being created, but what seems to fail is the editor opening. Media folder is being created too. So it's the process of opening the editor that creates preview.xml? Come to think about it, I had issues myself in the same building on Monday. I just refreshed the workspace and I was in business, didn't really think about it. I found another user with the same problem: returning to the workspace later, his projects are all there and editable now. Some sort of timing issue? The editor opening and data.xml hasn't been created yet, so nothing to copy? -----Original Message----- From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Smith, John Sent: 25 June 2014 16:09 To: For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created Popup blocker doesn't usually stop preview.xml being copied, or at least it's never affected me like that before... plus wouldn't the popup blocker work for others too? Edit checks for the existence of preview.xml and either opens it or copies the blank https://github.com/thexerteproject/xerteonlinetoolkits/blob/f5ad19b03ed2c76ac29cbcd0ec5199360dc61d6a/modules/xerte/edit.php#L47 There are a few checks beforehand though that could error out (like below). Check the response in Google Chrome to see if any errors are being sent back i suppose: if(empty($row_username)) { die("Invalid user id ?"); } and if(!file_exists($preview) && file_exists($data)){ copy($data, $preview); chmod($preview, 0777); } So it looks like data.xml needs to be there which comes from the Nottingham template. Is data.xml being created in the folder? And a media folder to hold the multimedia? If not then it looks like this is failing https://github.com/thexerteproject/xerteonlinetoolkits/blob/f5ad19b03ed2c76ac29cbcd0ec5199360dc61d6a/modules/site/new_template.php#L76 It puts some debug messages into the logs so you might like to check there to see if anything shows up... Regards, John Smith | Learning Technologist Room A250, Govan Mbeki Building | School of Health & Life Sciences | Glasgow Caledonian University Cowcaddens Road | Glasgow | G4 0BA Please address ALL support requests to hlsblt at gcu.ac.uk where one of the School Learning Technologists will pick up the job. This will ensure that all jobs are completed as promptly as possible. ________________________________________ From: xerte-dev-bounces at lists.nottingham.ac.uk [xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Julian Tenney [Julian.Tenney at nottingham.ac.uk] Sent: 25 June 2014 15:51 To: For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created No, preview is not created. I think this is maybe to do with popup blocker, so edit never opens. What order do things happen in when a project is created? -----Original Message----- From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Smith, John Sent: 25 June 2014 15:47 To: For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created If the user creates a new LO and edit opens then do you see the blank, default preview.xml being copied into in the newly created USER-FILES folder? Regards, John Smith | Learning Technologist Room A250, Govan Mbeki Building | School of Health & Life Sciences | Glasgow Caledonian University Cowcaddens Road | Glasgow | G4 0BA Please address ALL support requests to hlsblt at gcu.ac.uk where one of the School Learning Technologists will pick up the job. This will ensure that all jobs are completed as promptly as possible. ________________________________________ From: xerte-dev-bounces at lists.nottingham.ac.uk [xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Julian Tenney [Julian.Tenney at nottingham.ac.uk] Sent: 25 June 2014 14:27 To: For Xerte technical developers (xerte-dev at lists.nottingham.ac.uk) Subject: [Xerte-dev] Re: preview.xml not created We have only one of these usernames, dating from 2006, so predates toolkits, and not a duplicate. -----Original Message----- From: Tenney Julian Sent: 25 June 2014 12:38 To: For Xerte technical developers Subject: RE: [Xerte-dev] Re: preview.xml not created No, that looks right. At least the folder has the correct user name in it. -----Original Message----- From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Julian Tenney Sent: 25 June 2014 12:04 To: For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created I'll check that. I didn't notice anything obvious though... -----Original Message----- From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Ron Mitchell Sent: 25 June 2014 12:00 To: For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created My hunch would be a username issue - check username matches the folders being created including case sensitivity? Sent from my iPhone > On 25 Jun 2014, at 11:00, Julian Tenney wrote: > > Why only for one user? > > -----Original Message----- > From: xerte-dev-bounces at lists.nottingham.ac.uk > [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of David > Goodwin > Sent: 25 June 2014 11:00 > To: For Xerte technical developers > Subject: [Xerte-dev] Re: preview.xml not created > > I have a feeling XOT may be mixing up it's saving of preview.xml and > data.xml - in that it saves data.xml when it should save preview.xml > etc > > David. > >> On 25/06/14 10:58, Julian Tenney wrote: >> Got a user here who logs in, tries to create a LO, but preview .xml >> isn't being created: consequently the editor has no LO icon in it >> when it loads up. Other users on same computer work fine. Any idea >> what's going on? >> >> cid:image004.jpg at 01CF905F.BC2E7D90 >> >> >> >> _______________________________________________ >> Xerte-dev mailing list >> Xerte-dev at lists.nottingham.ac.uk >> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev > > -- > Pale Purple Ltd > > PHP Web application development and support > > http://www.palepurple.co.uk > @PalePurpleLtd > 07792 380669 / 0845 0046746 > > _______________________________________________ > 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 > 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. > > 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. > > > > _______________________________________________ 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 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. 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. Glasgow Caledonian University is a registered Scottish charity, number SC021474 _______________________________________________ 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 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. 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. Glasgow Caledonian University is a registered Scottish charity, number SC021474 _______________________________________________ Xerte-dev mailing list Xerte-dev at lists.nottingham.ac.uk http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev From Julian.Tenney at nottingham.ac.uk Wed Jun 25 16:43:56 2014 From: Julian.Tenney at nottingham.ac.uk (Julian Tenney) Date: Wed, 25 Jun 2014 16:43:56 +0100 Subject: [Xerte-dev] Re: preview.xml not created In-Reply-To: <12C67A1EEC419342AF5E59DA31562C3F0D292A94C8@EXCHANGE1.ad.nottingham.ac.uk> References: <12C67A1EEC419342AF5E59DA31562C3F0D292A9269@EXCHANGE1.ad.nottingham.ac.uk> <53AA9DA2.30300@palepurple.co.uk> <12C67A1EEC419342AF5E59DA31562C3F0D292A9270@EXCHANGE1.ad.nottingham.ac.uk> <12C67A1EEC419342AF5E59DA31562C3F0D292A92F9@EXCHANGE1.ad.nottingham.ac.uk>, <12C67A1EEC419342AF5E59DA31562C3F0D292A93D3@EXCHANGE1.ad.nottingham.ac.uk> , <12C67A1EEC419342AF5E59DA31562C3F0D292A949F@EXCHANGE1.ad.nottingham.ac.uk> <12C67A1EEC419342AF5E59DA31562C3F0D292A94C8@EXCHANGE1.ad.nottingham.ac.uk> Message-ID: <12C67A1EEC419342AF5E59DA31562C3F0D292A94F8@EXCHANGE1.ad.nottingham.ac.uk> Are all the file creation / copying methods synchronous? Could it be that data.xml hasn't been copied when the editor tries to open -and then in turn duplicate it into preview.xml? -----Original Message----- From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Julian Tenney Sent: 25 June 2014 16:13 To: For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created Data.xml is being created, but what seems to fail is the editor opening. Media folder is being created too. So it's the process of opening the editor that creates preview.xml? Come to think about it, I had issues myself in the same building on Monday. I just refreshed the workspace and I was in business, didn't really think about it. I found another user with the same problem: returning to the workspace later, his projects are all there and editable now. Some sort of timing issue? The editor opening and data.xml hasn't been created yet, so nothing to copy? -----Original Message----- From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Smith, John Sent: 25 June 2014 16:09 To: For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created Popup blocker doesn't usually stop preview.xml being copied, or at least it's never affected me like that before... plus wouldn't the popup blocker work for others too? Edit checks for the existence of preview.xml and either opens it or copies the blank https://github.com/thexerteproject/xerteonlinetoolkits/blob/f5ad19b03ed2c76ac29cbcd0ec5199360dc61d6a/modules/xerte/edit.php#L47 There are a few checks beforehand though that could error out (like below). Check the response in Google Chrome to see if any errors are being sent back i suppose: if(empty($row_username)) { die("Invalid user id ?"); } and if(!file_exists($preview) && file_exists($data)){ copy($data, $preview); chmod($preview, 0777); } So it looks like data.xml needs to be there which comes from the Nottingham template. Is data.xml being created in the folder? And a media folder to hold the multimedia? If not then it looks like this is failing https://github.com/thexerteproject/xerteonlinetoolkits/blob/f5ad19b03ed2c76ac29cbcd0ec5199360dc61d6a/modules/site/new_template.php#L76 It puts some debug messages into the logs so you might like to check there to see if anything shows up... Regards, John Smith | Learning Technologist Room A250, Govan Mbeki Building | School of Health & Life Sciences | Glasgow Caledonian University Cowcaddens Road | Glasgow | G4 0BA Please address ALL support requests to hlsblt at gcu.ac.uk where one of the School Learning Technologists will pick up the job. This will ensure that all jobs are completed as promptly as possible. ________________________________________ From: xerte-dev-bounces at lists.nottingham.ac.uk [xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Julian Tenney [Julian.Tenney at nottingham.ac.uk] Sent: 25 June 2014 15:51 To: For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created No, preview is not created. I think this is maybe to do with popup blocker, so edit never opens. What order do things happen in when a project is created? -----Original Message----- From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Smith, John Sent: 25 June 2014 15:47 To: For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created If the user creates a new LO and edit opens then do you see the blank, default preview.xml being copied into in the newly created USER-FILES folder? Regards, John Smith | Learning Technologist Room A250, Govan Mbeki Building | School of Health & Life Sciences | Glasgow Caledonian University Cowcaddens Road | Glasgow | G4 0BA Please address ALL support requests to hlsblt at gcu.ac.uk where one of the School Learning Technologists will pick up the job. This will ensure that all jobs are completed as promptly as possible. ________________________________________ From: xerte-dev-bounces at lists.nottingham.ac.uk [xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Julian Tenney [Julian.Tenney at nottingham.ac.uk] Sent: 25 June 2014 14:27 To: For Xerte technical developers (xerte-dev at lists.nottingham.ac.uk) Subject: [Xerte-dev] Re: preview.xml not created We have only one of these usernames, dating from 2006, so predates toolkits, and not a duplicate. -----Original Message----- From: Tenney Julian Sent: 25 June 2014 12:38 To: For Xerte technical developers Subject: RE: [Xerte-dev] Re: preview.xml not created No, that looks right. At least the folder has the correct user name in it. -----Original Message----- From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Julian Tenney Sent: 25 June 2014 12:04 To: For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created I'll check that. I didn't notice anything obvious though... -----Original Message----- From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Ron Mitchell Sent: 25 June 2014 12:00 To: For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created My hunch would be a username issue - check username matches the folders being created including case sensitivity? Sent from my iPhone > On 25 Jun 2014, at 11:00, Julian Tenney wrote: > > Why only for one user? > > -----Original Message----- > From: xerte-dev-bounces at lists.nottingham.ac.uk > [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of David > Goodwin > Sent: 25 June 2014 11:00 > To: For Xerte technical developers > Subject: [Xerte-dev] Re: preview.xml not created > > I have a feeling XOT may be mixing up it's saving of preview.xml and > data.xml - in that it saves data.xml when it should save preview.xml > etc > > David. > >> On 25/06/14 10:58, Julian Tenney wrote: >> Got a user here who logs in, tries to create a LO, but preview .xml >> isn't being created: consequently the editor has no LO icon in it >> when it loads up. Other users on same computer work fine. Any idea >> what's going on? >> >> cid:image004.jpg at 01CF905F.BC2E7D90 >> >> >> >> _______________________________________________ >> Xerte-dev mailing list >> Xerte-dev at lists.nottingham.ac.uk >> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev > > -- > Pale Purple Ltd > > PHP Web application development and support > > http://www.palepurple.co.uk > @PalePurpleLtd > 07792 380669 / 0845 0046746 > > _______________________________________________ > 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 > 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. > > 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. > > > > _______________________________________________ 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 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. 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. Glasgow Caledonian University is a registered Scottish charity, number SC021474 _______________________________________________ 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 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. 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. Glasgow Caledonian University is a registered Scottish charity, number SC021474 _______________________________________________ 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 From xerte at pgogywebstuff.com Wed Jun 25 16:47:05 2014 From: xerte at pgogywebstuff.com (Pat L (pgogy)) Date: Wed, 25 Jun 2014 16:47:05 +0100 Subject: [Xerte-dev] Re: preview.xml not created In-Reply-To: <12C67A1EEC419342AF5E59DA31562C3F0D292A94C8@EXCHANGE1.ad.nottingham.ac.uk> References: <12C67A1EEC419342AF5E59DA31562C3F0D292A9269@EXCHANGE1.ad.nottingham.ac.uk> <53AA9DA2.30300@palepurple.co.uk> <12C67A1EEC419342AF5E59DA31562C3F0D292A9270@EXCHANGE1.ad.nottingham.ac.uk> <12C67A1EEC419342AF5E59DA31562C3F0D292A92F9@EXCHANGE1.ad.nottingham.ac.uk> <12C67A1EEC419342AF5E59DA31562C3F0D292A93D3@EXCHANGE1.ad.nottingham.ac.uk> <12C67A1EEC419342AF5E59DA31562C3F0D292A949F@EXCHANGE1.ad.nottingham.ac.uk> <12C67A1EEC419342AF5E59DA31562C3F0D292A94C8@EXCHANGE1.ad.nottingham.ac.uk> Message-ID: new template.php ends in a ajax call to the editor, so it's not one block of PHP but one process. New template ends, echoes out a template id, which the ajax gets, and then fires off the editor. If the editor isn't working, I am suspecting it might be the template is weird? Is it definitely Nottingham? Not one of the old mediainteraction ones or something? On Wed, Jun 25, 2014 at 4:12 PM, Julian Tenney < Julian.Tenney at nottingham.ac.uk> wrote: > Data.xml is being created, but what seems to fail is the editor opening. > Media folder is being created too. > > So it's the process of opening the editor that creates preview.xml? > > Come to think about it, I had issues myself in the same building on > Monday. I just refreshed the workspace and I was in business, didn't really > think about it. > > I found another user with the same problem: returning to the workspace > later, his projects are all there and editable now. > > Some sort of timing issue? The editor opening and data.xml hasn't been > created yet, so nothing to copy? > > -----Original Message----- > From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto: > xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Smith, John > Sent: 25 June 2014 16:09 > To: For Xerte technical developers > Subject: [Xerte-dev] Re: preview.xml not created > > Popup blocker doesn't usually stop preview.xml being copied, or at least > it's never affected me like that before... plus wouldn't the popup blocker > work for others too? > > Edit checks for the existence of preview.xml and either opens it or copies > the blank > > > https://github.com/thexerteproject/xerteonlinetoolkits/blob/f5ad19b03ed2c76ac29cbcd0ec5199360dc61d6a/modules/xerte/edit.php#L47 > > There are a few checks beforehand though that could error out (like > below). Check the response in Google Chrome to see if any errors are being > sent back i suppose: > > if(empty($row_username)) { > die("Invalid user id ?"); > } > > and > > if(!file_exists($preview) && file_exists($data)){ > copy($data, $preview); > chmod($preview, 0777); > } > > So it looks like data.xml needs to be there which comes from the > Nottingham template. Is data.xml being created in the folder? And a media > folder to hold the multimedia? > > If not then it looks like this is failing > > > https://github.com/thexerteproject/xerteonlinetoolkits/blob/f5ad19b03ed2c76ac29cbcd0ec5199360dc61d6a/modules/site/new_template.php#L76 > > It puts some debug messages into the logs so you might like to check there > to see if anything shows up... > > Regards, > > John Smith | Learning Technologist > Room A250, Govan Mbeki Building | School of Health & Life Sciences | > Glasgow Caledonian University Cowcaddens Road | Glasgow | G4 0BA > > Please address ALL support requests to hlsblt at gcu.ac.uk where one of the > School Learning Technologists will pick up the job. This will ensure that > all jobs are completed as promptly as possible. > ________________________________________ > From: xerte-dev-bounces at lists.nottingham.ac.uk [ > xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Julian Tenney [ > Julian.Tenney at nottingham.ac.uk] > Sent: 25 June 2014 15:51 > To: For Xerte technical developers > Subject: [Xerte-dev] Re: preview.xml not created > > No, preview is not created. I think this is maybe to do with popup > blocker, so edit never opens. > > What order do things happen in when a project is created? > > -----Original Message----- > From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto: > xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Smith, John > Sent: 25 June 2014 15:47 > To: For Xerte technical developers > Subject: [Xerte-dev] Re: preview.xml not created > > If the user creates a new LO and edit opens then do you see the blank, > default preview.xml being copied into in the newly created USER-FILES > folder? > > Regards, > > John Smith | Learning Technologist > Room A250, Govan Mbeki Building | School of Health & Life Sciences | > Glasgow Caledonian University Cowcaddens Road | Glasgow | G4 0BA > > Please address ALL support requests to hlsblt at gcu.ac.uk where one of the > School Learning Technologists will pick up the job. This will ensure that > all jobs are completed as promptly as possible. > ________________________________________ > From: xerte-dev-bounces at lists.nottingham.ac.uk [ > xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Julian Tenney [ > Julian.Tenney at nottingham.ac.uk] > Sent: 25 June 2014 14:27 > To: For Xerte technical developers (xerte-dev at lists.nottingham.ac.uk) > Subject: [Xerte-dev] Re: preview.xml not created > > We have only one of these usernames, dating from 2006, so predates > toolkits, and not a duplicate. > > -----Original Message----- > From: Tenney Julian > Sent: 25 June 2014 12:38 > To: For Xerte technical developers > Subject: RE: [Xerte-dev] Re: preview.xml not created > > No, that looks right. At least the folder has the correct user name in it. > > -----Original Message----- > From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto: > xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Julian Tenney > Sent: 25 June 2014 12:04 > To: For Xerte technical developers > Subject: [Xerte-dev] Re: preview.xml not created > > I'll check that. I didn't notice anything obvious though... > > -----Original Message----- > From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto: > xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Ron Mitchell > Sent: 25 June 2014 12:00 > To: For Xerte technical developers > Subject: [Xerte-dev] Re: preview.xml not created > > My hunch would be a username issue - check username matches the folders > being created including case sensitivity? > > Sent from my iPhone > > > On 25 Jun 2014, at 11:00, Julian Tenney > wrote: > > > > Why only for one user? > > > > -----Original Message----- > > From: xerte-dev-bounces at lists.nottingham.ac.uk > > [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of David > > Goodwin > > Sent: 25 June 2014 11:00 > > To: For Xerte technical developers > > Subject: [Xerte-dev] Re: preview.xml not created > > > > I have a feeling XOT may be mixing up it's saving of preview.xml and > > data.xml - in that it saves data.xml when it should save preview.xml > > etc > > > > David. > > > >> On 25/06/14 10:58, Julian Tenney wrote: > >> Got a user here who logs in, tries to create a LO, but preview .xml > >> isn't being created: consequently the editor has no LO icon in it > >> when it loads up. Other users on same computer work fine. Any idea > >> what's going on? > >> > >> cid:image004.jpg at 01CF905F.BC2E7D90 > >> > >> > >> > >> _______________________________________________ > >> Xerte-dev mailing list > >> Xerte-dev at lists.nottingham.ac.uk > >> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev > > > > -- > > Pale Purple Ltd > > > > PHP Web application development and support > > > > http://www.palepurple.co.uk > > @PalePurpleLtd > > 07792 380669 / 0845 0046746 > > > > _______________________________________________ > > 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 > > 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. > > > > 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. > > > > > > > > > > _______________________________________________ > 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 > 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. > > 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. > > > > > > Glasgow Caledonian University is a registered Scottish charity, number > SC021474 > > _______________________________________________ > 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 > 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. > > 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. > > > > Glasgow Caledonian University is a registered Scottish charity, number > SC021474 > > _______________________________________________ > 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 > 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. > > 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. > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Julian.Tenney at nottingham.ac.uk Wed Jun 25 16:50:35 2014 From: Julian.Tenney at nottingham.ac.uk (Julian Tenney) Date: Wed, 25 Jun 2014 16:50:35 +0100 Subject: [Xerte-dev] Re: preview.xml not created In-Reply-To: References: <12C67A1EEC419342AF5E59DA31562C3F0D292A9269@EXCHANGE1.ad.nottingham.ac.uk> <53AA9DA2.30300@palepurple.co.uk> <12C67A1EEC419342AF5E59DA31562C3F0D292A9270@EXCHANGE1.ad.nottingham.ac.uk> <12C67A1EEC419342AF5E59DA31562C3F0D292A92F9@EXCHANGE1.ad.nottingham.ac.uk> <12C67A1EEC419342AF5E59DA31562C3F0D292A93D3@EXCHANGE1.ad.nottingham.ac.uk> <12C67A1EEC419342AF5E59DA31562C3F0D292A949F@EXCHANGE1.ad.nottingham.ac.uk> <12C67A1EEC419342AF5E59DA31562C3F0D292A94C8@EXCHANGE1.ad.nottingham.ac.uk> Message-ID: <12C67A1EEC419342AF5E59DA31562C3F0D292A9504@EXCHANGE1.ad.nottingham.ac.uk> No, no weird templates, it?s Nottingham for sure. I?m sure what you say answers my question ?is it synchronous or not?? But I don?t know whether it means ?yes? or ?no?. From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Pat L (pgogy) Sent: 25 June 2014 16:47 To: For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created new template.php ends in a ajax call to the editor, so it's not one block of PHP but one process. New template ends, echoes out a template id, which the ajax gets, and then fires off the editor. If the editor isn't working, I am suspecting it might be the template is weird? Is it definitely Nottingham? Not one of the old mediainteraction ones or something? On Wed, Jun 25, 2014 at 4:12 PM, Julian Tenney > wrote: Data.xml is being created, but what seems to fail is the editor opening. Media folder is being created too. So it's the process of opening the editor that creates preview.xml? Come to think about it, I had issues myself in the same building on Monday. I just refreshed the workspace and I was in business, didn't really think about it. I found another user with the same problem: returning to the workspace later, his projects are all there and editable now. Some sort of timing issue? The editor opening and data.xml hasn't been created yet, so nothing to copy? -----Original Message----- From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Smith, John Sent: 25 June 2014 16:09 To: For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created Popup blocker doesn't usually stop preview.xml being copied, or at least it's never affected me like that before... plus wouldn't the popup blocker work for others too? Edit checks for the existence of preview.xml and either opens it or copies the blank https://github.com/thexerteproject/xerteonlinetoolkits/blob/f5ad19b03ed2c76ac29cbcd0ec5199360dc61d6a/modules/xerte/edit.php#L47 There are a few checks beforehand though that could error out (like below). Check the response in Google Chrome to see if any errors are being sent back i suppose: if(empty($row_username)) { die("Invalid user id ?"); } and if(!file_exists($preview) && file_exists($data)){ copy($data, $preview); chmod($preview, 0777); } So it looks like data.xml needs to be there which comes from the Nottingham template. Is data.xml being created in the folder? And a media folder to hold the multimedia? If not then it looks like this is failing https://github.com/thexerteproject/xerteonlinetoolkits/blob/f5ad19b03ed2c76ac29cbcd0ec5199360dc61d6a/modules/site/new_template.php#L76 It puts some debug messages into the logs so you might like to check there to see if anything shows up... Regards, John Smith | Learning Technologist Room A250, Govan Mbeki Building | School of Health & Life Sciences | Glasgow Caledonian University Cowcaddens Road | Glasgow | G4 0BA Please address ALL support requests to hlsblt at gcu.ac.uk where one of the School Learning Technologists will pick up the job. This will ensure that all jobs are completed as promptly as possible. ________________________________________ From: xerte-dev-bounces at lists.nottingham.ac.uk [xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Julian Tenney [Julian.Tenney at nottingham.ac.uk] Sent: 25 June 2014 15:51 To: For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created No, preview is not created. I think this is maybe to do with popup blocker, so edit never opens. What order do things happen in when a project is created? -----Original Message----- From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Smith, John Sent: 25 June 2014 15:47 To: For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created If the user creates a new LO and edit opens then do you see the blank, default preview.xml being copied into in the newly created USER-FILES folder? Regards, John Smith | Learning Technologist Room A250, Govan Mbeki Building | School of Health & Life Sciences | Glasgow Caledonian University Cowcaddens Road | Glasgow | G4 0BA Please address ALL support requests to hlsblt at gcu.ac.uk where one of the School Learning Technologists will pick up the job. This will ensure that all jobs are completed as promptly as possible. ________________________________________ From: xerte-dev-bounces at lists.nottingham.ac.uk [xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Julian Tenney [Julian.Tenney at nottingham.ac.uk] Sent: 25 June 2014 14:27 To: For Xerte technical developers (xerte-dev at lists.nottingham.ac.uk) Subject: [Xerte-dev] Re: preview.xml not created We have only one of these usernames, dating from 2006, so predates toolkits, and not a duplicate. -----Original Message----- From: Tenney Julian Sent: 25 June 2014 12:38 To: For Xerte technical developers Subject: RE: [Xerte-dev] Re: preview.xml not created No, that looks right. At least the folder has the correct user name in it. -----Original Message----- From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Julian Tenney Sent: 25 June 2014 12:04 To: For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created I'll check that. I didn't notice anything obvious though... -----Original Message----- From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Ron Mitchell Sent: 25 June 2014 12:00 To: For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created My hunch would be a username issue - check username matches the folders being created including case sensitivity? Sent from my iPhone > On 25 Jun 2014, at 11:00, Julian Tenney > wrote: > > Why only for one user? > > -----Original Message----- > From: xerte-dev-bounces at lists.nottingham.ac.uk > [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of David > Goodwin > Sent: 25 June 2014 11:00 > To: For Xerte technical developers > Subject: [Xerte-dev] Re: preview.xml not created > > I have a feeling XOT may be mixing up it's saving of preview.xml and > data.xml - in that it saves data.xml when it should save preview.xml > etc > > David. > >> On 25/06/14 10:58, Julian Tenney wrote: >> Got a user here who logs in, tries to create a LO, but preview .xml >> isn't being created: consequently the editor has no LO icon in it >> when it loads up. Other users on same computer work fine. Any idea >> what's going on? >> >> cid:image004.jpg at 01CF905F.BC2E7D90 >> >> >> >> _______________________________________________ >> Xerte-dev mailing list >> Xerte-dev at lists.nottingham.ac.uk >> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev > > -- > Pale Purple Ltd > > PHP Web application development and support > > http://www.palepurple.co.uk > @PalePurpleLtd > 07792 380669 / 0845 0046746 > > _______________________________________________ > 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 > 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. > > 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. > > > > _______________________________________________ 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 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. 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. Glasgow Caledonian University is a registered Scottish charity, number SC021474 _______________________________________________ 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 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. 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. Glasgow Caledonian University is a registered Scottish charity, number SC021474 _______________________________________________ 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 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. 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. -------------- next part -------------- An HTML attachment was scrubbed... URL: From J.J.Smith at gcu.ac.uk Wed Jun 25 16:46:47 2014 From: J.J.Smith at gcu.ac.uk (Smith, John) Date: Wed, 25 Jun 2014 16:46:47 +0100 Subject: [Xerte-dev] Re: preview.xml not created In-Reply-To: <12C67A1EEC419342AF5E59DA31562C3F0D292A94F8@EXCHANGE1.ad.nottingham.ac.uk> References: <12C67A1EEC419342AF5E59DA31562C3F0D292A9269@EXCHANGE1.ad.nottingham.ac.uk> <53AA9DA2.30300@palepurple.co.uk> <12C67A1EEC419342AF5E59DA31562C3F0D292A9270@EXCHANGE1.ad.nottingham.ac.uk> <12C67A1EEC419342AF5E59DA31562C3F0D292A92F9@EXCHANGE1.ad.nottingham.ac.uk>, <12C67A1EEC419342AF5E59DA31562C3F0D292A93D3@EXCHANGE1.ad.nottingham.ac.uk> , <12C67A1EEC419342AF5E59DA31562C3F0D292A949F@EXCHANGE1.ad.nottingham.ac.uk> <12C67A1EEC419342AF5E59DA31562C3F0D292A94C8@EXCHANGE1.ad.nottingham.ac.uk>, <12C67A1EEC419342AF5E59DA31562C3F0D292A94F8@EXCHANGE1.ad.nottingham.ac.uk> Message-ID: I don't know for sure (Pat or Tom might though offhand) but I can try to trace the route later tonight. I wouldn't expect them to be asynchronous though... So when it happens, if you refresh the editor then does the editor opens successfully with the blank LO? Do you see a 404 error in the network traffic for the editor at first when it happens? Regards, John Smith | Learning Technologist Room A250, Govan Mbeki Building | School of Health & Life Sciences | Glasgow Caledonian University Cowcaddens Road | Glasgow | G4 0BA Please address ALL support requests to hlsblt at gcu.ac.uk where one of the School Learning Technologists will pick up the job. This will ensure that all jobs are completed as promptly as possible. ________________________________________ From: xerte-dev-bounces at lists.nottingham.ac.uk [xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Julian Tenney [Julian.Tenney at nottingham.ac.uk] Sent: 25 June 2014 16:43 To: For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created Are all the file creation / copying methods synchronous? Could it be that data.xml hasn't been copied when the editor tries to open -and then in turn duplicate it into preview.xml? -----Original Message----- From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Julian Tenney Sent: 25 June 2014 16:13 To: For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created Data.xml is being created, but what seems to fail is the editor opening. Media folder is being created too. So it's the process of opening the editor that creates preview.xml? Come to think about it, I had issues myself in the same building on Monday. I just refreshed the workspace and I was in business, didn't really think about it. I found another user with the same problem: returning to the workspace later, his projects are all there and editable now. Some sort of timing issue? The editor opening and data.xml hasn't been created yet, so nothing to copy? -----Original Message----- From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Smith, John Sent: 25 June 2014 16:09 To: For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created Popup blocker doesn't usually stop preview.xml being copied, or at least it's never affected me like that before... plus wouldn't the popup blocker work for others too? Edit checks for the existence of preview.xml and either opens it or copies the blank https://github.com/thexerteproject/xerteonlinetoolkits/blob/f5ad19b03ed2c76ac29cbcd0ec5199360dc61d6a/modules/xerte/edit.php#L47 There are a few checks beforehand though that could error out (like below). Check the response in Google Chrome to see if any errors are being sent back i suppose: if(empty($row_username)) { die("Invalid user id ?"); } and if(!file_exists($preview) && file_exists($data)){ copy($data, $preview); chmod($preview, 0777); } So it looks like data.xml needs to be there which comes from the Nottingham template. Is data.xml being created in the folder? And a media folder to hold the multimedia? If not then it looks like this is failing https://github.com/thexerteproject/xerteonlinetoolkits/blob/f5ad19b03ed2c76ac29cbcd0ec5199360dc61d6a/modules/site/new_template.php#L76 It puts some debug messages into the logs so you might like to check there to see if anything shows up... Regards, John Smith | Learning Technologist Room A250, Govan Mbeki Building | School of Health & Life Sciences | Glasgow Caledonian University Cowcaddens Road | Glasgow | G4 0BA Please address ALL support requests to hlsblt at gcu.ac.uk where one of the School Learning Technologists will pick up the job. This will ensure that all jobs are completed as promptly as possible. ________________________________________ From: xerte-dev-bounces at lists.nottingham.ac.uk [xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Julian Tenney [Julian.Tenney at nottingham.ac.uk] Sent: 25 June 2014 15:51 To: For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created No, preview is not created. I think this is maybe to do with popup blocker, so edit never opens. What order do things happen in when a project is created? -----Original Message----- From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Smith, John Sent: 25 June 2014 15:47 To: For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created If the user creates a new LO and edit opens then do you see the blank, default preview.xml being copied into in the newly created USER-FILES folder? Regards, John Smith | Learning Technologist Room A250, Govan Mbeki Building | School of Health & Life Sciences | Glasgow Caledonian University Cowcaddens Road | Glasgow | G4 0BA Please address ALL support requests to hlsblt at gcu.ac.uk where one of the School Learning Technologists will pick up the job. This will ensure that all jobs are completed as promptly as possible. ________________________________________ From: xerte-dev-bounces at lists.nottingham.ac.uk [xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Julian Tenney [Julian.Tenney at nottingham.ac.uk] Sent: 25 June 2014 14:27 To: For Xerte technical developers (xerte-dev at lists.nottingham.ac.uk) Subject: [Xerte-dev] Re: preview.xml not created We have only one of these usernames, dating from 2006, so predates toolkits, and not a duplicate. -----Original Message----- From: Tenney Julian Sent: 25 June 2014 12:38 To: For Xerte technical developers Subject: RE: [Xerte-dev] Re: preview.xml not created No, that looks right. At least the folder has the correct user name in it. -----Original Message----- From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Julian Tenney Sent: 25 June 2014 12:04 To: For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created I'll check that. I didn't notice anything obvious though... -----Original Message----- From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Ron Mitchell Sent: 25 June 2014 12:00 To: For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created My hunch would be a username issue - check username matches the folders being created including case sensitivity? Sent from my iPhone > On 25 Jun 2014, at 11:00, Julian Tenney wrote: > > Why only for one user? > > -----Original Message----- > From: xerte-dev-bounces at lists.nottingham.ac.uk > [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of David > Goodwin > Sent: 25 June 2014 11:00 > To: For Xerte technical developers > Subject: [Xerte-dev] Re: preview.xml not created > > I have a feeling XOT may be mixing up it's saving of preview.xml and > data.xml - in that it saves data.xml when it should save preview.xml > etc > > David. > >> On 25/06/14 10:58, Julian Tenney wrote: >> Got a user here who logs in, tries to create a LO, but preview .xml >> isn't being created: consequently the editor has no LO icon in it >> when it loads up. Other users on same computer work fine. Any idea >> what's going on? >> >> cid:image004.jpg at 01CF905F.BC2E7D90 >> >> >> >> _______________________________________________ >> Xerte-dev mailing list >> Xerte-dev at lists.nottingham.ac.uk >> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev > > -- > Pale Purple Ltd > > PHP Web application development and support > > http://www.palepurple.co.uk > @PalePurpleLtd > 07792 380669 / 0845 0046746 > > _______________________________________________ > 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 > 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. > > 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. > > > > _______________________________________________ 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 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. 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. Glasgow Caledonian University is a registered Scottish charity, number SC021474 _______________________________________________ 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 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. 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. Glasgow Caledonian University is a registered Scottish charity, number SC021474 _______________________________________________ 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 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. 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. Glasgow Caledonian University is a registered Scottish charity, number SC021474 From Julian.Tenney at nottingham.ac.uk Wed Jun 25 16:53:13 2014 From: Julian.Tenney at nottingham.ac.uk (Julian Tenney) Date: Wed, 25 Jun 2014 16:53:13 +0100 Subject: [Xerte-dev] Re: preview.xml not created In-Reply-To: References: <12C67A1EEC419342AF5E59DA31562C3F0D292A9269@EXCHANGE1.ad.nottingham.ac.uk> <53AA9DA2.30300@palepurple.co.uk> <12C67A1EEC419342AF5E59DA31562C3F0D292A9270@EXCHANGE1.ad.nottingham.ac.uk> <12C67A1EEC419342AF5E59DA31562C3F0D292A92F9@EXCHANGE1.ad.nottingham.ac.uk>, <12C67A1EEC419342AF5E59DA31562C3F0D292A93D3@EXCHANGE1.ad.nottingham.ac.uk> , <12C67A1EEC419342AF5E59DA31562C3F0D292A949F@EXCHANGE1.ad.nottingham.ac.uk> <12C67A1EEC419342AF5E59DA31562C3F0D292A94C8@EXCHANGE1.ad.nottingham.ac.uk>, <12C67A1EEC419342AF5E59DA31562C3F0D292A94F8@EXCHANGE1.ad.nottingham.ac.uk> Message-ID: <12C67A1EEC419342AF5E59DA31562C3F0D292A950B@EXCHANGE1.ad.nottingham.ac.uk> No, I could then see the LOs in the workspace and select and open them. -----Original Message----- From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Smith, John Sent: 25 June 2014 16:47 To: For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created I don't know for sure (Pat or Tom might though offhand) but I can try to trace the route later tonight. I wouldn't expect them to be asynchronous though... So when it happens, if you refresh the editor then does the editor opens successfully with the blank LO? Do you see a 404 error in the network traffic for the editor at first when it happens? Regards, John Smith | Learning Technologist Room A250, Govan Mbeki Building | School of Health & Life Sciences | Glasgow Caledonian University Cowcaddens Road | Glasgow | G4 0BA Please address ALL support requests to hlsblt at gcu.ac.uk where one of the School Learning Technologists will pick up the job. This will ensure that all jobs are completed as promptly as possible. ________________________________________ From: xerte-dev-bounces at lists.nottingham.ac.uk [xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Julian Tenney [Julian.Tenney at nottingham.ac.uk] Sent: 25 June 2014 16:43 To: For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created Are all the file creation / copying methods synchronous? Could it be that data.xml hasn't been copied when the editor tries to open -and then in turn duplicate it into preview.xml? -----Original Message----- From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Julian Tenney Sent: 25 June 2014 16:13 To: For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created Data.xml is being created, but what seems to fail is the editor opening. Media folder is being created too. So it's the process of opening the editor that creates preview.xml? Come to think about it, I had issues myself in the same building on Monday. I just refreshed the workspace and I was in business, didn't really think about it. I found another user with the same problem: returning to the workspace later, his projects are all there and editable now. Some sort of timing issue? The editor opening and data.xml hasn't been created yet, so nothing to copy? -----Original Message----- From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Smith, John Sent: 25 June 2014 16:09 To: For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created Popup blocker doesn't usually stop preview.xml being copied, or at least it's never affected me like that before... plus wouldn't the popup blocker work for others too? Edit checks for the existence of preview.xml and either opens it or copies the blank https://github.com/thexerteproject/xerteonlinetoolkits/blob/f5ad19b03ed2c76ac29cbcd0ec5199360dc61d6a/modules/xerte/edit.php#L47 There are a few checks beforehand though that could error out (like below). Check the response in Google Chrome to see if any errors are being sent back i suppose: if(empty($row_username)) { die("Invalid user id ?"); } and if(!file_exists($preview) && file_exists($data)){ copy($data, $preview); chmod($preview, 0777); } So it looks like data.xml needs to be there which comes from the Nottingham template. Is data.xml being created in the folder? And a media folder to hold the multimedia? If not then it looks like this is failing https://github.com/thexerteproject/xerteonlinetoolkits/blob/f5ad19b03ed2c76ac29cbcd0ec5199360dc61d6a/modules/site/new_template.php#L76 It puts some debug messages into the logs so you might like to check there to see if anything shows up... Regards, John Smith | Learning Technologist Room A250, Govan Mbeki Building | School of Health & Life Sciences | Glasgow Caledonian University Cowcaddens Road | Glasgow | G4 0BA Please address ALL support requests to hlsblt at gcu.ac.uk where one of the School Learning Technologists will pick up the job. This will ensure that all jobs are completed as promptly as possible. ________________________________________ From: xerte-dev-bounces at lists.nottingham.ac.uk [xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Julian Tenney [Julian.Tenney at nottingham.ac.uk] Sent: 25 June 2014 15:51 To: For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created No, preview is not created. I think this is maybe to do with popup blocker, so edit never opens. What order do things happen in when a project is created? -----Original Message----- From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Smith, John Sent: 25 June 2014 15:47 To: For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created If the user creates a new LO and edit opens then do you see the blank, default preview.xml being copied into in the newly created USER-FILES folder? Regards, John Smith | Learning Technologist Room A250, Govan Mbeki Building | School of Health & Life Sciences | Glasgow Caledonian University Cowcaddens Road | Glasgow | G4 0BA Please address ALL support requests to hlsblt at gcu.ac.uk where one of the School Learning Technologists will pick up the job. This will ensure that all jobs are completed as promptly as possible. ________________________________________ From: xerte-dev-bounces at lists.nottingham.ac.uk [xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Julian Tenney [Julian.Tenney at nottingham.ac.uk] Sent: 25 June 2014 14:27 To: For Xerte technical developers (xerte-dev at lists.nottingham.ac.uk) Subject: [Xerte-dev] Re: preview.xml not created We have only one of these usernames, dating from 2006, so predates toolkits, and not a duplicate. -----Original Message----- From: Tenney Julian Sent: 25 June 2014 12:38 To: For Xerte technical developers Subject: RE: [Xerte-dev] Re: preview.xml not created No, that looks right. At least the folder has the correct user name in it. -----Original Message----- From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Julian Tenney Sent: 25 June 2014 12:04 To: For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created I'll check that. I didn't notice anything obvious though... -----Original Message----- From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Ron Mitchell Sent: 25 June 2014 12:00 To: For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created My hunch would be a username issue - check username matches the folders being created including case sensitivity? Sent from my iPhone > On 25 Jun 2014, at 11:00, Julian Tenney wrote: > > Why only for one user? > > -----Original Message----- > From: xerte-dev-bounces at lists.nottingham.ac.uk > [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of David > Goodwin > Sent: 25 June 2014 11:00 > To: For Xerte technical developers > Subject: [Xerte-dev] Re: preview.xml not created > > I have a feeling XOT may be mixing up it's saving of preview.xml and > data.xml - in that it saves data.xml when it should save preview.xml > etc > > David. > >> On 25/06/14 10:58, Julian Tenney wrote: >> Got a user here who logs in, tries to create a LO, but preview .xml >> isn't being created: consequently the editor has no LO icon in it >> when it loads up. Other users on same computer work fine. Any idea >> what's going on? >> >> cid:image004.jpg at 01CF905F.BC2E7D90 >> >> >> >> _______________________________________________ >> Xerte-dev mailing list >> Xerte-dev at lists.nottingham.ac.uk >> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev > > -- > Pale Purple Ltd > > PHP Web application development and support > > http://www.palepurple.co.uk > @PalePurpleLtd > 07792 380669 / 0845 0046746 > > _______________________________________________ > 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 > 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. > > 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. > > > > _______________________________________________ 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 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. 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. Glasgow Caledonian University is a registered Scottish charity, number SC021474 _______________________________________________ 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 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. 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. Glasgow Caledonian University is a registered Scottish charity, number SC021474 _______________________________________________ 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 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. 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. Glasgow Caledonian University is a registered Scottish charity, number SC021474 _______________________________________________ Xerte-dev mailing list Xerte-dev at lists.nottingham.ac.uk http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev From J.J.Smith at gcu.ac.uk Wed Jun 25 17:11:53 2014 From: J.J.Smith at gcu.ac.uk (Smith, John) Date: Wed, 25 Jun 2014 17:11:53 +0100 Subject: [Xerte-dev] Re: preview.xml not created Message-ID: <0wfws3cqnl5udbrnoc09ra4y.1403712712912@email.android.com> I think what Pat is saying confirms that it can only be synchronous. You click new and give it a name An ajax call is made to new_template When it returns with an id then that id is used to instruct the editor which LO to open. By the time the id returns, data.xml and media/ should be copied. Edit looks to see if there is a preview.xml and if not then it copies data.xml to preview.xml and then loads preview.xml Regards John Smith Learning Technologist School of Health and Life Sciences Sent from Samsung Galaxy SII Julian Tenney wrote: No, no weird templates, it?s Nottingham for sure. I?m sure what you say answers my question ?is it synchronous or not?? But I don?t know whether it means ?yes? or ?no?. From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Pat L (pgogy) Sent: 25 June 2014 16:47 To: For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created new template.php ends in a ajax call to the editor, so it's not one block of PHP but one process. New template ends, echoes out a template id, which the ajax gets, and then fires off the editor. If the editor isn't working, I am suspecting it might be the template is weird? Is it definitely Nottingham? Not one of the old mediainteraction ones or something? On Wed, Jun 25, 2014 at 4:12 PM, Julian Tenney > wrote: Data.xml is being created, but what seems to fail is the editor opening. Media folder is being created too. So it's the process of opening the editor that creates preview.xml? Come to think about it, I had issues myself in the same building on Monday. I just refreshed the workspace and I was in business, didn't really think about it. I found another user with the same problem: returning to the workspace later, his projects are all there and editable now. Some sort of timing issue? The editor opening and data.xml hasn't been created yet, so nothing to copy? -----Original Message----- From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Smith, John Sent: 25 June 2014 16:09 To: For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created Popup blocker doesn't usually stop preview.xml being copied, or at least it's never affected me like that before... plus wouldn't the popup blocker work for others too? Edit checks for the existence of preview.xml and either opens it or copies the blank https://github.com/thexerteproject/xerteonlinetoolkits/blob/f5ad19b03ed2c76ac29cbcd0ec5199360dc61d6a/modules/xerte/edit.php#L47 There are a few checks beforehand though that could error out (like below). Check the response in Google Chrome to see if any errors are being sent back i suppose: if(empty($row_username)) { die("Invalid user id ?"); } and if(!file_exists($preview) && file_exists($data)){ copy($data, $preview); chmod($preview, 0777); } So it looks like data.xml needs to be there which comes from the Nottingham template. Is data.xml being created in the folder? And a media folder to hold the multimedia? If not then it looks like this is failing https://github.com/thexerteproject/xerteonlinetoolkits/blob/f5ad19b03ed2c76ac29cbcd0ec5199360dc61d6a/modules/site/new_template.php#L76 It puts some debug messages into the logs so you might like to check there to see if anything shows up... Regards, John Smith | Learning Technologist Room A250, Govan Mbeki Building | School of Health & Life Sciences | Glasgow Caledonian University Cowcaddens Road | Glasgow | G4 0BA Please address ALL support requests to hlsblt at gcu.ac.uk where one of the School Learning Technologists will pick up the job. This will ensure that all jobs are completed as promptly as possible. ________________________________________ From: xerte-dev-bounces at lists.nottingham.ac.uk [xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Julian Tenney [Julian.Tenney at nottingham.ac.uk] Sent: 25 June 2014 15:51 To: For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created No, preview is not created. I think this is maybe to do with popup blocker, so edit never opens. What order do things happen in when a project is created? -----Original Message----- From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Smith, John Sent: 25 June 2014 15:47 To: For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created If the user creates a new LO and edit opens then do you see the blank, default preview.xml being copied into in the newly created USER-FILES folder? Regards, John Smith | Learning Technologist Room A250, Govan Mbeki Building | School of Health & Life Sciences | Glasgow Caledonian University Cowcaddens Road | Glasgow | G4 0BA Please address ALL support requests to hlsblt at gcu.ac.uk where one of the School Learning Technologists will pick up the job. This will ensure that all jobs are completed as promptly as possible. ________________________________________ From: xerte-dev-bounces at lists.nottingham.ac.uk [xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Julian Tenney [Julian.Tenney at nottingham.ac.uk] Sent: 25 June 2014 14:27 To: For Xerte technical developers (xerte-dev at lists.nottingham.ac.uk) Subject: [Xerte-dev] Re: preview.xml not created We have only one of these usernames, dating from 2006, so predates toolkits, and not a duplicate. -----Original Message----- From: Tenney Julian Sent: 25 June 2014 12:38 To: For Xerte technical developers Subject: RE: [Xerte-dev] Re: preview.xml not created No, that looks right. At least the folder has the correct user name in it. -----Original Message----- From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Julian Tenney Sent: 25 June 2014 12:04 To: For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created I'll check that. I didn't notice anything obvious though... -----Original Message----- From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Ron Mitchell Sent: 25 June 2014 12:00 To: For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created My hunch would be a username issue - check username matches the folders being created including case sensitivity? Sent from my iPhone > On 25 Jun 2014, at 11:00, Julian Tenney > wrote: > > Why only for one user? > > -----Original Message----- > From: xerte-dev-bounces at lists.nottingham.ac.uk > [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of David > Goodwin > Sent: 25 June 2014 11:00 > To: For Xerte technical developers > Subject: [Xerte-dev] Re: preview.xml not created > > I have a feeling XOT may be mixing up it's saving of preview.xml and > data.xml - in that it saves data.xml when it should save preview.xml > etc > > David. > >> On 25/06/14 10:58, Julian Tenney wrote: >> Got a user here who logs in, tries to create a LO, but preview .xml >> isn't being created: consequently the editor has no LO icon in it >> when it loads up. Other users on same computer work fine. Any idea >> what's going on? >> >> cid:image004.jpg at 01CF905F.BC2E7D90 >> >> >> >> _______________________________________________ >> Xerte-dev mailing list >> Xerte-dev at lists.nottingham.ac.uk >> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev > > -- > Pale Purple Ltd > > PHP Web application development and support > > http://www.palepurple.co.uk > @PalePurpleLtd > 07792 380669 / 0845 0046746 > > _______________________________________________ > 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 > 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. > > 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. > > > > _______________________________________________ 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 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. 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. Glasgow Caledonian University is a registered Scottish charity, number SC021474 _______________________________________________ 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 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. 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. Glasgow Caledonian University is a registered Scottish charity, number SC021474 _______________________________________________ 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 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. 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. Glasgow Caledonian University is a registered Scottish charity, number SC021474 From xerte at pgogywebstuff.com Wed Jun 25 17:37:30 2014 From: xerte at pgogywebstuff.com (Pat L (pgogy)) Date: Wed, 25 Jun 2014 17:37:30 +0100 Subject: [Xerte-dev] Re: preview.xml not created In-Reply-To: <0wfws3cqnl5udbrnoc09ra4y.1403712712912@email.android.com> References: <0wfws3cqnl5udbrnoc09ra4y.1403712712912@email.android.com> Message-ID: Sorry, slow list is putting me out of sync (no pun intended) John is correct. The only issue is if the PHP is threaded maybe and isn't waiting for functions to end? But I assume this isn't the case. You could try creating lots of new templates and see how often it occurs. Does management.php give you scope to create a template as them? I guess it doesn't cause problems with any file system since? Are the logging on in the UK? Over a VPN? On Wed, Jun 25, 2014 at 5:11 PM, Smith, John wrote: > I think what Pat is saying confirms that it can only be synchronous. > > You click new and give it a name > > An ajax call is made to new_template > > When it returns with an id then that id is used to instruct the editor > which LO to open. > > By the time the id returns, data.xml and media/ should be copied. Edit > looks to see if there is a preview.xml and if not then it copies data.xml > to preview.xml and then loads preview.xml > > Regards > > John Smith > Learning Technologist > School of Health and Life Sciences > > Sent from Samsung Galaxy SII > > > > Julian Tenney wrote: > > > No, no weird templates, it?s Nottingham for sure. > > I?m sure what you say answers my question ?is it synchronous or not?? But > I don?t know whether it means ?yes? or ?no?. > > From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto: > xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Pat L (pgogy) > Sent: 25 June 2014 16:47 > To: For Xerte technical developers > Subject: [Xerte-dev] Re: preview.xml not created > > new template.php ends in a ajax call to the editor, so it's not one block > of PHP but one process. New template ends, echoes out a template id, which > the ajax gets, and then fires off the editor. > > If the editor isn't working, I am suspecting it might be the template is > weird? Is it definitely Nottingham? Not one of the old mediainteraction > ones or something? > > On Wed, Jun 25, 2014 at 4:12 PM, Julian Tenney < > Julian.Tenney at nottingham.ac.uk> > wrote: > Data.xml is being created, but what seems to fail is the editor opening. > Media folder is being created too. > > So it's the process of opening the editor that creates preview.xml? > > Come to think about it, I had issues myself in the same building on > Monday. I just refreshed the workspace and I was in business, didn't really > think about it. > > I found another user with the same problem: returning to the workspace > later, his projects are all there and editable now. > > Some sort of timing issue? The editor opening and data.xml hasn't been > created yet, so nothing to copy? > > -----Original Message----- > From: xerte-dev-bounces at lists.nottingham.ac.uk xerte-dev-bounces at lists.nottingham.ac.uk> [mailto: > xerte-dev-bounces at lists.nottingham.ac.uk xerte-dev-bounces at lists.nottingham.ac.uk>] On Behalf Of Smith, John > Sent: 25 June 2014 16:09 > To: For Xerte technical developers > Subject: [Xerte-dev] Re: preview.xml not created > > Popup blocker doesn't usually stop preview.xml being copied, or at least > it's never affected me like that before... plus wouldn't the popup blocker > work for others too? > > Edit checks for the existence of preview.xml and either opens it or copies > the blank > > > https://github.com/thexerteproject/xerteonlinetoolkits/blob/f5ad19b03ed2c76ac29cbcd0ec5199360dc61d6a/modules/xerte/edit.php#L47 > > There are a few checks beforehand though that could error out (like > below). Check the response in Google Chrome to see if any errors are being > sent back i suppose: > > if(empty($row_username)) { > die("Invalid user id ?"); > } > > and > > if(!file_exists($preview) && file_exists($data)){ > copy($data, $preview); > chmod($preview, 0777); > } > > So it looks like data.xml needs to be there which comes from the > Nottingham template. Is data.xml being created in the folder? And a media > folder to hold the multimedia? > > If not then it looks like this is failing > > > https://github.com/thexerteproject/xerteonlinetoolkits/blob/f5ad19b03ed2c76ac29cbcd0ec5199360dc61d6a/modules/site/new_template.php#L76 > > It puts some debug messages into the logs so you might like to check there > to see if anything shows up... > > Regards, > > John Smith | Learning Technologist > Room A250, Govan Mbeki Building | School of Health & Life Sciences | > Glasgow Caledonian University Cowcaddens Road | Glasgow | G4 0BA > > Please address ALL support requests to hlsblt at gcu.ac.uk hlsblt at gcu.ac.uk> where one of the School Learning Technologists will > pick up the job. This will ensure that all jobs are completed as promptly > as possible. > ________________________________________ > From: xerte-dev-bounces at lists.nottingham.ac.uk xerte-dev-bounces at lists.nottingham.ac.uk> [ > xerte-dev-bounces at lists.nottingham.ac.uk xerte-dev-bounces at lists.nottingham.ac.uk>] On Behalf Of Julian Tenney [ > Julian.Tenney at nottingham.ac.uk] > Sent: 25 June 2014 15:51 > To: For Xerte technical developers > Subject: [Xerte-dev] Re: preview.xml not created > > No, preview is not created. I think this is maybe to do with popup > blocker, so edit never opens. > > What order do things happen in when a project is created? > > -----Original Message----- > From: xerte-dev-bounces at lists.nottingham.ac.uk xerte-dev-bounces at lists.nottingham.ac.uk> [mailto: > xerte-dev-bounces at lists.nottingham.ac.uk xerte-dev-bounces at lists.nottingham.ac.uk>] On Behalf Of Smith, John > Sent: 25 June 2014 15:47 > To: For Xerte technical developers > Subject: [Xerte-dev] Re: preview.xml not created > > If the user creates a new LO and edit opens then do you see the blank, > default preview.xml being copied into in the newly created USER-FILES > folder? > > Regards, > > John Smith | Learning Technologist > Room A250, Govan Mbeki Building | School of Health & Life Sciences | > Glasgow Caledonian University Cowcaddens Road | Glasgow | G4 0BA > > Please address ALL support requests to hlsblt at gcu.ac.uk hlsblt at gcu.ac.uk> where one of the School Learning Technologists will > pick up the job. This will ensure that all jobs are completed as promptly > as possible. > ________________________________________ > From: xerte-dev-bounces at lists.nottingham.ac.uk xerte-dev-bounces at lists.nottingham.ac.uk> [ > xerte-dev-bounces at lists.nottingham.ac.uk xerte-dev-bounces at lists.nottingham.ac.uk>] On Behalf Of Julian Tenney [ > Julian.Tenney at nottingham.ac.uk] > Sent: 25 June 2014 14:27 > To: For Xerte technical developers (xerte-dev at lists.nottingham.ac.uk > ) > Subject: [Xerte-dev] Re: preview.xml not created > > We have only one of these usernames, dating from 2006, so predates > toolkits, and not a duplicate. > > -----Original Message----- > From: Tenney Julian > Sent: 25 June 2014 12:38 > To: For Xerte technical developers > Subject: RE: [Xerte-dev] Re: preview.xml not created > > No, that looks right. At least the folder has the correct user name in it. > > -----Original Message----- > From: xerte-dev-bounces at lists.nottingham.ac.uk xerte-dev-bounces at lists.nottingham.ac.uk> [mailto: > xerte-dev-bounces at lists.nottingham.ac.uk xerte-dev-bounces at lists.nottingham.ac.uk>] On Behalf Of Julian Tenney > Sent: 25 June 2014 12:04 > To: For Xerte technical developers > Subject: [Xerte-dev] Re: preview.xml not created > > I'll check that. I didn't notice anything obvious though... > > -----Original Message----- > From: xerte-dev-bounces at lists.nottingham.ac.uk xerte-dev-bounces at lists.nottingham.ac.uk> [mailto: > xerte-dev-bounces at lists.nottingham.ac.uk xerte-dev-bounces at lists.nottingham.ac.uk>] On Behalf Of Ron Mitchell > Sent: 25 June 2014 12:00 > To: For Xerte technical developers > Subject: [Xerte-dev] Re: preview.xml not created > > My hunch would be a username issue - check username matches the folders > being created including case sensitivity? > > Sent from my iPhone > > > On 25 Jun 2014, at 11:00, Julian Tenney > wrote: > > > > Why only for one user? > > > > -----Original Message----- > > From: xerte-dev-bounces at lists.nottingham.ac.uk xerte-dev-bounces at lists.nottingham.ac.uk> > > [mailto:xerte-dev-bounces at lists.nottingham.ac.uk xerte-dev-bounces at lists.nottingham.ac.uk>] On Behalf Of David > > Goodwin > > Sent: 25 June 2014 11:00 > > To: For Xerte technical developers > > Subject: [Xerte-dev] Re: preview.xml not created > > > > I have a feeling XOT may be mixing up it's saving of preview.xml and > > data.xml - in that it saves data.xml when it should save preview.xml > > etc > > > > David. > > > >> On 25/06/14 10:58, Julian Tenney wrote: > >> Got a user here who logs in, tries to create a LO, but preview .xml > >> isn't being created: consequently the editor has no LO icon in it > >> when it loads up. Other users on same computer work fine. Any idea > >> what's going on? > >> > >> cid:image004.jpg at 01CF905F.BC2E7D90 > >> > >> > >> > >> _______________________________________________ > >> Xerte-dev mailing list > >> Xerte-dev at lists.nottingham.ac.uk Xerte-dev at lists.nottingham.ac.uk> > >> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev > > > > -- > > Pale Purple Ltd > > > > PHP Web application development and support > > > > http://www.palepurple.co.uk > > @PalePurpleLtd > > 07792 380669 / 0845 0046746 > > > > _______________________________________________ > > 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 > > 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. > > > > 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. > > > > > > > > > > _______________________________________________ > 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 > 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. > > 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. > > > > > > Glasgow Caledonian University is a registered Scottish charity, number > SC021474 > > _______________________________________________ > 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 > 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. > > 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. > > > > Glasgow Caledonian University is a registered Scottish charity, number > SC021474 > > _______________________________________________ > 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 > 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. > > 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. > > > > > > Glasgow Caledonian University is a registered Scottish charity, number > SC021474 > _______________________________________________ > 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: From ronm at mitchellmedia.co.uk Wed Jun 25 18:32:00 2014 From: ronm at mitchellmedia.co.uk (Ron Mitchell) Date: Wed, 25 Jun 2014 18:32:00 +0100 Subject: [Xerte-dev] Re: preview.xml not created In-Reply-To: <12C67A1EEC419342AF5E59DA31562C3F0D292A9504@EXCHANGE1.ad.nottingham.ac.uk> References: <12C67A1EEC419342AF5E59DA31562C3F0D292A9269@EXCHANGE1.ad.nottingham.ac.uk> <53AA9DA2.30300@palepurple.co.uk> <12C67A1EEC419342AF5E59DA31562C3F0D292A9270@EXCHANGE1.ad.nottingham.ac.uk> <12C67A1EEC419342AF5E59DA31562C3F0D292A92F9@EXCHANGE1.ad.nottingham.ac.uk> <12C67A1EEC419342AF5E59DA31562C3F0D292A93D3@EXCHANGE1.ad.nottingham.ac.uk> <12C67A1EEC419342AF5E59DA31562C3F0D292A949F@EXCHANGE1.ad.nottingham.ac.uk> <12C67A1EEC419342AF5E59DA31562C3F0D292A94C8@EXCHANGE1.ad.nottingham.ac.uk> <12C67A1EEC419342AF5E59DA31562C3F0D292A9504@EXCHANGE1.ad.nottingham.ac.uk> Message-ID: <3E076AF3-3642-48DA-BBB4-E505D6463F7E@mitchellmedia.co.uk> So have you confirmed it's not just an issue for one user now? You've mentioned a building is it a connection/proxy issue? Can the same use create projects ok via 3G connection? Does it happen regardless of browser? Just on train home from an event in London and actually spoke to the real life Pat Lockley! ;-) Ron Sent from my iPhone > On 25 Jun 2014, at 16:50, Julian Tenney wrote: > > No, no weird templates, it?s Nottingham for sure. > > I?m sure what you say answers my question ?is it synchronous or not?? But I don?t know whether it means ?yes? or ?no?. > > From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Pat L (pgogy) > Sent: 25 June 2014 16:47 > To: For Xerte technical developers > Subject: [Xerte-dev] Re: preview.xml not created > > new template.php ends in a ajax call to the editor, so it's not one block of PHP but one process. New template ends, echoes out a template id, which the ajax gets, and then fires off the editor. > > If the editor isn't working, I am suspecting it might be the template is weird? Is it definitely Nottingham? Not one of the old mediainteraction ones or something? > > > On Wed, Jun 25, 2014 at 4:12 PM, Julian Tenney wrote: > Data.xml is being created, but what seems to fail is the editor opening. Media folder is being created too. > > So it's the process of opening the editor that creates preview.xml? > > Come to think about it, I had issues myself in the same building on Monday. I just refreshed the workspace and I was in business, didn't really think about it. > > I found another user with the same problem: returning to the workspace later, his projects are all there and editable now. > > Some sort of timing issue? The editor opening and data.xml hasn't been created yet, so nothing to copy? > > -----Original Message----- > From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Smith, John > Sent: 25 June 2014 16:09 > To: For Xerte technical developers > Subject: [Xerte-dev] Re: preview.xml not created > > Popup blocker doesn't usually stop preview.xml being copied, or at least it's never affected me like that before... plus wouldn't the popup blocker work for others too? > > Edit checks for the existence of preview.xml and either opens it or copies the blank > > https://github.com/thexerteproject/xerteonlinetoolkits/blob/f5ad19b03ed2c76ac29cbcd0ec5199360dc61d6a/modules/xerte/edit.php#L47 > > There are a few checks beforehand though that could error out (like below). Check the response in Google Chrome to see if any errors are being sent back i suppose: > > if(empty($row_username)) { > die("Invalid user id ?"); > } > > and > > if(!file_exists($preview) && file_exists($data)){ > copy($data, $preview); > chmod($preview, 0777); > } > > So it looks like data.xml needs to be there which comes from the Nottingham template. Is data.xml being created in the folder? And a media folder to hold the multimedia? > > If not then it looks like this is failing > > https://github.com/thexerteproject/xerteonlinetoolkits/blob/f5ad19b03ed2c76ac29cbcd0ec5199360dc61d6a/modules/site/new_template.php#L76 > > It puts some debug messages into the logs so you might like to check there to see if anything shows up... > > Regards, > > John Smith | Learning Technologist > Room A250, Govan Mbeki Building | School of Health & Life Sciences | Glasgow Caledonian University Cowcaddens Road | Glasgow | G4 0BA > > Please address ALL support requests to hlsblt at gcu.ac.uk where one of the School Learning Technologists will pick up the job. This will ensure that all jobs are completed as promptly as possible. > ________________________________________ > From: xerte-dev-bounces at lists.nottingham.ac.uk [xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Julian Tenney [Julian.Tenney at nottingham.ac.uk] > Sent: 25 June 2014 15:51 > To: For Xerte technical developers > Subject: [Xerte-dev] Re: preview.xml not created > > No, preview is not created. I think this is maybe to do with popup blocker, so edit never opens. > > What order do things happen in when a project is created? > > -----Original Message----- > From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Smith, John > Sent: 25 June 2014 15:47 > To: For Xerte technical developers > Subject: [Xerte-dev] Re: preview.xml not created > > If the user creates a new LO and edit opens then do you see the blank, default preview.xml being copied into in the newly created USER-FILES folder? > > Regards, > > John Smith | Learning Technologist > Room A250, Govan Mbeki Building | School of Health & Life Sciences | Glasgow Caledonian University Cowcaddens Road | Glasgow | G4 0BA > > Please address ALL support requests to hlsblt at gcu.ac.uk where one of the School Learning Technologists will pick up the job. This will ensure that all jobs are completed as promptly as possible. > ________________________________________ > From: xerte-dev-bounces at lists.nottingham.ac.uk [xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Julian Tenney [Julian.Tenney at nottingham.ac.uk] > Sent: 25 June 2014 14:27 > To: For Xerte technical developers (xerte-dev at lists.nottingham.ac.uk) > Subject: [Xerte-dev] Re: preview.xml not created > > We have only one of these usernames, dating from 2006, so predates toolkits, and not a duplicate. > > -----Original Message----- > From: Tenney Julian > Sent: 25 June 2014 12:38 > To: For Xerte technical developers > Subject: RE: [Xerte-dev] Re: preview.xml not created > > No, that looks right. At least the folder has the correct user name in it. > > -----Original Message----- > From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Julian Tenney > Sent: 25 June 2014 12:04 > To: For Xerte technical developers > Subject: [Xerte-dev] Re: preview.xml not created > > I'll check that. I didn't notice anything obvious though... > > -----Original Message----- > From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Ron Mitchell > Sent: 25 June 2014 12:00 > To: For Xerte technical developers > Subject: [Xerte-dev] Re: preview.xml not created > > My hunch would be a username issue - check username matches the folders being created including case sensitivity? > > Sent from my iPhone > > > On 25 Jun 2014, at 11:00, Julian Tenney wrote: > > > > Why only for one user? > > > > -----Original Message----- > > From: xerte-dev-bounces at lists.nottingham.ac.uk > > [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of David > > Goodwin > > Sent: 25 June 2014 11:00 > > To: For Xerte technical developers > > Subject: [Xerte-dev] Re: preview.xml not created > > > > I have a feeling XOT may be mixing up it's saving of preview.xml and > > data.xml - in that it saves data.xml when it should save preview.xml > > etc > > > > David. > > > >> On 25/06/14 10:58, Julian Tenney wrote: > >> Got a user here who logs in, tries to create a LO, but preview .xml > >> isn't being created: consequently the editor has no LO icon in it > >> when it loads up. Other users on same computer work fine. Any idea > >> what's going on? > >> > >> cid:image004.jpg at 01CF905F.BC2E7D90 > >> > >> > >> > >> _______________________________________________ > >> Xerte-dev mailing list > >> Xerte-dev at lists.nottingham.ac.uk > >> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev > > > > -- > > Pale Purple Ltd > > > > PHP Web application development and support > > > > http://www.palepurple.co.uk > > @PalePurpleLtd > > 07792 380669 / 0845 0046746 > > > > _______________________________________________ > > 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 > > 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. > > > > 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. > > > > > > > > > > _______________________________________________ > 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 > 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. > > 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. > > > > > > Glasgow Caledonian University is a registered Scottish charity, number SC021474 > > _______________________________________________ > 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 > 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. > > 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. > > > > Glasgow Caledonian University is a registered Scottish charity, number SC021474 > > _______________________________________________ > 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 > 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. > > 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. > > > > > > _______________________________________________ > 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: From Julian.Tenney at nottingham.ac.uk Thu Jun 26 08:33:06 2014 From: Julian.Tenney at nottingham.ac.uk (Julian Tenney) Date: Thu, 26 Jun 2014 08:33:06 +0100 Subject: [Xerte-dev] Re: preview.xml not created In-Reply-To: <3E076AF3-3642-48DA-BBB4-E505D6463F7E@mitchellmedia.co.uk> References: <12C67A1EEC419342AF5E59DA31562C3F0D292A9269@EXCHANGE1.ad.nottingham.ac.uk> <53AA9DA2.30300@palepurple.co.uk> <12C67A1EEC419342AF5E59DA31562C3F0D292A9270@EXCHANGE1.ad.nottingham.ac.uk> <12C67A1EEC419342AF5E59DA31562C3F0D292A92F9@EXCHANGE1.ad.nottingham.ac.uk> <12C67A1EEC419342AF5E59DA31562C3F0D292A93D3@EXCHANGE1.ad.nottingham.ac.uk> <12C67A1EEC419342AF5E59DA31562C3F0D292A949F@EXCHANGE1.ad.nottingham.ac.uk> <12C67A1EEC419342AF5E59DA31562C3F0D292A94C8@EXCHANGE1.ad.nottingham.ac.uk> <12C67A1EEC419342AF5E59DA31562C3F0D292A9504@EXCHANGE1.ad.nottingham.ac.uk> <3E076AF3-3642-48DA-BBB4-E505D6463F7E@mitchellmedia.co.uk> Message-ID: <12C67A1EEC419342AF5E59DA31562C3F0D901794E6@EXCHANGE1.ad.nottingham.ac.uk> Yep, it is more than one user. I?m going to have to go over there and see what?s going on. Maybe I?ll try and record screens or something. From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Ron Mitchell Sent: 25 June 2014 18:32 To: For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created So have you confirmed it's not just an issue for one user now? You've mentioned a building is it a connection/proxy issue? Can the same use create projects ok via 3G connection? Does it happen regardless of browser? Just on train home from an event in London and actually spoke to the real life Pat Lockley! ;-) Ron Sent from my iPhone On 25 Jun 2014, at 16:50, Julian Tenney > wrote: No, no weird templates, it?s Nottingham for sure. I?m sure what you say answers my question ?is it synchronous or not?? But I don?t know whether it means ?yes? or ?no?. From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Pat L (pgogy) Sent: 25 June 2014 16:47 To: For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created new template.php ends in a ajax call to the editor, so it's not one block of PHP but one process. New template ends, echoes out a template id, which the ajax gets, and then fires off the editor. If the editor isn't working, I am suspecting it might be the template is weird? Is it definitely Nottingham? Not one of the old mediainteraction ones or something? On Wed, Jun 25, 2014 at 4:12 PM, Julian Tenney > wrote: Data.xml is being created, but what seems to fail is the editor opening. Media folder is being created too. So it's the process of opening the editor that creates preview.xml? Come to think about it, I had issues myself in the same building on Monday. I just refreshed the workspace and I was in business, didn't really think about it. I found another user with the same problem: returning to the workspace later, his projects are all there and editable now. Some sort of timing issue? The editor opening and data.xml hasn't been created yet, so nothing to copy? -----Original Message----- From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Smith, John Sent: 25 June 2014 16:09 To: For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created Popup blocker doesn't usually stop preview.xml being copied, or at least it's never affected me like that before... plus wouldn't the popup blocker work for others too? Edit checks for the existence of preview.xml and either opens it or copies the blank https://github.com/thexerteproject/xerteonlinetoolkits/blob/f5ad19b03ed2c76ac29cbcd0ec5199360dc61d6a/modules/xerte/edit.php#L47 There are a few checks beforehand though that could error out (like below). Check the response in Google Chrome to see if any errors are being sent back i suppose: if(empty($row_username)) { die("Invalid user id ?"); } and if(!file_exists($preview) && file_exists($data)){ copy($data, $preview); chmod($preview, 0777); } So it looks like data.xml needs to be there which comes from the Nottingham template. Is data.xml being created in the folder? And a media folder to hold the multimedia? If not then it looks like this is failing https://github.com/thexerteproject/xerteonlinetoolkits/blob/f5ad19b03ed2c76ac29cbcd0ec5199360dc61d6a/modules/site/new_template.php#L76 It puts some debug messages into the logs so you might like to check there to see if anything shows up... Regards, John Smith | Learning Technologist Room A250, Govan Mbeki Building | School of Health & Life Sciences | Glasgow Caledonian University Cowcaddens Road | Glasgow | G4 0BA Please address ALL support requests to hlsblt at gcu.ac.uk where one of the School Learning Technologists will pick up the job. This will ensure that all jobs are completed as promptly as possible. ________________________________________ From: xerte-dev-bounces at lists.nottingham.ac.uk [xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Julian Tenney [Julian.Tenney at nottingham.ac.uk] Sent: 25 June 2014 15:51 To: For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created No, preview is not created. I think this is maybe to do with popup blocker, so edit never opens. What order do things happen in when a project is created? -----Original Message----- From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Smith, John Sent: 25 June 2014 15:47 To: For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created If the user creates a new LO and edit opens then do you see the blank, default preview.xml being copied into in the newly created USER-FILES folder? Regards, John Smith | Learning Technologist Room A250, Govan Mbeki Building | School of Health & Life Sciences | Glasgow Caledonian University Cowcaddens Road | Glasgow | G4 0BA Please address ALL support requests to hlsblt at gcu.ac.uk where one of the School Learning Technologists will pick up the job. This will ensure that all jobs are completed as promptly as possible. ________________________________________ From: xerte-dev-bounces at lists.nottingham.ac.uk [xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Julian Tenney [Julian.Tenney at nottingham.ac.uk] Sent: 25 June 2014 14:27 To: For Xerte technical developers (xerte-dev at lists.nottingham.ac.uk) Subject: [Xerte-dev] Re: preview.xml not created We have only one of these usernames, dating from 2006, so predates toolkits, and not a duplicate. -----Original Message----- From: Tenney Julian Sent: 25 June 2014 12:38 To: For Xerte technical developers Subject: RE: [Xerte-dev] Re: preview.xml not created No, that looks right. At least the folder has the correct user name in it. -----Original Message----- From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Julian Tenney Sent: 25 June 2014 12:04 To: For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created I'll check that. I didn't notice anything obvious though... -----Original Message----- From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Ron Mitchell Sent: 25 June 2014 12:00 To: For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created My hunch would be a username issue - check username matches the folders being created including case sensitivity? Sent from my iPhone > On 25 Jun 2014, at 11:00, Julian Tenney > wrote: > > Why only for one user? > > -----Original Message----- > From: xerte-dev-bounces at lists.nottingham.ac.uk > [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of David > Goodwin > Sent: 25 June 2014 11:00 > To: For Xerte technical developers > Subject: [Xerte-dev] Re: preview.xml not created > > I have a feeling XOT may be mixing up it's saving of preview.xml and > data.xml - in that it saves data.xml when it should save preview.xml > etc > > David. > >> On 25/06/14 10:58, Julian Tenney wrote: >> Got a user here who logs in, tries to create a LO, but preview .xml >> isn't being created: consequently the editor has no LO icon in it >> when it loads up. Other users on same computer work fine. Any idea >> what's going on? >> >> cid:image004.jpg at 01CF905F.BC2E7D90 >> >> >> >> _______________________________________________ >> Xerte-dev mailing list >> Xerte-dev at lists.nottingham.ac.uk >> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev > > -- > Pale Purple Ltd > > PHP Web application development and support > > http://www.palepurple.co.uk > @PalePurpleLtd > 07792 380669 / 0845 0046746 > > _______________________________________________ > 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 > 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. > > 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. > > > > _______________________________________________ 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 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. 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. Glasgow Caledonian University is a registered Scottish charity, number SC021474 _______________________________________________ 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 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. 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. Glasgow Caledonian University is a registered Scottish charity, number SC021474 _______________________________________________ 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 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. 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. _______________________________________________ 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: From Julian.Tenney at nottingham.ac.uk Thu Jun 26 09:12:48 2014 From: Julian.Tenney at nottingham.ac.uk (Julian Tenney) Date: Thu, 26 Jun 2014 09:12:48 +0100 Subject: [Xerte-dev] Re: preview.xml not created In-Reply-To: <0wfws3cqnl5udbrnoc09ra4y.1403712712912@email.android.com> References: <0wfws3cqnl5udbrnoc09ra4y.1403712712912@email.android.com> Message-ID: <12C67A1EEC419342AF5E59DA31562C3F0D9017951E@EXCHANGE1.ad.nottingham.ac.uk> By the time the id returns, data.xml and media/ should be copied 'Should' as in will have been or 'should' as in might have been? I'm going to go and have a look later and see if I can figure out what's going on, J -----Original Message----- From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Smith, John Sent: 25 June 2014 17:12 To: xerte-dev at lists.nottingham.ac.uk Subject: [Xerte-dev] Re: preview.xml not created I think what Pat is saying confirms that it can only be synchronous. You click new and give it a name An ajax call is made to new_template When it returns with an id then that id is used to instruct the editor which LO to open. By the time the id returns, data.xml and media/ should be copied. Edit looks to see if there is a preview.xml and if not then it copies data.xml to preview.xml and then loads preview.xml Regards John Smith Learning Technologist School of Health and Life Sciences Sent from Samsung Galaxy SII Julian Tenney wrote: No, no weird templates, it?s Nottingham for sure. I?m sure what you say answers my question ?is it synchronous or not?? But I don?t know whether it means ?yes? or ?no?. From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Pat L (pgogy) Sent: 25 June 2014 16:47 To: For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created new template.php ends in a ajax call to the editor, so it's not one block of PHP but one process. New template ends, echoes out a template id, which the ajax gets, and then fires off the editor. If the editor isn't working, I am suspecting it might be the template is weird? Is it definitely Nottingham? Not one of the old mediainteraction ones or something? On Wed, Jun 25, 2014 at 4:12 PM, Julian Tenney > wrote: Data.xml is being created, but what seems to fail is the editor opening. Media folder is being created too. So it's the process of opening the editor that creates preview.xml? Come to think about it, I had issues myself in the same building on Monday. I just refreshed the workspace and I was in business, didn't really think about it. I found another user with the same problem: returning to the workspace later, his projects are all there and editable now. Some sort of timing issue? The editor opening and data.xml hasn't been created yet, so nothing to copy? -----Original Message----- From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Smith, John Sent: 25 June 2014 16:09 To: For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created Popup blocker doesn't usually stop preview.xml being copied, or at least it's never affected me like that before... plus wouldn't the popup blocker work for others too? Edit checks for the existence of preview.xml and either opens it or copies the blank https://github.com/thexerteproject/xerteonlinetoolkits/blob/f5ad19b03ed2c76ac29cbcd0ec5199360dc61d6a/modules/xerte/edit.php#L47 There are a few checks beforehand though that could error out (like below). Check the response in Google Chrome to see if any errors are being sent back i suppose: if(empty($row_username)) { die("Invalid user id ?"); } and if(!file_exists($preview) && file_exists($data)){ copy($data, $preview); chmod($preview, 0777); } So it looks like data.xml needs to be there which comes from the Nottingham template. Is data.xml being created in the folder? And a media folder to hold the multimedia? If not then it looks like this is failing https://github.com/thexerteproject/xerteonlinetoolkits/blob/f5ad19b03ed2c76ac29cbcd0ec5199360dc61d6a/modules/site/new_template.php#L76 It puts some debug messages into the logs so you might like to check there to see if anything shows up... Regards, John Smith | Learning Technologist Room A250, Govan Mbeki Building | School of Health & Life Sciences | Glasgow Caledonian University Cowcaddens Road | Glasgow | G4 0BA Please address ALL support requests to hlsblt at gcu.ac.uk where one of the School Learning Technologists will pick up the job. This will ensure that all jobs are completed as promptly as possible. ________________________________________ From: xerte-dev-bounces at lists.nottingham.ac.uk [xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Julian Tenney [Julian.Tenney at nottingham.ac.uk] Sent: 25 June 2014 15:51 To: For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created No, preview is not created. I think this is maybe to do with popup blocker, so edit never opens. What order do things happen in when a project is created? -----Original Message----- From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Smith, John Sent: 25 June 2014 15:47 To: For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created If the user creates a new LO and edit opens then do you see the blank, default preview.xml being copied into in the newly created USER-FILES folder? Regards, John Smith | Learning Technologist Room A250, Govan Mbeki Building | School of Health & Life Sciences | Glasgow Caledonian University Cowcaddens Road | Glasgow | G4 0BA Please address ALL support requests to hlsblt at gcu.ac.uk where one of the School Learning Technologists will pick up the job. This will ensure that all jobs are completed as promptly as possible. ________________________________________ From: xerte-dev-bounces at lists.nottingham.ac.uk [xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Julian Tenney [Julian.Tenney at nottingham.ac.uk] Sent: 25 June 2014 14:27 To: For Xerte technical developers (xerte-dev at lists.nottingham.ac.uk) Subject: [Xerte-dev] Re: preview.xml not created We have only one of these usernames, dating from 2006, so predates toolkits, and not a duplicate. -----Original Message----- From: Tenney Julian Sent: 25 June 2014 12:38 To: For Xerte technical developers Subject: RE: [Xerte-dev] Re: preview.xml not created No, that looks right. At least the folder has the correct user name in it. -----Original Message----- From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Julian Tenney Sent: 25 June 2014 12:04 To: For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created I'll check that. I didn't notice anything obvious though... -----Original Message----- From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Ron Mitchell Sent: 25 June 2014 12:00 To: For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created My hunch would be a username issue - check username matches the folders being created including case sensitivity? Sent from my iPhone > On 25 Jun 2014, at 11:00, Julian Tenney > wrote: > > Why only for one user? > > -----Original Message----- > From: > xerte-dev-bounces at lists.nottingham.ac.uk s.nottingham.ac.uk> > [mailto:xerte-dev-bounces at lists.nottingham.ac.uk ces at lists.nottingham.ac.uk>] On Behalf Of David Goodwin > Sent: 25 June 2014 11:00 > To: For Xerte technical developers > Subject: [Xerte-dev] Re: preview.xml not created > > I have a feeling XOT may be mixing up it's saving of preview.xml and > data.xml - in that it saves data.xml when it should save preview.xml > etc > > David. > >> On 25/06/14 10:58, Julian Tenney wrote: >> Got a user here who logs in, tries to create a LO, but preview .xml >> isn't being created: consequently the editor has no LO icon in it >> when it loads up. Other users on same computer work fine. Any idea >> what's going on? >> >> cid:image004.jpg at 01CF905F.BC2E7D90 >> >> >> >> _______________________________________________ >> Xerte-dev mailing list >> Xerte-dev at lists.nottingham.ac.uk> .uk> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev > > -- > Pale Purple Ltd > > PHP Web application development and support > > http://www.palepurple.co.uk > @PalePurpleLtd > 07792 380669 / 0845 0046746 > > _______________________________________________ > Xerte-dev mailing list > Xerte-dev at lists.nottingham.ac.uk uk> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev > > _______________________________________________ > Xerte-dev mailing list > Xerte-dev at lists.nottingham.ac.uk uk> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev > 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. > > 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. > > > > _______________________________________________ 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 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. 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. Glasgow Caledonian University is a registered Scottish charity, number SC021474 _______________________________________________ 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 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. 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. Glasgow Caledonian University is a registered Scottish charity, number SC021474 _______________________________________________ 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 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. 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. Glasgow Caledonian University is a registered Scottish charity, number SC021474 _______________________________________________ Xerte-dev mailing list Xerte-dev at lists.nottingham.ac.uk http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev From xerte at pgogywebstuff.com Thu Jun 26 11:10:14 2014 From: xerte at pgogywebstuff.com (Pat L (pgogy)) Date: Thu, 26 Jun 2014 11:10:14 +0100 Subject: [Xerte-dev] Re: preview.xml not created In-Reply-To: <12C67A1EEC419342AF5E59DA31562C3F0D9017951E@EXCHANGE1.ad.nottingham.ac.uk> References: <0wfws3cqnl5udbrnoc09ra4y.1403712712912@email.android.com> <12C67A1EEC419342AF5E59DA31562C3F0D9017951E@EXCHANGE1.ad.nottingham.ac.uk> Message-ID: Should as in The PHP script has called the functions which do it It then inserts into the database and returns the ID given So unless the PHP is delayed, or threads, then can't see why. It might be the ID isn't right? On Thu, Jun 26, 2014 at 9:12 AM, Julian Tenney < Julian.Tenney at nottingham.ac.uk> wrote: > By the time the id returns, data.xml and media/ should be copied > > 'Should' as in will have been or 'should' as in might have been? > > I'm going to go and have a look later and see if I can figure out what's > going on, > > J > > -----Original Message----- > From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto: > xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Smith, John > Sent: 25 June 2014 17:12 > To: xerte-dev at lists.nottingham.ac.uk > Subject: [Xerte-dev] Re: preview.xml not created > > I think what Pat is saying confirms that it can only be synchronous. > > You click new and give it a name > > An ajax call is made to new_template > > When it returns with an id then that id is used to instruct the editor > which LO to open. > > By the time the id returns, data.xml and media/ should be copied. Edit > looks to see if there is a preview.xml and if not then it copies data.xml > to preview.xml and then loads preview.xml > > Regards > > John Smith > Learning Technologist > School of Health and Life Sciences > > Sent from Samsung Galaxy SII > > > > Julian Tenney wrote: > > > No, no weird templates, it?s Nottingham for sure. > > I?m sure what you say answers my question ?is it synchronous or not?? But > I don?t know whether it means ?yes? or ?no?. > > From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto: > xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Pat L (pgogy) > Sent: 25 June 2014 16:47 > To: For Xerte technical developers > Subject: [Xerte-dev] Re: preview.xml not created > > new template.php ends in a ajax call to the editor, so it's not one block > of PHP but one process. New template ends, echoes out a template id, which > the ajax gets, and then fires off the editor. > > If the editor isn't working, I am suspecting it might be the template is > weird? Is it definitely Nottingham? Not one of the old mediainteraction > ones or something? > > On Wed, Jun 25, 2014 at 4:12 PM, Julian Tenney < > Julian.Tenney at nottingham.ac.uk> > wrote: > Data.xml is being created, but what seems to fail is the editor opening. > Media folder is being created too. > > So it's the process of opening the editor that creates preview.xml? > > Come to think about it, I had issues myself in the same building on > Monday. I just refreshed the workspace and I was in business, didn't really > think about it. > > I found another user with the same problem: returning to the workspace > later, his projects are all there and editable now. > > Some sort of timing issue? The editor opening and data.xml hasn't been > created yet, so nothing to copy? > > -----Original Message----- > From: xerte-dev-bounces at lists.nottingham.ac.uk xerte-dev-bounces at lists.nottingham.ac.uk> [mailto: > xerte-dev-bounces at lists.nottingham.ac.uk xerte-dev-bounces at lists.nottingham.ac.uk>] On Behalf Of Smith, John > Sent: 25 June 2014 16:09 > To: For Xerte technical developers > Subject: [Xerte-dev] Re: preview.xml not created > > Popup blocker doesn't usually stop preview.xml being copied, or at least > it's never affected me like that before... plus wouldn't the popup blocker > work for others too? > > Edit checks for the existence of preview.xml and either opens it or copies > the blank > > > https://github.com/thexerteproject/xerteonlinetoolkits/blob/f5ad19b03ed2c76ac29cbcd0ec5199360dc61d6a/modules/xerte/edit.php#L47 > > There are a few checks beforehand though that could error out (like > below). Check the response in Google Chrome to see if any errors are being > sent back i suppose: > > if(empty($row_username)) { > die("Invalid user id ?"); > } > > and > > if(!file_exists($preview) && file_exists($data)){ > copy($data, $preview); > chmod($preview, 0777); > } > > So it looks like data.xml needs to be there which comes from the > Nottingham template. Is data.xml being created in the folder? And a media > folder to hold the multimedia? > > If not then it looks like this is failing > > > https://github.com/thexerteproject/xerteonlinetoolkits/blob/f5ad19b03ed2c76ac29cbcd0ec5199360dc61d6a/modules/site/new_template.php#L76 > > It puts some debug messages into the logs so you might like to check there > to see if anything shows up... > > Regards, > > John Smith | Learning Technologist > Room A250, Govan Mbeki Building | School of Health & Life Sciences | > Glasgow Caledonian University Cowcaddens Road | Glasgow | G4 0BA > > Please address ALL support requests to hlsblt at gcu.ac.uk hlsblt at gcu.ac.uk> where one of the School Learning Technologists will > pick up the job. This will ensure that all jobs are completed as promptly > as possible. > ________________________________________ > From: xerte-dev-bounces at lists.nottingham.ac.uk xerte-dev-bounces at lists.nottingham.ac.uk> [ > xerte-dev-bounces at lists.nottingham.ac.uk xerte-dev-bounces at lists.nottingham.ac.uk>] On Behalf Of Julian Tenney [ > Julian.Tenney at nottingham.ac.uk] > Sent: 25 June 2014 15:51 > To: For Xerte technical developers > Subject: [Xerte-dev] Re: preview.xml not created > > No, preview is not created. I think this is maybe to do with popup > blocker, so edit never opens. > > What order do things happen in when a project is created? > > -----Original Message----- > From: xerte-dev-bounces at lists.nottingham.ac.uk xerte-dev-bounces at lists.nottingham.ac.uk> [mailto: > xerte-dev-bounces at lists.nottingham.ac.uk xerte-dev-bounces at lists.nottingham.ac.uk>] On Behalf Of Smith, John > Sent: 25 June 2014 15:47 > To: For Xerte technical developers > Subject: [Xerte-dev] Re: preview.xml not created > > If the user creates a new LO and edit opens then do you see the blank, > default preview.xml being copied into in the newly created USER-FILES > folder? > > Regards, > > John Smith | Learning Technologist > Room A250, Govan Mbeki Building | School of Health & Life Sciences | > Glasgow Caledonian University Cowcaddens Road | Glasgow | G4 0BA > > Please address ALL support requests to hlsblt at gcu.ac.uk hlsblt at gcu.ac.uk> where one of the School Learning Technologists will > pick up the job. This will ensure that all jobs are completed as promptly > as possible. > ________________________________________ > From: xerte-dev-bounces at lists.nottingham.ac.uk xerte-dev-bounces at lists.nottingham.ac.uk> [ > xerte-dev-bounces at lists.nottingham.ac.uk xerte-dev-bounces at lists.nottingham.ac.uk>] On Behalf Of Julian Tenney [ > Julian.Tenney at nottingham.ac.uk] > Sent: 25 June 2014 14:27 > To: For Xerte technical developers (xerte-dev at lists.nottingham.ac.uk > ) > Subject: [Xerte-dev] Re: preview.xml not created > > We have only one of these usernames, dating from 2006, so predates > toolkits, and not a duplicate. > > -----Original Message----- > From: Tenney Julian > Sent: 25 June 2014 12:38 > To: For Xerte technical developers > Subject: RE: [Xerte-dev] Re: preview.xml not created > > No, that looks right. At least the folder has the correct user name in it. > > -----Original Message----- > From: xerte-dev-bounces at lists.nottingham.ac.uk xerte-dev-bounces at lists.nottingham.ac.uk> [mailto: > xerte-dev-bounces at lists.nottingham.ac.uk xerte-dev-bounces at lists.nottingham.ac.uk>] On Behalf Of Julian Tenney > Sent: 25 June 2014 12:04 > To: For Xerte technical developers > Subject: [Xerte-dev] Re: preview.xml not created > > I'll check that. I didn't notice anything obvious though... > > -----Original Message----- > From: xerte-dev-bounces at lists.nottingham.ac.uk xerte-dev-bounces at lists.nottingham.ac.uk> [mailto: > xerte-dev-bounces at lists.nottingham.ac.uk xerte-dev-bounces at lists.nottingham.ac.uk>] On Behalf Of Ron Mitchell > Sent: 25 June 2014 12:00 > To: For Xerte technical developers > Subject: [Xerte-dev] Re: preview.xml not created > > My hunch would be a username issue - check username matches the folders > being created including case sensitivity? > > Sent from my iPhone > > > On 25 Jun 2014, at 11:00, Julian Tenney > wrote: > > > > Why only for one user? > > > > -----Original Message----- > > From: > > xerte-dev-bounces at lists.nottingham.ac.uk > s.nottingham.ac.uk> > > [mailto:xerte-dev-bounces at lists.nottingham.ac.uk > ces at lists.nottingham.ac.uk>] On Behalf Of David Goodwin > > Sent: 25 June 2014 11:00 > > To: For Xerte technical developers > > Subject: [Xerte-dev] Re: preview.xml not created > > > > I have a feeling XOT may be mixing up it's saving of preview.xml and > > data.xml - in that it saves data.xml when it should save preview.xml > > etc > > > > David. > > > >> On 25/06/14 10:58, Julian Tenney wrote: > >> Got a user here who logs in, tries to create a LO, but preview .xml > >> isn't being created: consequently the editor has no LO icon in it > >> when it loads up. Other users on same computer work fine. Any idea > >> what's going on? > >> > >> cid:image004.jpg at 01CF905F.BC2E7D90 > >> > >> > >> > >> _______________________________________________ > >> Xerte-dev mailing list > >> Xerte-dev at lists.nottingham.ac.uk >> .uk> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev > > > > -- > > Pale Purple Ltd > > > > PHP Web application development and support > > > > http://www.palepurple.co.uk > > @PalePurpleLtd > > 07792 380669 / 0845 0046746 > > > > _______________________________________________ > > Xerte-dev mailing list > > Xerte-dev at lists.nottingham.ac.uk > uk> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev > > > > _______________________________________________ > > Xerte-dev mailing list > > Xerte-dev at lists.nottingham.ac.uk > uk> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev > > 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. > > > > 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. > > > > > > > > > > _______________________________________________ > 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 > 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. > > 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. > > > > > > Glasgow Caledonian University is a registered Scottish charity, number > SC021474 > > _______________________________________________ > 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 > 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. > > 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. > > > > Glasgow Caledonian University is a registered Scottish charity, number > SC021474 > > _______________________________________________ > 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 > 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. > > 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. > > > > > > Glasgow Caledonian University is a registered Scottish charity, number > SC021474 _______________________________________________ > 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: From J.J.Smith at gcu.ac.uk Thu Jun 26 11:11:42 2014 From: J.J.Smith at gcu.ac.uk (Smith, John) Date: Thu, 26 Jun 2014 11:11:42 +0100 Subject: [Xerte-dev] Re: preview.xml not created Message-ID: Should as in will have been... well by design anyway. However Pat or Ron's suggestion of php threading might be something to look into. If the copy is being done asynchronously and returning before it is complete then it could cause such a timing issue. But why now? What has changed? John Sent from Samsung tablet -------- Original message -------- From: Julian Tenney Date: 26/06/2014 09:35 (GMT+00:00) To: For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created By the time the id returns, data.xml and media/ should be copied 'Should' as in will have been or 'should' as in might have been? I'm going to go and have a look later and see if I can figure out what's going on, J -----Original Message----- From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Smith, John Sent: 25 June 2014 17:12 To: xerte-dev at lists.nottingham.ac.uk Subject: [Xerte-dev] Re: preview.xml not created I think what Pat is saying confirms that it can only be synchronous. You click new and give it a name An ajax call is made to new_template When it returns with an id then that id is used to instruct the editor which LO to open. By the time the id returns, data.xml and media/ should be copied. Edit looks to see if there is a preview.xml and if not then it copies data.xml to preview.xml and then loads preview.xml Regards John Smith Learning Technologist School of Health and Life Sciences Sent from Samsung Galaxy SII Julian Tenney wrote: No, no weird templates, it?s Nottingham for sure. I?m sure what you say answers my question ?is it synchronous or not?? But I don?t know whether it means ?yes? or ?no?. From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Pat L (pgogy) Sent: 25 June 2014 16:47 To: For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created new template.php ends in a ajax call to the editor, so it's not one block of PHP but one process. New template ends, echoes out a template id, which the ajax gets, and then fires off the editor. If the editor isn't working, I am suspecting it might be the template is weird? Is it definitely Nottingham? Not one of the old mediainteraction ones or something? On Wed, Jun 25, 2014 at 4:12 PM, Julian Tenney > wrote: Data.xml is being created, but what seems to fail is the editor opening. Media folder is being created too. So it's the process of opening the editor that creates preview.xml? Come to think about it, I had issues myself in the same building on Monday. I just refreshed the workspace and I was in business, didn't really think about it. I found another user with the same problem: returning to the workspace later, his projects are all there and editable now. Some sort of timing issue? The editor opening and data.xml hasn't been created yet, so nothing to copy? -----Original Message----- From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Smith, John Sent: 25 June 2014 16:09 To: For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created Popup blocker doesn't usually stop preview.xml being copied, or at least it's never affected me like that before... plus wouldn't the popup blocker work for others too? Edit checks for the existence of preview.xml and either opens it or copies the blank https://github.com/thexerteproject/xerteonlinetoolkits/blob/f5ad19b03ed2c76ac29cbcd0ec5199360dc61d6a/modules/xerte/edit.php#L47 There are a few checks beforehand though that could error out (like below). Check the response in Google Chrome to see if any errors are being sent back i suppose: if(empty($row_username)) { die("Invalid user id ?"); } and if(!file_exists($preview) && file_exists($data)){ copy($data, $preview); chmod($preview, 0777); } So it looks like data.xml needs to be there which comes from the Nottingham template. Is data.xml being created in the folder? And a media folder to hold the multimedia? If not then it looks like this is failing https://github.com/thexerteproject/xerteonlinetoolkits/blob/f5ad19b03ed2c76ac29cbcd0ec5199360dc61d6a/modules/site/new_template.php#L76 It puts some debug messages into the logs so you might like to check there to see if anything shows up... Regards, John Smith | Learning Technologist Room A250, Govan Mbeki Building | School of Health & Life Sciences | Glasgow Caledonian University Cowcaddens Road | Glasgow | G4 0BA Please address ALL support requests to hlsblt at gcu.ac.uk where one of the School Learning Technologists will pick up the job. This will ensure that all jobs are completed as promptly as possible. ________________________________________ From: xerte-dev-bounces at lists.nottingham.ac.uk [xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Julian Tenney [Julian.Tenney at nottingham.ac.uk] Sent: 25 June 2014 15:51 To: For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created No, preview is not created. I think this is maybe to do with popup blocker, so edit never opens. What order do things happen in when a project is created? -----Original Message----- From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Smith, John Sent: 25 June 2014 15:47 To: For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created If the user creates a new LO and edit opens then do you see the blank, default preview.xml being copied into in the newly created USER-FILES folder? Regards, John Smith | Learning Technologist Room A250, Govan Mbeki Building | School of Health & Life Sciences | Glasgow Caledonian University Cowcaddens Road | Glasgow | G4 0BA Please address ALL support requests to hlsblt at gcu.ac.uk where one of the School Learning Technologists will pick up the job. This will ensure that all jobs are completed as promptly as possible. ________________________________________ From: xerte-dev-bounces at lists.nottingham.ac.uk [xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Julian Tenney [Julian.Tenney at nottingham.ac.uk] Sent: 25 June 2014 14:27 To: For Xerte technical developers (xerte-dev at lists.nottingham.ac.uk) Subject: [Xerte-dev] Re: preview.xml not created We have only one of these usernames, dating from 2006, so predates toolkits, and not a duplicate. -----Original Message----- From: Tenney Julian Sent: 25 June 2014 12:38 To: For Xerte technical developers Subject: RE: [Xerte-dev] Re: preview.xml not created No, that looks right. At least the folder has the correct user name in it. -----Original Message----- From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Julian Tenney Sent: 25 June 2014 12:04 To: For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created I'll check that. I didn't notice anything obvious though... -----Original Message----- From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Ron Mitchell Sent: 25 June 2014 12:00 To: For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created My hunch would be a username issue - check username matches the folders being created including case sensitivity? Sent from my iPhone > On 25 Jun 2014, at 11:00, Julian Tenney > wrote: > > Why only for one user? > > -----Original Message----- > From: > xerte-dev-bounces at lists.nottingham.ac.uk s.nottingham.ac.uk> > [mailto:xerte-dev-bounces at lists.nottingham.ac.uk ces at lists.nottingham.ac.uk>] On Behalf Of David Goodwin > Sent: 25 June 2014 11:00 > To: For Xerte technical developers > Subject: [Xerte-dev] Re: preview.xml not created > > I have a feeling XOT may be mixing up it's saving of preview.xml and > data.xml - in that it saves data.xml when it should save preview.xml > etc > > David. > >> On 25/06/14 10:58, Julian Tenney wrote: >> Got a user here who logs in, tries to create a LO, but preview .xml >> isn't being created: consequently the editor has no LO icon in it >> when it loads up. Other users on same computer work fine. Any idea >> what's going on? >> >> cid:image004.jpg at 01CF905F.BC2E7D90 >> >> >> >> _______________________________________________ >> Xerte-dev mailing list >> Xerte-dev at lists.nottingham.ac.uk> .uk> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev > > -- > Pale Purple Ltd > > PHP Web application development and support > > http://www.palepurple.co.uk > @PalePurpleLtd > 07792 380669 / 0845 0046746 > > _______________________________________________ > Xerte-dev mailing list > Xerte-dev at lists.nottingham.ac.uk uk> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev > > _______________________________________________ > Xerte-dev mailing list > Xerte-dev at lists.nottingham.ac.uk uk> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev > 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. > > 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. > > > > _______________________________________________ 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 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. 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. Glasgow Caledonian University is a registered Scottish charity, number SC021474 _______________________________________________ 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 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. 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. Glasgow Caledonian University is a registered Scottish charity, number SC021474 _______________________________________________ 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 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. 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. Glasgow Caledonian University is a registered Scottish charity, number SC021474 _______________________________________________ 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 Glasgow Caledonian University is a registered Scottish charity, number SC021474 From J.J.Smith at gcu.ac.uk Thu Jun 26 11:24:54 2014 From: J.J.Smith at gcu.ac.uk (Smith, John) Date: Thu, 26 Jun 2014 11:24:54 +0100 Subject: [Xerte-dev] Re: preview.xml not created Message-ID: Create a new LO and if when edit opens it is blank then right click on the header and reload/refresh If it then loads ok then the id is right but something is most likely delaying the copy of data.xml from template folder to USER-FILES folder. The copy routine has debug messages in there so you could check them and see if any that are in edit are in an unusual order when you get a problem which might or might not indicate a threading issue depending on whether it is the php execution or the file system operations that are being delayed... John Sent from Samsung tablet -------- Original message -------- From: "Pat L (pgogy)" Date: 26/06/2014 10:15 (GMT+00:00) To: For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created Should as in The PHP script has called the functions which do it It then inserts into the database and returns the ID given So unless the PHP is delayed, or threads, then can't see why. It might be the ID isn't right? On Thu, Jun 26, 2014 at 9:12 AM, Julian Tenney > wrote: By the time the id returns, data.xml and media/ should be copied 'Should' as in will have been or 'should' as in might have been? I'm going to go and have a look later and see if I can figure out what's going on, J -----Original Message----- From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Smith, John Sent: 25 June 2014 17:12 To: xerte-dev at lists.nottingham.ac.uk Subject: [Xerte-dev] Re: preview.xml not created I think what Pat is saying confirms that it can only be synchronous. You click new and give it a name An ajax call is made to new_template When it returns with an id then that id is used to instruct the editor which LO to open. By the time the id returns, data.xml and media/ should be copied. Edit looks to see if there is a preview.xml and if not then it copies data.xml to preview.xml and then loads preview.xml Regards John Smith Learning Technologist School of Health and Life Sciences Sent from Samsung Galaxy SII Julian Tenney > wrote: No, no weird templates, it?s Nottingham for sure. I?m sure what you say answers my question ?is it synchronous or not?? But I don?t know whether it means ?yes? or ?no?. From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Pat L (pgogy) Sent: 25 June 2014 16:47 To: For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created new template.php ends in a ajax call to the editor, so it's not one block of PHP but one process. New template ends, echoes out a template id, which the ajax gets, and then fires off the editor. If the editor isn't working, I am suspecting it might be the template is weird? Is it definitely Nottingham? Not one of the old mediainteraction ones or something? On Wed, Jun 25, 2014 at 4:12 PM, Julian Tenney >> wrote: Data.xml is being created, but what seems to fail is the editor opening. Media folder is being created too. So it's the process of opening the editor that creates preview.xml? Come to think about it, I had issues myself in the same building on Monday. I just refreshed the workspace and I was in business, didn't really think about it. I found another user with the same problem: returning to the workspace later, his projects are all there and editable now. Some sort of timing issue? The editor opening and data.xml hasn't been created yet, so nothing to copy? -----Original Message----- From: xerte-dev-bounces at lists.nottingham.ac.uk> [mailto:xerte-dev-bounces at lists.nottingham.ac.uk>] On Behalf Of Smith, John Sent: 25 June 2014 16:09 To: For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created Popup blocker doesn't usually stop preview.xml being copied, or at least it's never affected me like that before... plus wouldn't the popup blocker work for others too? Edit checks for the existence of preview.xml and either opens it or copies the blank https://github.com/thexerteproject/xerteonlinetoolkits/blob/f5ad19b03ed2c76ac29cbcd0ec5199360dc61d6a/modules/xerte/edit.php#L47 There are a few checks beforehand though that could error out (like below). Check the response in Google Chrome to see if any errors are being sent back i suppose: if(empty($row_username)) { die("Invalid user id ?"); } and if(!file_exists($preview) && file_exists($data)){ copy($data, $preview); chmod($preview, 0777); } So it looks like data.xml needs to be there which comes from the Nottingham template. Is data.xml being created in the folder? And a media folder to hold the multimedia? If not then it looks like this is failing https://github.com/thexerteproject/xerteonlinetoolkits/blob/f5ad19b03ed2c76ac29cbcd0ec5199360dc61d6a/modules/site/new_template.php#L76 It puts some debug messages into the logs so you might like to check there to see if anything shows up... Regards, John Smith | Learning Technologist Room A250, Govan Mbeki Building | School of Health & Life Sciences | Glasgow Caledonian University Cowcaddens Road | Glasgow | G4 0BA Please address ALL support requests to hlsblt at gcu.ac.uk> where one of the School Learning Technologists will pick up the job. This will ensure that all jobs are completed as promptly as possible. ________________________________________ From: xerte-dev-bounces at lists.nottingham.ac.uk> [xerte-dev-bounces at lists.nottingham.ac.uk>] On Behalf Of Julian Tenney [Julian.Tenney at nottingham.ac.uk>] Sent: 25 June 2014 15:51 To: For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created No, preview is not created. I think this is maybe to do with popup blocker, so edit never opens. What order do things happen in when a project is created? -----Original Message----- From: xerte-dev-bounces at lists.nottingham.ac.uk> [mailto:xerte-dev-bounces at lists.nottingham.ac.uk>] On Behalf Of Smith, John Sent: 25 June 2014 15:47 To: For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created If the user creates a new LO and edit opens then do you see the blank, default preview.xml being copied into in the newly created USER-FILES folder? Regards, John Smith | Learning Technologist Room A250, Govan Mbeki Building | School of Health & Life Sciences | Glasgow Caledonian University Cowcaddens Road | Glasgow | G4 0BA Please address ALL support requests to hlsblt at gcu.ac.uk> where one of the School Learning Technologists will pick up the job. This will ensure that all jobs are completed as promptly as possible. ________________________________________ From: xerte-dev-bounces at lists.nottingham.ac.uk> [xerte-dev-bounces at lists.nottingham.ac.uk>] On Behalf Of Julian Tenney [Julian.Tenney at nottingham.ac.uk>] Sent: 25 June 2014 14:27 To: For Xerte technical developers (xerte-dev at lists.nottingham.ac.uk>) Subject: [Xerte-dev] Re: preview.xml not created We have only one of these usernames, dating from 2006, so predates toolkits, and not a duplicate. -----Original Message----- From: Tenney Julian Sent: 25 June 2014 12:38 To: For Xerte technical developers Subject: RE: [Xerte-dev] Re: preview.xml not created No, that looks right. At least the folder has the correct user name in it. -----Original Message----- From: xerte-dev-bounces at lists.nottingham.ac.uk> [mailto:xerte-dev-bounces at lists.nottingham.ac.uk>] On Behalf Of Julian Tenney Sent: 25 June 2014 12:04 To: For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created I'll check that. I didn't notice anything obvious though... -----Original Message----- From: xerte-dev-bounces at lists.nottingham.ac.uk> [mailto:xerte-dev-bounces at lists.nottingham.ac.uk>] On Behalf Of Ron Mitchell Sent: 25 June 2014 12:00 To: For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created My hunch would be a username issue - check username matches the folders being created including case sensitivity? Sent from my iPhone > On 25 Jun 2014, at 11:00, Julian Tenney >> wrote: > > Why only for one user? > > -----Original Message----- > From: > xerte-dev-bounces at lists.nottingham.ac.uk > s.nottingham.ac.uk> > [mailto:xerte-dev-bounces at lists.nottingham.ac.uk > ces at lists.nottingham.ac.uk>] On Behalf Of David Goodwin > Sent: 25 June 2014 11:00 > To: For Xerte technical developers > Subject: [Xerte-dev] Re: preview.xml not created > > I have a feeling XOT may be mixing up it's saving of preview.xml and > data.xml - in that it saves data.xml when it should save preview.xml > etc > > David. > >> On 25/06/14 10:58, Julian Tenney wrote: >> Got a user here who logs in, tries to create a LO, but preview .xml >> isn't being created: consequently the editor has no LO icon in it >> when it loads up. Other users on same computer work fine. Any idea >> what's going on? >> >> cid:image004.jpg at 01CF905F.BC2E7D90 >> >> >> >> _______________________________________________ >> Xerte-dev mailing list >> Xerte-dev at lists.nottingham.ac.uk >> .uk> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev > > -- > Pale Purple Ltd > > PHP Web application development and support > > http://www.palepurple.co.uk > @PalePurpleLtd > 07792 380669 / 0845 0046746 > > _______________________________________________ > Xerte-dev mailing list > Xerte-dev at lists.nottingham.ac.uk. > uk> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev > > _______________________________________________ > Xerte-dev mailing list > Xerte-dev at lists.nottingham.ac.uk. > uk> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev > 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. > > 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. > > > > _______________________________________________ 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 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. 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. Glasgow Caledonian University is a registered Scottish charity, number SC021474 _______________________________________________ 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 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. 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. Glasgow Caledonian University is a registered Scottish charity, number SC021474 _______________________________________________ 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 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. 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. Glasgow Caledonian University is a registered Scottish charity, number SC021474 _______________________________________________ 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 Glasgow Caledonian University is a registered Scottish charity, number SC021474 From Julian.Tenney at nottingham.ac.uk Thu Jun 26 12:46:38 2014 From: Julian.Tenney at nottingham.ac.uk (Julian Tenney) Date: Thu, 26 Jun 2014 12:46:38 +0100 Subject: [Xerte-dev] Re: preview.xml not created In-Reply-To: References: Message-ID: <12C67A1EEC419342AF5E59DA31562C3F0D901796B3@EXCHANGE1.ad.nottingham.ac.uk> OK, I went over and had a look. In Chrome everything worked fine. In IE I very quickly hit major 'session ID not set' problems. We really need to resolve this one way or another, even if we use the new editor as the way to do it. In IE, clicking create would lead to nothing... for a few seconds... and then the popup up would open with the session ID not set error. I got this error from the page: Message: Invalid argument. Line: 1179 Char: 6 Code: 0 URI: http://www.nottingham.ac.uk/toolkits/website_code/scripts/template_management.js I think eventually I did manage to create a LO in the workspace, but not without refreshing several times until it appeared, and never from the create button directly. So maybe this has something to do with the other user problem, maybe not. I don't really know. It might be worth me getting one of you guys who knows the PHP stuff associate access to our network and see if you can reproduce it? The session ID thing has been going along for ages now, and I don't feel any closer to a resolution, and frankly, I don't really understand enough myself to try and fix it. J -----Original Message----- From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Smith, John Sent: 26 June 2014 11:25 To: xerte at pgogywebstuff.com; For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created Create a new LO and if when edit opens it is blank then right click on the header and reload/refresh If it then loads ok then the id is right but something is most likely delaying the copy of data.xml from template folder to USER-FILES folder. The copy routine has debug messages in there so you could check them and see if any that are in edit are in an unusual order when you get a problem which might or might not indicate a threading issue depending on whether it is the php execution or the file system operations that are being delayed... John Sent from Samsung tablet -------- Original message -------- From: "Pat L (pgogy)" Date: 26/06/2014 10:15 (GMT+00:00) To: For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created Should as in The PHP script has called the functions which do it It then inserts into the database and returns the ID given So unless the PHP is delayed, or threads, then can't see why. It might be the ID isn't right? On Thu, Jun 26, 2014 at 9:12 AM, Julian Tenney > wrote: By the time the id returns, data.xml and media/ should be copied 'Should' as in will have been or 'should' as in might have been? I'm going to go and have a look later and see if I can figure out what's going on, J -----Original Message----- From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Smith, John Sent: 25 June 2014 17:12 To: xerte-dev at lists.nottingham.ac.uk Subject: [Xerte-dev] Re: preview.xml not created I think what Pat is saying confirms that it can only be synchronous. You click new and give it a name An ajax call is made to new_template When it returns with an id then that id is used to instruct the editor which LO to open. By the time the id returns, data.xml and media/ should be copied. Edit looks to see if there is a preview.xml and if not then it copies data.xml to preview.xml and then loads preview.xml Regards John Smith Learning Technologist School of Health and Life Sciences Sent from Samsung Galaxy SII Julian Tenney > wrote: No, no weird templates, it?s Nottingham for sure. I?m sure what you say answers my question ?is it synchronous or not?? But I don?t know whether it means ?yes? or ?no?. From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Pat L (pgogy) Sent: 25 June 2014 16:47 To: For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created new template.php ends in a ajax call to the editor, so it's not one block of PHP but one process. New template ends, echoes out a template id, which the ajax gets, and then fires off the editor. If the editor isn't working, I am suspecting it might be the template is weird? Is it definitely Nottingham? Not one of the old mediainteraction ones or something? On Wed, Jun 25, 2014 at 4:12 PM, Julian Tenney >> wrote: Data.xml is being created, but what seems to fail is the editor opening. Media folder is being created too. So it's the process of opening the editor that creates preview.xml? Come to think about it, I had issues myself in the same building on Monday. I just refreshed the workspace and I was in business, didn't really think about it. I found another user with the same problem: returning to the workspace later, his projects are all there and editable now. Some sort of timing issue? The editor opening and data.xml hasn't been created yet, so nothing to copy? -----Original Message----- From: xerte-dev-bounces at lists.nottingham.ac.uk> [mailto:xerte-dev-bounces at lists.nottingham.ac.uk>] On Behalf Of Smith, John Sent: 25 June 2014 16:09 To: For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created Popup blocker doesn't usually stop preview.xml being copied, or at least it's never affected me like that before... plus wouldn't the popup blocker work for others too? Edit checks for the existence of preview.xml and either opens it or copies the blank https://github.com/thexerteproject/xerteonlinetoolkits/blob/f5ad19b03ed2c76ac29cbcd0ec5199360dc61d6a/modules/xerte/edit.php#L47 There are a few checks beforehand though that could error out (like below). Check the response in Google Chrome to see if any errors are being sent back i suppose: if(empty($row_username)) { die("Invalid user id ?"); } and if(!file_exists($preview) && file_exists($data)){ copy($data, $preview); chmod($preview, 0777); } So it looks like data.xml needs to be there which comes from the Nottingham template. Is data.xml being created in the folder? And a media folder to hold the multimedia? If not then it looks like this is failing https://github.com/thexerteproject/xerteonlinetoolkits/blob/f5ad19b03ed2c76ac29cbcd0ec5199360dc61d6a/modules/site/new_template.php#L76 It puts some debug messages into the logs so you might like to check there to see if anything shows up... Regards, John Smith | Learning Technologist Room A250, Govan Mbeki Building | School of Health & Life Sciences | Glasgow Caledonian University Cowcaddens Road | Glasgow | G4 0BA Please address ALL support requests to hlsblt at gcu.ac.uk> where one of the School Learning Technologists will pick up the job. This will ensure that all jobs are completed as promptly as possible. ________________________________________ From: xerte-dev-bounces at lists.nottingham.ac.uk> [xerte-dev-bounces at lists.nottingham.ac.uk>] On Behalf Of Julian Tenney [Julian.Tenney at nottingham.ac.uk>] Sent: 25 June 2014 15:51 To: For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created No, preview is not created. I think this is maybe to do with popup blocker, so edit never opens. What order do things happen in when a project is created? -----Original Message----- From: xerte-dev-bounces at lists.nottingham.ac.uk> [mailto:xerte-dev-bounces at lists.nottingham.ac.uk>] On Behalf Of Smith, John Sent: 25 June 2014 15:47 To: For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created If the user creates a new LO and edit opens then do you see the blank, default preview.xml being copied into in the newly created USER-FILES folder? Regards, John Smith | Learning Technologist Room A250, Govan Mbeki Building | School of Health & Life Sciences | Glasgow Caledonian University Cowcaddens Road | Glasgow | G4 0BA Please address ALL support requests to hlsblt at gcu.ac.uk> where one of the School Learning Technologists will pick up the job. This will ensure that all jobs are completed as promptly as possible. ________________________________________ From: xerte-dev-bounces at lists.nottingham.ac.uk> [xerte-dev-bounces at lists.nottingham.ac.uk>] On Behalf Of Julian Tenney [Julian.Tenney at nottingham.ac.uk>] Sent: 25 June 2014 14:27 To: For Xerte technical developers (xerte-dev at lists.nottingham.ac.uk>) Subject: [Xerte-dev] Re: preview.xml not created We have only one of these usernames, dating from 2006, so predates toolkits, and not a duplicate. -----Original Message----- From: Tenney Julian Sent: 25 June 2014 12:38 To: For Xerte technical developers Subject: RE: [Xerte-dev] Re: preview.xml not created No, that looks right. At least the folder has the correct user name in it. -----Original Message----- From: xerte-dev-bounces at lists.nottingham.ac.uk> [mailto:xerte-dev-bounces at lists.nottingham.ac.uk>] On Behalf Of Julian Tenney Sent: 25 June 2014 12:04 To: For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created I'll check that. I didn't notice anything obvious though... -----Original Message----- From: xerte-dev-bounces at lists.nottingham.ac.uk> [mailto:xerte-dev-bounces at lists.nottingham.ac.uk>] On Behalf Of Ron Mitchell Sent: 25 June 2014 12:00 To: For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created My hunch would be a username issue - check username matches the folders being created including case sensitivity? Sent from my iPhone > On 25 Jun 2014, at 11:00, Julian Tenney >> wrote: > > Why only for one user? > > -----Original Message----- > From: > xerte-dev-bounces at lists.nottingham.ac.uk s.nottingham.ac.uk> nces at list> s.nottingham.ac.uk> > [mailto:xerte-dev-bounces at lists.nottingham.ac.uk ces at lists.nottingham.ac.uk> n> ces at lists.nottingham.ac.uk>] On > Behalf Of David Goodwin > Sent: 25 June 2014 11:00 > To: For Xerte technical developers > Subject: [Xerte-dev] Re: preview.xml not created > > I have a feeling XOT may be mixing up it's saving of preview.xml and > data.xml - in that it saves data.xml when it should save preview.xml > etc > > David. > >> On 25/06/14 10:58, Julian Tenney wrote: >> Got a user here who logs in, tries to create a LO, but preview .xml >> isn't being created: consequently the editor has no LO icon in it >> when it loads up. Other users on same computer work fine. Any idea >> what's going on? >> >> cid:image004.jpg at 01CF905F.BC2E7D90 >> >> >> >> _______________________________________________ >> Xerte-dev mailing list >> Xerte-dev at lists.nottingham.ac.uk> .uk>> ingham.ac> .uk> >> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev > > -- > Pale Purple Ltd > > PHP Web application development and support > > http://www.palepurple.co.uk > @PalePurpleLtd > 07792 380669 / 0845 0046746 > > _______________________________________________ > Xerte-dev mailing list > Xerte-dev at lists.nottingham.ac.uk. > uk> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev > > _______________________________________________ > Xerte-dev mailing list > Xerte-dev at lists.nottingham.ac.uk. > uk> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev > 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. > > 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. > > > > _______________________________________________ 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 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. 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. Glasgow Caledonian University is a registered Scottish charity, number SC021474 _______________________________________________ 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 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. 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. Glasgow Caledonian University is a registered Scottish charity, number SC021474 _______________________________________________ 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 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. 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. Glasgow Caledonian University is a registered Scottish charity, number SC021474 _______________________________________________ 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 Glasgow Caledonian University is a registered Scottish charity, number SC021474 _______________________________________________ Xerte-dev mailing list Xerte-dev at lists.nottingham.ac.uk http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev From Julian.Tenney at nottingham.ac.uk Thu Jun 26 12:49:02 2014 From: Julian.Tenney at nottingham.ac.uk (Julian Tenney) Date: Thu, 26 Jun 2014 12:49:02 +0100 Subject: [Xerte-dev] Re: preview.xml not created In-Reply-To: References: Message-ID: <12C67A1EEC419342AF5E59DA31562C3F0D901796B9@EXCHANGE1.ad.nottingham.ac.uk> Oh, the other weird thing / very worrying thing that happened, after the session ID not set thing, the workspace refreshed to list a whole load of learning objects I have never seen before: I couldn't select any of them, but they are not mine. This is what I saw: [cid:image001.png at 01CF913D.01A92A90] -----Original Message----- From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Smith, John Sent: 26 June 2014 11:12 To: For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created Should as in will have been... well by design anyway. However Pat or Ron's suggestion of php threading might be something to look into. If the copy is being done asynchronously and returning before it is complete then it could cause such a timing issue. But why now? What has changed? John Sent from Samsung tablet -------- Original message -------- From: Julian Tenney > Date: 26/06/2014 09:35 (GMT+00:00) To: For Xerte technical developers > Subject: [Xerte-dev] Re: preview.xml not created By the time the id returns, data.xml and media/ should be copied 'Should' as in will have been or 'should' as in might have been? I'm going to go and have a look later and see if I can figure out what's going on, J -----Original Message----- From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Smith, John Sent: 25 June 2014 17:12 To: xerte-dev at lists.nottingham.ac.uk Subject: [Xerte-dev] Re: preview.xml not created I think what Pat is saying confirms that it can only be synchronous. You click new and give it a name An ajax call is made to new_template When it returns with an id then that id is used to instruct the editor which LO to open. By the time the id returns, data.xml and media/ should be copied. Edit looks to see if there is a preview.xml and if not then it copies data.xml to preview.xml and then loads preview.xml Regards John Smith Learning Technologist School of Health and Life Sciences Sent from Samsung Galaxy SII Julian Tenney > wrote: No, no weird templates, it?s Nottingham for sure. I?m sure what you say answers my question ?is it synchronous or not?? But I don?t know whether it means ?yes? or ?no?. From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Pat L (pgogy) Sent: 25 June 2014 16:47 To: For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created new template.php ends in a ajax call to the editor, so it's not one block of PHP but one process. New template ends, echoes out a template id, which the ajax gets, and then fires off the editor. If the editor isn't working, I am suspecting it might be the template is weird? Is it definitely Nottingham? Not one of the old mediainteraction ones or something? On Wed, Jun 25, 2014 at 4:12 PM, Julian Tenney >> wrote: Data.xml is being created, but what seems to fail is the editor opening. Media folder is being created too. So it's the process of opening the editor that creates preview.xml? Come to think about it, I had issues myself in the same building on Monday. I just refreshed the workspace and I was in business, didn't really think about it. I found another user with the same problem: returning to the workspace later, his projects are all there and editable now. Some sort of timing issue? The editor opening and data.xml hasn't been created yet, so nothing to copy? -----Original Message----- From: xerte-dev-bounces at lists.nottingham.ac.uk> [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Smith, John Sent: 25 June 2014 16:09 To: For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created Popup blocker doesn't usually stop preview.xml being copied, or at least it's never affected me like that before... plus wouldn't the popup blocker work for others too? Edit checks for the existence of preview.xml and either opens it or copies the blank https://github.com/thexerteproject/xerteonlinetoolkits/blob/f5ad19b03ed2c76ac29cbcd0ec5199360dc61d6a/modules/xerte/edit.php#L47 There are a few checks beforehand though that could error out (like below). Check the response in Google Chrome to see if any errors are being sent back i suppose: if(empty($row_username)) { die("Invalid user id ?"); } and if(!file_exists($preview) && file_exists($data)){ copy($data, $preview); chmod($preview, 0777); } So it looks like data.xml needs to be there which comes from the Nottingham template. Is data.xml being created in the folder? And a media folder to hold the multimedia? If not then it looks like this is failing https://github.com/thexerteproject/xerteonlinetoolkits/blob/f5ad19b03ed2c76ac29cbcd0ec5199360dc61d6a/modules/site/new_template.php#L76 It puts some debug messages into the logs so you might like to check there to see if anything shows up... Regards, John Smith | Learning Technologist Room A250, Govan Mbeki Building | School of Health & Life Sciences | Glasgow Caledonian University Cowcaddens Road | Glasgow | G4 0BA Please address ALL support requests to hlsblt at gcu.ac.uk> where one of the School Learning Technologists will pick up the job. This will ensure that all jobs are completed as promptly as possible. ________________________________________ From: xerte-dev-bounces at lists.nottingham.ac.uk> [xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Julian Tenney [Julian.Tenney at nottingham.ac.uk] Sent: 25 June 2014 15:51 To: For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created No, preview is not created. I think this is maybe to do with popup blocker, so edit never opens. What order do things happen in when a project is created? -----Original Message----- From: xerte-dev-bounces at lists.nottingham.ac.uk> [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Smith, John Sent: 25 June 2014 15:47 To: For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created If the user creates a new LO and edit opens then do you see the blank, default preview.xml being copied into in the newly created USER-FILES folder? Regards, John Smith | Learning Technologist Room A250, Govan Mbeki Building | School of Health & Life Sciences | Glasgow Caledonian University Cowcaddens Road | Glasgow | G4 0BA Please address ALL support requests to hlsblt at gcu.ac.uk> where one of the School Learning Technologists will pick up the job. This will ensure that all jobs are completed as promptly as possible. ________________________________________ From: xerte-dev-bounces at lists.nottingham.ac.uk> [xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Julian Tenney [Julian.Tenney at nottingham.ac.uk] Sent: 25 June 2014 14:27 To: For Xerte technical developers (xerte-dev at lists.nottingham.ac.uk>) Subject: [Xerte-dev] Re: preview.xml not created We have only one of these usernames, dating from 2006, so predates toolkits, and not a duplicate. -----Original Message----- From: Tenney Julian Sent: 25 June 2014 12:38 To: For Xerte technical developers Subject: RE: [Xerte-dev] Re: preview.xml not created No, that looks right. At least the folder has the correct user name in it. -----Original Message----- From: xerte-dev-bounces at lists.nottingham.ac.uk> [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Julian Tenney Sent: 25 June 2014 12:04 To: For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created I'll check that. I didn't notice anything obvious though... -----Original Message----- From: xerte-dev-bounces at lists.nottingham.ac.uk> [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Ron Mitchell Sent: 25 June 2014 12:00 To: For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created My hunch would be a username issue - check username matches the folders being created including case sensitivity? Sent from my iPhone > On 25 Jun 2014, at 11:00, Julian Tenney >> wrote: > > Why only for one user? > > -----Original Message----- > From: > xerte-dev-bounces at lists.nottingham.ac.uk > s.nottingham.ac.uk> > [mailto:xerte-dev-bounces at lists.nottingham.ac.uk ces at lists.nottingham.ac.uk>] On Behalf Of David Goodwin > Sent: 25 June 2014 11:00 > To: For Xerte technical developers > Subject: [Xerte-dev] Re: preview.xml not created > > I have a feeling XOT may be mixing up it's saving of preview.xml and > data.xml - in that it saves data.xml when it should save preview.xml > etc > > David. > >> On 25/06/14 10:58, Julian Tenney wrote: >> Got a user here who logs in, tries to create a LO, but preview .xml >> isn't being created: consequently the editor has no LO icon in it >> when it loads up. Other users on same computer work fine. Any idea >> what's going on? >> >> cid:image004.jpg at 01CF905F.BC2E7D90 >> >> >> >> _______________________________________________ >> Xerte-dev mailing list >> Xerte-dev at lists.nottingham.ac.uk >> .uk> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev > > -- > Pale Purple Ltd > > PHP Web application development and support > > http://www.palepurple.co.uk > @PalePurpleLtd > 07792 380669 / 0845 0046746 > > _______________________________________________ > Xerte-dev mailing list > Xerte-dev at lists.nottingham.ac.uk. > uk> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev > > _______________________________________________ > Xerte-dev mailing list > Xerte-dev at lists.nottingham.ac.uk. > uk> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev > 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. > > 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. > > > > _______________________________________________ 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 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. 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. Glasgow Caledonian University is a registered Scottish charity, number SC021474 _______________________________________________ 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 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. 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. Glasgow Caledonian University is a registered Scottish charity, number SC021474 _______________________________________________ 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 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. 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. Glasgow Caledonian University is a registered Scottish charity, number SC021474 _______________________________________________ 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 Glasgow Caledonian University is a registered Scottish charity, number SC021474 _______________________________________________ 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: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.png Type: image/png Size: 439071 bytes Desc: image001.png URL: From ronm at mitchellmedia.co.uk Thu Jun 26 13:24:46 2014 From: ronm at mitchellmedia.co.uk (Ron Mitchell) Date: Thu, 26 Jun 2014 13:24:46 +0100 Subject: [Xerte-dev] Re: preview.xml not created In-Reply-To: <12C67A1EEC419342AF5E59DA31562C3F0D901796B3@EXCHANGE1.ad.nottingham.ac.uk> References: <12C67A1EEC419342AF5E59DA31562C3F0D901796B3@EXCHANGE1.ad.nottingham.ac.uk> Message-ID: <016501cf9139$a1a62f60$e4f28e20$@co.uk> Do you still have that onunload line in your index.php file? e.g. from previous thread Currently in 2.1 branch: removing onbeforeunload="javascript:logout()" stops the problem with IE 10. -----Original Message----- From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Julian Tenney Sent: 26 June 2014 12:47 To: Smith, John; For Xerte technical developers; xerte at pgogywebstuff.com Subject: [Xerte-dev] Re: preview.xml not created OK, I went over and had a look. In Chrome everything worked fine. In IE I very quickly hit major 'session ID not set' problems. We really need to resolve this one way or another, even if we use the new editor as the way to do it. In IE, clicking create would lead to nothing... for a few seconds... and then the popup up would open with the session ID not set error. I got this error from the page: Message: Invalid argument. Line: 1179 Char: 6 Code: 0 URI: http://www.nottingham.ac.uk/toolkits/website_code/scripts/template_management.js I think eventually I did manage to create a LO in the workspace, but not without refreshing several times until it appeared, and never from the create button directly. So maybe this has something to do with the other user problem, maybe not. I don't really know. It might be worth me getting one of you guys who knows the PHP stuff associate access to our network and see if you can reproduce it? The session ID thing has been going along for ages now, and I don't feel any closer to a resolution, and frankly, I don't really understand enough myself to try and fix it. J -----Original Message----- From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Smith, John Sent: 26 June 2014 11:25 To: xerte at pgogywebstuff.com; For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created Create a new LO and if when edit opens it is blank then right click on the header and reload/refresh If it then loads ok then the id is right but something is most likely delaying the copy of data.xml from template folder to USER-FILES folder. The copy routine has debug messages in there so you could check them and see if any that are in edit are in an unusual order when you get a problem which might or might not indicate a threading issue depending on whether it is the php execution or the file system operations that are being delayed... John Sent from Samsung tablet -------- Original message -------- From: "Pat L (pgogy)" Date: 26/06/2014 10:15 (GMT+00:00) To: For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created Should as in The PHP script has called the functions which do it It then inserts into the database and returns the ID given So unless the PHP is delayed, or threads, then can't see why. It might be the ID isn't right? On Thu, Jun 26, 2014 at 9:12 AM, Julian Tenney > wrote: By the time the id returns, data.xml and media/ should be copied 'Should' as in will have been or 'should' as in might have been? I'm going to go and have a look later and see if I can figure out what's going on, J -----Original Message----- From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Smith, John Sent: 25 June 2014 17:12 To: xerte-dev at lists.nottingham.ac.uk Subject: [Xerte-dev] Re: preview.xml not created I think what Pat is saying confirms that it can only be synchronous. You click new and give it a name An ajax call is made to new_template When it returns with an id then that id is used to instruct the editor which LO to open. By the time the id returns, data.xml and media/ should be copied. Edit looks to see if there is a preview.xml and if not then it copies data.xml to preview.xml and then loads preview.xml Regards John Smith Learning Technologist School of Health and Life Sciences Sent from Samsung Galaxy SII Julian Tenney > wrote: No, no weird templates, it?s Nottingham for sure. I?m sure what you say answers my question ?is it synchronous or not?? But I don?t know whether it means ?yes? or ?no?. From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Pat L (pgogy) Sent: 25 June 2014 16:47 To: For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created new template.php ends in a ajax call to the editor, so it's not one block of PHP but one process. New template ends, echoes out a template id, which the ajax gets, and then fires off the editor. If the editor isn't working, I am suspecting it might be the template is weird? Is it definitely Nottingham? Not one of the old mediainteraction ones or something? On Wed, Jun 25, 2014 at 4:12 PM, Julian Tenney >> wrote: Data.xml is being created, but what seems to fail is the editor opening. Media folder is being created too. So it's the process of opening the editor that creates preview.xml? Come to think about it, I had issues myself in the same building on Monday. I just refreshed the workspace and I was in business, didn't really think about it. I found another user with the same problem: returning to the workspace later, his projects are all there and editable now. Some sort of timing issue? The editor opening and data.xml hasn't been created yet, so nothing to copy? -----Original Message----- From: xerte-dev-bounces at lists.nottingham.ac.uk> [mailto:xerte-dev-bounces at lists.nottingham.ac.uk>] On Behalf Of Smith, John Sent: 25 June 2014 16:09 To: For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created Popup blocker doesn't usually stop preview.xml being copied, or at least it's never affected me like that before... plus wouldn't the popup blocker work for others too? Edit checks for the existence of preview.xml and either opens it or copies the blank https://github.com/thexerteproject/xerteonlinetoolkits/blob/f5ad19b03ed2c76ac29cbcd0ec5199360dc61d6a/modules/xerte/edit.php#L47 There are a few checks beforehand though that could error out (like below). Check the response in Google Chrome to see if any errors are being sent back i suppose: if(empty($row_username)) { die("Invalid user id ?"); } and if(!file_exists($preview) && file_exists($data)){ copy($data, $preview); chmod($preview, 0777); } So it looks like data.xml needs to be there which comes from the Nottingham template. Is data.xml being created in the folder? And a media folder to hold the multimedia? If not then it looks like this is failing https://github.com/thexerteproject/xerteonlinetoolkits/blob/f5ad19b03ed2c76ac29cbcd0ec5199360dc61d6a/modules/site/new_template.php#L76 It puts some debug messages into the logs so you might like to check there to see if anything shows up... Regards, John Smith | Learning Technologist Room A250, Govan Mbeki Building | School of Health & Life Sciences | Glasgow Caledonian University Cowcaddens Road | Glasgow | G4 0BA Please address ALL support requests to hlsblt at gcu.ac.uk> where one of the School Learning Technologists will pick up the job. This will ensure that all jobs are completed as promptly as possible. ________________________________________ From: xerte-dev-bounces at lists.nottingham.ac.uk> [xerte-dev-bounces at lists.nottingham.ac.uk>] On Behalf Of Julian Tenney [Julian.Tenney at nottingham.ac.uk>] Sent: 25 June 2014 15:51 To: For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created No, preview is not created. I think this is maybe to do with popup blocker, so edit never opens. What order do things happen in when a project is created? -----Original Message----- From: xerte-dev-bounces at lists.nottingham.ac.uk> [mailto:xerte-dev-bounces at lists.nottingham.ac.uk>] On Behalf Of Smith, John Sent: 25 June 2014 15:47 To: For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created If the user creates a new LO and edit opens then do you see the blank, default preview.xml being copied into in the newly created USER-FILES folder? Regards, John Smith | Learning Technologist Room A250, Govan Mbeki Building | School of Health & Life Sciences | Glasgow Caledonian University Cowcaddens Road | Glasgow | G4 0BA Please address ALL support requests to hlsblt at gcu.ac.uk> where one of the School Learning Technologists will pick up the job. This will ensure that all jobs are completed as promptly as possible. ________________________________________ From: xerte-dev-bounces at lists.nottingham.ac.uk> [xerte-dev-bounces at lists.nottingham.ac.uk>] On Behalf Of Julian Tenney [Julian.Tenney at nottingham.ac.uk>] Sent: 25 June 2014 14:27 To: For Xerte technical developers (xerte-dev at lists.nottingham.ac.uk>) Subject: [Xerte-dev] Re: preview.xml not created We have only one of these usernames, dating from 2006, so predates toolkits, and not a duplicate. -----Original Message----- From: Tenney Julian Sent: 25 June 2014 12:38 To: For Xerte technical developers Subject: RE: [Xerte-dev] Re: preview.xml not created No, that looks right. At least the folder has the correct user name in it. -----Original Message----- From: xerte-dev-bounces at lists.nottingham.ac.uk> [mailto:xerte-dev-bounces at lists.nottingham.ac.uk>] On Behalf Of Julian Tenney Sent: 25 June 2014 12:04 To: For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created I'll check that. I didn't notice anything obvious though... -----Original Message----- From: xerte-dev-bounces at lists.nottingham.ac.uk> [mailto:xerte-dev-bounces at lists.nottingham.ac.uk>] On Behalf Of Ron Mitchell Sent: 25 June 2014 12:00 To: For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created My hunch would be a username issue - check username matches the folders being created including case sensitivity? Sent from my iPhone > On 25 Jun 2014, at 11:00, Julian Tenney >> wrote: > > Why only for one user? > > -----Original Message----- > From: > xerte-dev-bounces at lists.nottingham.ac.uk s.nottingham.ac.uk> nces at list> s.nottingham.ac.uk> > [mailto:xerte-dev-bounces at lists.nottingham.ac.uk ces at lists.nottingham.ac.uk> n> ces at lists.nottingham.ac.uk>] On > Behalf Of David Goodwin > Sent: 25 June 2014 11:00 > To: For Xerte technical developers > Subject: [Xerte-dev] Re: preview.xml not created > > I have a feeling XOT may be mixing up it's saving of preview.xml and > data.xml - in that it saves data.xml when it should save preview.xml > etc > > David. > >> On 25/06/14 10:58, Julian Tenney wrote: >> Got a user here who logs in, tries to create a LO, but preview .xml >> isn't being created: consequently the editor has no LO icon in it >> when it loads up. Other users on same computer work fine. Any idea >> what's going on? >> >> cid:image004.jpg at 01CF905F.BC2E7D90 >> >> >> >> _______________________________________________ >> Xerte-dev mailing list >> Xerte-dev at lists.nottingham.ac.uk> .uk>> ingham.ac> .uk> >> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev > > -- > Pale Purple Ltd > > PHP Web application development and support > > http://www.palepurple.co.uk > @PalePurpleLtd > 07792 380669 / 0845 0046746 > > _______________________________________________ > Xerte-dev mailing list > Xerte-dev at lists.nottingham.ac.uk. > uk> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev > > _______________________________________________ > Xerte-dev mailing list > Xerte-dev at lists.nottingham.ac.uk. > uk> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev > 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. > > 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. > > > > _______________________________________________ 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 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. 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. Glasgow Caledonian University is a registered Scottish charity, number SC021474 _______________________________________________ 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 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. 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. Glasgow Caledonian University is a registered Scottish charity, number SC021474 _______________________________________________ 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 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. 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. Glasgow Caledonian University is a registered Scottish charity, number SC021474 _______________________________________________ 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 Glasgow Caledonian University is a registered Scottish charity, number SC021474 _______________________________________________ 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 From Julian.Tenney at nottingham.ac.uk Thu Jun 26 13:29:41 2014 From: Julian.Tenney at nottingham.ac.uk (Julian Tenney) Date: Thu, 26 Jun 2014 13:29:41 +0100 Subject: [Xerte-dev] Re: preview.xml not created In-Reply-To: <016501cf9139$a1a62f60$e4f28e20$@co.uk> References: <12C67A1EEC419342AF5E59DA31562C3F0D901796B3@EXCHANGE1.ad.nottingham.ac.uk> <016501cf9139$a1a62f60$e4f28e20$@co.uk> Message-ID: <12C67A1EEC419342AF5E59DA31562C3F0D90179701@EXCHANGE1.ad.nottingham.ac.uk> No: this is what I have: -----Original Message----- From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Ron Mitchell Sent: 26 June 2014 13:25 To: 'For Xerte technical developers' Subject: [Xerte-dev] Re: preview.xml not created Do you still have that onunload line in your index.php file? e.g. from previous thread Currently in 2.1 branch: removing onbeforeunload="javascript:logout()" stops the problem with IE 10. -----Original Message----- From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Julian Tenney Sent: 26 June 2014 12:47 To: Smith, John; For Xerte technical developers; xerte at pgogywebstuff.com Subject: [Xerte-dev] Re: preview.xml not created OK, I went over and had a look. In Chrome everything worked fine. In IE I very quickly hit major 'session ID not set' problems. We really need to resolve this one way or another, even if we use the new editor as the way to do it. In IE, clicking create would lead to nothing... for a few seconds... and then the popup up would open with the session ID not set error. I got this error from the page: Message: Invalid argument. Line: 1179 Char: 6 Code: 0 URI: http://www.nottingham.ac.uk/toolkits/website_code/scripts/template_management.js I think eventually I did manage to create a LO in the workspace, but not without refreshing several times until it appeared, and never from the create button directly. So maybe this has something to do with the other user problem, maybe not. I don't really know. It might be worth me getting one of you guys who knows the PHP stuff associate access to our network and see if you can reproduce it? The session ID thing has been going along for ages now, and I don't feel any closer to a resolution, and frankly, I don't really understand enough myself to try and fix it. J -----Original Message----- From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Smith, John Sent: 26 June 2014 11:25 To: xerte at pgogywebstuff.com; For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created Create a new LO and if when edit opens it is blank then right click on the header and reload/refresh If it then loads ok then the id is right but something is most likely delaying the copy of data.xml from template folder to USER-FILES folder. The copy routine has debug messages in there so you could check them and see if any that are in edit are in an unusual order when you get a problem which might or might not indicate a threading issue depending on whether it is the php execution or the file system operations that are being delayed... John Sent from Samsung tablet -------- Original message -------- From: "Pat L (pgogy)" > Date: 26/06/2014 10:15 (GMT+00:00) To: For Xerte technical developers > Subject: [Xerte-dev] Re: preview.xml not created Should as in The PHP script has called the functions which do it It then inserts into the database and returns the ID given So unless the PHP is delayed, or threads, then can't see why. It might be the ID isn't right? On Thu, Jun 26, 2014 at 9:12 AM, Julian Tenney >> wrote: By the time the id returns, data.xml and media/ should be copied 'Should' as in will have been or 'should' as in might have been? I'm going to go and have a look later and see if I can figure out what's going on, J -----Original Message----- From: xerte-dev-bounces at lists.nottingham.ac.uk> [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Smith, John Sent: 25 June 2014 17:12 To: xerte-dev at lists.nottingham.ac.uk> Subject: [Xerte-dev] Re: preview.xml not created I think what Pat is saying confirms that it can only be synchronous. You click new and give it a name An ajax call is made to new_template When it returns with an id then that id is used to instruct the editor which LO to open. By the time the id returns, data.xml and media/ should be copied. Edit looks to see if there is a preview.xml and if not then it copies data.xml to preview.xml and then loads preview.xml Regards John Smith Learning Technologist School of Health and Life Sciences Sent from Samsung Galaxy SII Julian Tenney >> wrote: No, no weird templates, it?s Nottingham for sure. I?m sure what you say answers my question ?is it synchronous or not?? But I don?t know whether it means ?yes? or ?no?. From: xerte-dev-bounces at lists.nottingham.ac.uk> [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Pat L (pgogy) Sent: 25 June 2014 16:47 To: For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created new template.php ends in a ajax call to the editor, so it's not one block of PHP but one process. New template ends, echoes out a template id, which the ajax gets, and then fires off the editor. If the editor isn't working, I am suspecting it might be the template is weird? Is it definitely Nottingham? Not one of the old mediainteraction ones or something? On Wed, Jun 25, 2014 at 4:12 PM, Julian Tenney >>>> wrote: Data.xml is being created, but what seems to fail is the editor opening. Media folder is being created too. So it's the process of opening the editor that creates preview.xml? Come to think about it, I had issues myself in the same building on Monday. I just refreshed the workspace and I was in business, didn't really think about it. I found another user with the same problem: returning to the workspace later, his projects are all there and editable now. Some sort of timing issue? The editor opening and data.xml hasn't been created yet, so nothing to copy? -----Original Message----- From: xerte-dev-bounces at lists.nottingham.ac.uk>> [mailto:xerte-dev-bounces at lists.nottingham.ac.uk>] On Behalf Of Smith, John Sent: 25 June 2014 16:09 To: For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created Popup blocker doesn't usually stop preview.xml being copied, or at least it's never affected me like that before... plus wouldn't the popup blocker work for others too? Edit checks for the existence of preview.xml and either opens it or copies the blank https://github.com/thexerteproject/xerteonlinetoolkits/blob/f5ad19b03ed2c76ac29cbcd0ec5199360dc61d6a/modules/xerte/edit.php#L47 There are a few checks beforehand though that could error out (like below). Check the response in Google Chrome to see if any errors are being sent back i suppose: if(empty($row_username)) { die("Invalid user id ?"); } and if(!file_exists($preview) && file_exists($data)){ copy($data, $preview); chmod($preview, 0777); } So it looks like data.xml needs to be there which comes from the Nottingham template. Is data.xml being created in the folder? And a media folder to hold the multimedia? If not then it looks like this is failing https://github.com/thexerteproject/xerteonlinetoolkits/blob/f5ad19b03ed2c76ac29cbcd0ec5199360dc61d6a/modules/site/new_template.php#L76 It puts some debug messages into the logs so you might like to check there to see if anything shows up... Regards, John Smith | Learning Technologist Room A250, Govan Mbeki Building | School of Health & Life Sciences | Glasgow Caledonian University Cowcaddens Road | Glasgow | G4 0BA Please address ALL support requests to hlsblt at gcu.ac.uk>> where one of the School Learning Technologists will pick up the job. This will ensure that all jobs are completed as promptly as possible. ________________________________________ From: xerte-dev-bounces at lists.nottingham.ac.uk>> [xerte-dev-bounces at lists.nottingham.ac.uk>>] On Behalf Of Julian Tenney [Julian.Tenney at nottingham.ac.uk>>] Sent: 25 June 2014 15:51 To: For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created No, preview is not created. I think this is maybe to do with popup blocker, so edit never opens. What order do things happen in when a project is created? -----Original Message----- From: xerte-dev-bounces at lists.nottingham.ac.uk>> [mailto:xerte-dev-bounces at lists.nottingham.ac.uk>] On Behalf Of Smith, John Sent: 25 June 2014 15:47 To: For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created If the user creates a new LO and edit opens then do you see the blank, default preview.xml being copied into in the newly created USER-FILES folder? Regards, John Smith | Learning Technologist Room A250, Govan Mbeki Building | School of Health & Life Sciences | Glasgow Caledonian University Cowcaddens Road | Glasgow | G4 0BA Please address ALL support requests to hlsblt at gcu.ac.uk>> where one of the School Learning Technologists will pick up the job. This will ensure that all jobs are completed as promptly as possible. ________________________________________ From: xerte-dev-bounces at lists.nottingham.ac.uk>> [xerte-dev-bounces at lists.nottingham.ac.uk>>] On Behalf Of Julian Tenney [Julian.Tenney at nottingham.ac.uk>>] Sent: 25 June 2014 14:27 To: For Xerte technical developers (xerte-dev at lists.nottingham.ac.uk>>) Subject: [Xerte-dev] Re: preview.xml not created We have only one of these usernames, dating from 2006, so predates toolkits, and not a duplicate. -----Original Message----- From: Tenney Julian Sent: 25 June 2014 12:38 To: For Xerte technical developers Subject: RE: [Xerte-dev] Re: preview.xml not created No, that looks right. At least the folder has the correct user name in it. -----Original Message----- From: xerte-dev-bounces at lists.nottingham.ac.uk>> [mailto:xerte-dev-bounces at lists.nottingham.ac.uk>] On Behalf Of Julian Tenney Sent: 25 June 2014 12:04 To: For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created I'll check that. I didn't notice anything obvious though... -----Original Message----- From: xerte-dev-bounces at lists.nottingham.ac.uk>> [mailto:xerte-dev-bounces at lists.nottingham.ac.uk>] On Behalf Of Ron Mitchell Sent: 25 June 2014 12:00 To: For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created My hunch would be a username issue - check username matches the folders being created including case sensitivity? Sent from my iPhone > On 25 Jun 2014, at 11:00, Julian Tenney >>>> wrote: > > Why only for one user? > > -----Original Message----- > From: > xerte-dev-bounces at lists.nottingham.ac.uk > s.nottingham.ac.uk> nces at list> s.nottingham.ac.uk> > [mailto:xerte-dev-bounces at lists.nottingham.ac.uk ces at lists.nottingham.ac.uk> > n> ces at lists.nottingham.ac.uk>>] On > Behalf Of David Goodwin > Sent: 25 June 2014 11:00 > To: For Xerte technical developers > Subject: [Xerte-dev] Re: preview.xml not created > > I have a feeling XOT may be mixing up it's saving of preview.xml and > data.xml - in that it saves data.xml when it should save preview.xml > etc > > David. > >> On 25/06/14 10:58, Julian Tenney wrote: >> Got a user here who logs in, tries to create a LO, but preview .xml >> isn't being created: consequently the editor has no LO icon in it >> when it loads up. Other users on same computer work fine. Any idea >> what's going on? >> >> cid:image004.jpg at 01CF905F.BC2E7D90 >> >> >> >> _______________________________________________ >> Xerte-dev mailing list >> Xerte-dev at lists.nottingham.ac.uk >> .uk>> ingham.ac> .uk> >> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev > > -- > Pale Purple Ltd > > PHP Web application development and support > > http://www.palepurple.co.uk > @PalePurpleLtd > 07792 380669 / 0845 0046746 > > _______________________________________________ > Xerte-dev mailing list > Xerte-dev at lists.nottingham.ac.uk>. > uk> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev > > _______________________________________________ > Xerte-dev mailing list > Xerte-dev at lists.nottingham.ac.uk>. > uk> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev > 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. > > 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. > > > > _______________________________________________ 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 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. 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. Glasgow Caledonian University is a registered Scottish charity, number SC021474 _______________________________________________ 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 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. 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. Glasgow Caledonian University is a registered Scottish charity, number SC021474 _______________________________________________ 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 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. 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. Glasgow Caledonian University is a registered Scottish charity, number SC021474 _______________________________________________ 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 Glasgow Caledonian University is a registered Scottish charity, number SC021474 _______________________________________________ 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: From ronm at mitchellmedia.co.uk Thu Jun 26 13:35:14 2014 From: ronm at mitchellmedia.co.uk (Ron Mitchell) Date: Thu, 26 Jun 2014 13:35:14 +0100 Subject: [Xerte-dev] Re: preview.xml not created In-Reply-To: <016501cf9139$a1a62f60$e4f28e20$@co.uk> References: <12C67A1EEC419342AF5E59DA31562C3F0D901796B3@EXCHANGE1.ad.nottingham.ac.uk> <016501cf9139$a1a62f60$e4f28e20$@co.uk> Message-ID: <016f01cf913b$153ab260$3fb01720$@co.uk> also re >"The session ID thing has been going along for ages now..."< This is anecdotal but as far as I'm aware we weren't able to replicate the session ID problem you were getting (I think with with Firefox) but certainly did get session ID issues with that onbeforeunload="javascript:logout()" line added. With that removed I'm not aware of any session ID issues and would hear about it if there were. -----Original Message----- From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Ron Mitchell Sent: 26 June 2014 13:25 To: 'For Xerte technical developers' Subject: [Xerte-dev] Re: preview.xml not created Do you still have that onunload line in your index.php file? e.g. from previous thread Currently in 2.1 branch: removing onbeforeunload="javascript:logout()" stops the problem with IE 10. -----Original Message----- From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Julian Tenney Sent: 26 June 2014 12:47 To: Smith, John; For Xerte technical developers; xerte at pgogywebstuff.com Subject: [Xerte-dev] Re: preview.xml not created OK, I went over and had a look. In Chrome everything worked fine. In IE I very quickly hit major 'session ID not set' problems. We really need to resolve this one way or another, even if we use the new editor as the way to do it. In IE, clicking create would lead to nothing... for a few seconds... and then the popup up would open with the session ID not set error. I got this error from the page: Message: Invalid argument. Line: 1179 Char: 6 Code: 0 URI: http://www.nottingham.ac.uk/toolkits/website_code/scripts/template_management.js I think eventually I did manage to create a LO in the workspace, but not without refreshing several times until it appeared, and never from the create button directly. So maybe this has something to do with the other user problem, maybe not. I don't really know. It might be worth me getting one of you guys who knows the PHP stuff associate access to our network and see if you can reproduce it? The session ID thing has been going along for ages now, and I don't feel any closer to a resolution, and frankly, I don't really understand enough myself to try and fix it. J -----Original Message----- From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Smith, John Sent: 26 June 2014 11:25 To: xerte at pgogywebstuff.com; For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created Create a new LO and if when edit opens it is blank then right click on the header and reload/refresh If it then loads ok then the id is right but something is most likely delaying the copy of data.xml from template folder to USER-FILES folder. The copy routine has debug messages in there so you could check them and see if any that are in edit are in an unusual order when you get a problem which might or might not indicate a threading issue depending on whether it is the php execution or the file system operations that are being delayed... John Sent from Samsung tablet -------- Original message -------- From: "Pat L (pgogy)" Date: 26/06/2014 10:15 (GMT+00:00) To: For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created Should as in The PHP script has called the functions which do it It then inserts into the database and returns the ID given So unless the PHP is delayed, or threads, then can't see why. It might be the ID isn't right? On Thu, Jun 26, 2014 at 9:12 AM, Julian Tenney > wrote: By the time the id returns, data.xml and media/ should be copied 'Should' as in will have been or 'should' as in might have been? I'm going to go and have a look later and see if I can figure out what's going on, J -----Original Message----- From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Smith, John Sent: 25 June 2014 17:12 To: xerte-dev at lists.nottingham.ac.uk Subject: [Xerte-dev] Re: preview.xml not created I think what Pat is saying confirms that it can only be synchronous. You click new and give it a name An ajax call is made to new_template When it returns with an id then that id is used to instruct the editor which LO to open. By the time the id returns, data.xml and media/ should be copied. Edit looks to see if there is a preview.xml and if not then it copies data.xml to preview.xml and then loads preview.xml Regards John Smith Learning Technologist School of Health and Life Sciences Sent from Samsung Galaxy SII Julian Tenney > wrote: No, no weird templates, it?s Nottingham for sure. I?m sure what you say answers my question ?is it synchronous or not?? But I don?t know whether it means ?yes? or ?no?. From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Pat L (pgogy) Sent: 25 June 2014 16:47 To: For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created new template.php ends in a ajax call to the editor, so it's not one block of PHP but one process. New template ends, echoes out a template id, which the ajax gets, and then fires off the editor. If the editor isn't working, I am suspecting it might be the template is weird? Is it definitely Nottingham? Not one of the old mediainteraction ones or something? On Wed, Jun 25, 2014 at 4:12 PM, Julian Tenney >> wrote: Data.xml is being created, but what seems to fail is the editor opening. Media folder is being created too. So it's the process of opening the editor that creates preview.xml? Come to think about it, I had issues myself in the same building on Monday. I just refreshed the workspace and I was in business, didn't really think about it. I found another user with the same problem: returning to the workspace later, his projects are all there and editable now. Some sort of timing issue? The editor opening and data.xml hasn't been created yet, so nothing to copy? -----Original Message----- From: xerte-dev-bounces at lists.nottingham.ac.uk> [mailto:xerte-dev-bounces at lists.nottingham.ac.uk>] On Behalf Of Smith, John Sent: 25 June 2014 16:09 To: For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created Popup blocker doesn't usually stop preview.xml being copied, or at least it's never affected me like that before... plus wouldn't the popup blocker work for others too? Edit checks for the existence of preview.xml and either opens it or copies the blank https://github.com/thexerteproject/xerteonlinetoolkits/blob/f5ad19b03ed2c76ac29cbcd0ec5199360dc61d6a/modules/xerte/edit.php#L47 There are a few checks beforehand though that could error out (like below). Check the response in Google Chrome to see if any errors are being sent back i suppose: if(empty($row_username)) { die("Invalid user id ?"); } and if(!file_exists($preview) && file_exists($data)){ copy($data, $preview); chmod($preview, 0777); } So it looks like data.xml needs to be there which comes from the Nottingham template. Is data.xml being created in the folder? And a media folder to hold the multimedia? If not then it looks like this is failing https://github.com/thexerteproject/xerteonlinetoolkits/blob/f5ad19b03ed2c76ac29cbcd0ec5199360dc61d6a/modules/site/new_template.php#L76 It puts some debug messages into the logs so you might like to check there to see if anything shows up... Regards, John Smith | Learning Technologist Room A250, Govan Mbeki Building | School of Health & Life Sciences | Glasgow Caledonian University Cowcaddens Road | Glasgow | G4 0BA Please address ALL support requests to hlsblt at gcu.ac.uk> where one of the School Learning Technologists will pick up the job. This will ensure that all jobs are completed as promptly as possible. ________________________________________ From: xerte-dev-bounces at lists.nottingham.ac.uk> [xerte-dev-bounces at lists.nottingham.ac.uk>] On Behalf Of Julian Tenney [Julian.Tenney at nottingham.ac.uk>] Sent: 25 June 2014 15:51 To: For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created No, preview is not created. I think this is maybe to do with popup blocker, so edit never opens. What order do things happen in when a project is created? -----Original Message----- From: xerte-dev-bounces at lists.nottingham.ac.uk> [mailto:xerte-dev-bounces at lists.nottingham.ac.uk>] On Behalf Of Smith, John Sent: 25 June 2014 15:47 To: For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created If the user creates a new LO and edit opens then do you see the blank, default preview.xml being copied into in the newly created USER-FILES folder? Regards, John Smith | Learning Technologist Room A250, Govan Mbeki Building | School of Health & Life Sciences | Glasgow Caledonian University Cowcaddens Road | Glasgow | G4 0BA Please address ALL support requests to hlsblt at gcu.ac.uk> where one of the School Learning Technologists will pick up the job. This will ensure that all jobs are completed as promptly as possible. ________________________________________ From: xerte-dev-bounces at lists.nottingham.ac.uk> [xerte-dev-bounces at lists.nottingham.ac.uk>] On Behalf Of Julian Tenney [Julian.Tenney at nottingham.ac.uk>] Sent: 25 June 2014 14:27 To: For Xerte technical developers (xerte-dev at lists.nottingham.ac.uk>) Subject: [Xerte-dev] Re: preview.xml not created We have only one of these usernames, dating from 2006, so predates toolkits, and not a duplicate. -----Original Message----- From: Tenney Julian Sent: 25 June 2014 12:38 To: For Xerte technical developers Subject: RE: [Xerte-dev] Re: preview.xml not created No, that looks right. At least the folder has the correct user name in it. -----Original Message----- From: xerte-dev-bounces at lists.nottingham.ac.uk> [mailto:xerte-dev-bounces at lists.nottingham.ac.uk>] On Behalf Of Julian Tenney Sent: 25 June 2014 12:04 To: For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created I'll check that. I didn't notice anything obvious though... -----Original Message----- From: xerte-dev-bounces at lists.nottingham.ac.uk> [mailto:xerte-dev-bounces at lists.nottingham.ac.uk>] On Behalf Of Ron Mitchell Sent: 25 June 2014 12:00 To: For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created My hunch would be a username issue - check username matches the folders being created including case sensitivity? Sent from my iPhone > On 25 Jun 2014, at 11:00, Julian Tenney >> wrote: > > Why only for one user? > > -----Original Message----- > From: > xerte-dev-bounces at lists.nottingham.ac.uk s.nottingham.ac.uk> nces at list> s.nottingham.ac.uk> > [mailto:xerte-dev-bounces at lists.nottingham.ac.uk ces at lists.nottingham.ac.uk> n> ces at lists.nottingham.ac.uk>] On > Behalf Of David Goodwin > Sent: 25 June 2014 11:00 > To: For Xerte technical developers > Subject: [Xerte-dev] Re: preview.xml not created > > I have a feeling XOT may be mixing up it's saving of preview.xml and > data.xml - in that it saves data.xml when it should save preview.xml > etc > > David. > >> On 25/06/14 10:58, Julian Tenney wrote: >> Got a user here who logs in, tries to create a LO, but preview .xml >> isn't being created: consequently the editor has no LO icon in it >> when it loads up. Other users on same computer work fine. Any idea >> what's going on? >> >> cid:image004.jpg at 01CF905F.BC2E7D90 >> >> >> >> _______________________________________________ >> Xerte-dev mailing list >> Xerte-dev at lists.nottingham.ac.uk> .uk>> ingham.ac> .uk> >> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev > > -- > Pale Purple Ltd > > PHP Web application development and support > > http://www.palepurple.co.uk > @PalePurpleLtd > 07792 380669 / 0845 0046746 > > _______________________________________________ > Xerte-dev mailing list > Xerte-dev at lists.nottingham.ac.uk. > uk> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev > > _______________________________________________ > Xerte-dev mailing list > Xerte-dev at lists.nottingham.ac.uk. > uk> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev > 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. > > 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. > > > > _______________________________________________ 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 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. 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. Glasgow Caledonian University is a registered Scottish charity, number SC021474 _______________________________________________ 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 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. 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. Glasgow Caledonian University is a registered Scottish charity, number SC021474 _______________________________________________ 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 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. 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. Glasgow Caledonian University is a registered Scottish charity, number SC021474 _______________________________________________ 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 Glasgow Caledonian University is a registered Scottish charity, number SC021474 _______________________________________________ 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 From ronm at mitchellmedia.co.uk Thu Jun 26 13:37:45 2014 From: ronm at mitchellmedia.co.uk (Ron Mitchell) Date: Thu, 26 Jun 2014 13:37:45 +0100 Subject: [Xerte-dev] Re: preview.xml not created In-Reply-To: <12C67A1EEC419342AF5E59DA31562C3F0D90179701@EXCHANGE1.ad.nottingham.ac.uk> References: <12C67A1EEC419342AF5E59DA31562C3F0D901796B3@EXCHANGE1.ad.nottingham.ac.uk> <016501cf9139$a1a62f60$e4f28e20$@co.uk> <12C67A1EEC419342AF5E59DA31562C3F0D90179701@EXCHANGE1.ad.nottingham.ac.uk> Message-ID: <017601cf913b$6ef8a280$4ce9e780$@co.uk> Ok worth checking, so ignore my subsequent reply, except that really not aware of anywhere else having session id issues. From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Julian Tenney Sent: 26 June 2014 13:30 To: For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created No: this is what I have: -----Original Message----- From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Ron Mitchell Sent: 26 June 2014 13:25 To: 'For Xerte technical developers' Subject: [Xerte-dev] Re: preview.xml not created Do you still have that onunload line in your index.php file? e.g. from previous thread Currently in 2.1 branch: removing onbeforeunload="javascript:logout()" stops the problem with IE 10. -----Original Message----- From: xerte-dev-bounces at lists.nottingham.ac.uk [ mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Julian Tenney Sent: 26 June 2014 12:47 To: Smith, John; For Xerte technical developers; xerte at pgogywebstuff.com Subject: [Xerte-dev] Re: preview.xml not created OK, I went over and had a look. In Chrome everything worked fine. In IE I very quickly hit major 'session ID not set' problems. We really need to resolve this one way or another, even if we use the new editor as the way to do it. In IE, clicking create would lead to nothing... for a few seconds... and then the popup up would open with the session ID not set error. I got this error from the page: Message: Invalid argument. Line: 1179 Char: 6 Code: 0 URI: http://www.nottingham.ac.uk/toolkits/website_code/scripts/template_management.js I think eventually I did manage to create a LO in the workspace, but not without refreshing several times until it appeared, and never from the create button directly. So maybe this has something to do with the other user problem, maybe not. I don't really know. It might be worth me getting one of you guys who knows the PHP stuff associate access to our network and see if you can reproduce it? The session ID thing has been going along for ages now, and I don't feel any closer to a resolution, and frankly, I don't really understand enough myself to try and fix it. J -----Original Message----- From: xerte-dev-bounces at lists.nottingham.ac.uk [ mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Smith, John Sent: 26 June 2014 11:25 To: xerte at pgogywebstuff.com; For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created Create a new LO and if when edit opens it is blank then right click on the header and reload/refresh If it then loads ok then the id is right but something is most likely delaying the copy of data.xml from template folder to USER-FILES folder. The copy routine has debug messages in there so you could check them and see if any that are in edit are in an unusual order when you get a problem which might or might not indicate a threading issue depending on whether it is the php execution or the file system operations that are being delayed... John Sent from Samsung tablet -------- Original message -------- From: "Pat L (pgogy)" < xerte at pgogywebstuff.com> Date: 26/06/2014 10:15 (GMT+00:00) To: For Xerte technical developers < xerte-dev at lists.nottingham.ac.uk> Subject: [Xerte-dev] Re: preview.xml not created Should as in The PHP script has called the functions which do it It then inserts into the database and returns the ID given So unless the PHP is delayed, or threads, then can't see why. It might be the ID isn't right? On Thu, Jun 26, 2014 at 9:12 AM, Julian Tenney < Julian.Tenney at nottingham.ac.uk> wrote: By the time the id returns, data.xml and media/ should be copied 'Should' as in will have been or 'should' as in might have been? I'm going to go and have a look later and see if I can figure out what's going on, J -----Original Message----- From: xerte-dev-bounces at lists.nottingham.ac.uk [ mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Smith, John Sent: 25 June 2014 17:12 To: xerte-dev at lists.nottingham.ac.uk Subject: [Xerte-dev] Re: preview.xml not created I think what Pat is saying confirms that it can only be synchronous. You click new and give it a name An ajax call is made to new_template When it returns with an id then that id is used to instruct the editor which LO to open. By the time the id returns, data.xml and media/ should be copied. Edit looks to see if there is a preview.xml and if not then it copies data.xml to preview.xml and then loads preview.xml Regards John Smith Learning Technologist School of Health and Life Sciences Sent from Samsung Galaxy SII Julian Tenney < Julian.Tenney at nottingham.ac.uk> wrote: No, no weird templates, it?s Nottingham for sure. I?m sure what you say answers my question ?is it synchronous or not?? But I don?t know whether it means ?yes? or ?no?. From: xerte-dev-bounces at lists.nottingham.ac.uk [ mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Pat L (pgogy) Sent: 25 June 2014 16:47 To: For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created new template.php ends in a ajax call to the editor, so it's not one block of PHP but one process. New template ends, echoes out a template id, which the ajax gets, and then fires off the editor. If the editor isn't working, I am suspecting it might be the template is weird? Is it definitely Nottingham? Not one of the old mediainteraction ones or something? On Wed, Jun 25, 2014 at 4:12 PM, Julian Tenney < Julian.Tenney at nottingham.ac.uk< mailto:Julian.Tenney at nottingham.ac.uk>> wrote: Data.xml is being created, but what seems to fail is the editor opening. Media folder is being created too. So it's the process of opening the editor that creates preview.xml? Come to think about it, I had issues myself in the same building on Monday. I just refreshed the workspace and I was in business, didn't really think about it. I found another user with the same problem: returning to the workspace later, his projects are all there and editable now. Some sort of timing issue? The editor opening and data.xml hasn't been created yet, so nothing to copy? -----Original Message----- From: xerte-dev-bounces at lists.nottingham.ac.uk> [ mailto:xerte-dev-bounces at lists.nottingham.ac.uk>] On Behalf Of Smith, John Sent: 25 June 2014 16:09 To: For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created Popup blocker doesn't usually stop preview.xml being copied, or at least it's never affected me like that before... plus wouldn't the popup blocker work for others too? Edit checks for the existence of preview.xml and either opens it or copies the blank https://github.com/thexerteproject/xerteonlinetoolkits/blob/f5ad19b03ed2c76ac29cbcd0ec5199360dc61d6a/modules/xerte/edit.php#L47 There are a few checks beforehand though that could error out (like below). Check the response in Google Chrome to see if any errors are being sent back i suppose: if(empty($row_username)) { die("Invalid user id ?"); } and if(!file_exists($preview) && file_exists($data)){ copy($data, $preview); chmod($preview, 0777); } So it looks like data.xml needs to be there which comes from the Nottingham template. Is data.xml being created in the folder? And a media folder to hold the multimedia? If not then it looks like this is failing https://github.com/thexerteproject/xerteonlinetoolkits/blob/f5ad19b03ed2c76ac29cbcd0ec5199360dc61d6a/modules/site/new_template.php#L76 It puts some debug messages into the logs so you might like to check there to see if anything shows up... Regards, John Smith | Learning Technologist Room A250, Govan Mbeki Building | School of Health & Life Sciences | Glasgow Caledonian University Cowcaddens Road | Glasgow | G4 0BA Please address ALL support requests to hlsblt at gcu.ac.uk> where one of the School Learning Technologists will pick up the job. This will ensure that all jobs are completed as promptly as possible. ________________________________________ From: xerte-dev-bounces at lists.nottingham.ac.uk> [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 Julian Tenney [Julian.Tenney at nottingham.ac.uk< mailto:Julian.Tenney at nottingham.ac.uk>< mailto:Julian.Tenney at nottingham.ac.uk>] Sent: 25 June 2014 15:51 To: For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created No, preview is not created. I think this is maybe to do with popup blocker, so edit never opens. What order do things happen in when a project is created? -----Original Message----- From: xerte-dev-bounces at lists.nottingham.ac.uk> [ mailto:xerte-dev-bounces at lists.nottingham.ac.uk>] On Behalf Of Smith, John Sent: 25 June 2014 15:47 To: For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created If the user creates a new LO and edit opens then do you see the blank, default preview.xml being copied into in the newly created USER-FILES folder? Regards, John Smith | Learning Technologist Room A250, Govan Mbeki Building | School of Health & Life Sciences | Glasgow Caledonian University Cowcaddens Road | Glasgow | G4 0BA Please address ALL support requests to hlsblt at gcu.ac.uk> where one of the School Learning Technologists will pick up the job. This will ensure that all jobs are completed as promptly as possible. ________________________________________ From: xerte-dev-bounces at lists.nottingham.ac.uk> [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 Julian Tenney [Julian.Tenney at nottingham.ac.uk< mailto:Julian.Tenney at nottingham.ac.uk>< mailto:Julian.Tenney at nottingham.ac.uk>] Sent: 25 June 2014 14:27 To: For Xerte technical developers ( xerte-dev at lists.nottingham.ac.uk>) Subject: [Xerte-dev] Re: preview.xml not created We have only one of these usernames, dating from 2006, so predates toolkits, and not a duplicate. -----Original Message----- From: Tenney Julian Sent: 25 June 2014 12:38 To: For Xerte technical developers Subject: RE: [Xerte-dev] Re: preview.xml not created No, that looks right. At least the folder has the correct user name in it. -----Original Message----- From: xerte-dev-bounces at lists.nottingham.ac.uk> [ mailto:xerte-dev-bounces at lists.nottingham.ac.uk>] On Behalf Of Julian Tenney Sent: 25 June 2014 12:04 To: For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created I'll check that. I didn't notice anything obvious though... -----Original Message----- From: xerte-dev-bounces at lists.nottingham.ac.uk> [ mailto:xerte-dev-bounces at lists.nottingham.ac.uk>] On Behalf Of Ron Mitchell Sent: 25 June 2014 12:00 To: For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created My hunch would be a username issue - check username matches the folders being created including case sensitivity? Sent from my iPhone > On 25 Jun 2014, at 11:00, Julian Tenney < Julian.Tenney at nottingham.ac.uk< mailto:Julian.Tenney at nottingham.ac.uk>> wrote: > > Why only for one user? > > -----Original Message----- > From: > xerte-dev-bounces at lists.nottingham.ac.uk s.nottingham.ac.uk> nces at list> s.nottingham.ac.uk< http://s.nottingham.ac.uk>> > [mailto:xerte-dev-bounces at lists.nottingham.ac.uk ces at lists.nottingham.ac.uk> n> ces at lists.nottingham.ac.uk>] On > Behalf Of David Goodwin > Sent: 25 June 2014 11:00 > To: For Xerte technical developers > Subject: [Xerte-dev] Re: preview.xml not created > > I have a feeling XOT may be mixing up it's saving of preview.xml and > data.xml - in that it saves data.xml when it should save preview.xml > etc > > David. > >> On 25/06/14 10:58, Julian Tenney wrote: >> Got a user here who logs in, tries to create a LO, but preview .xml >> isn't being created: consequently the editor has no LO icon in it >> when it loads up. Other users on same computer work fine. Any idea >> what's going on? >> >> cid:image004.jpg at 01CF905F.BC2E7D90 >> >> >> >> _______________________________________________ >> Xerte-dev mailing list >> Xerte-dev at lists.nottingham.ac.uk> .uk>> ingham.ac> .uk> >> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev > > -- > Pale Purple Ltd > > PHP Web application development and support > > http://www.palepurple.co.uk > @PalePurpleLtd > 07792 380669 / 0845 0046746 > > _______________________________________________ > Xerte-dev mailing list > Xerte-dev at lists.nottingham.ac.uk. > uk> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev > > _______________________________________________ > Xerte-dev mailing list > Xerte-dev at lists.nottingham.ac.uk. > uk> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev > 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. > > 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. > > > > _______________________________________________ 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 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. 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. Glasgow Caledonian University is a registered Scottish charity, number SC021474 _______________________________________________ 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 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. 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. Glasgow Caledonian University is a registered Scottish charity, number SC021474 _______________________________________________ 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 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. 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. Glasgow Caledonian University is a registered Scottish charity, number SC021474 _______________________________________________ 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 Glasgow Caledonian University is a registered Scottish charity, number SC021474 _______________________________________________ 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: From Julian.Tenney at nottingham.ac.uk Thu Jun 26 13:38:18 2014 From: Julian.Tenney at nottingham.ac.uk (Julian Tenney) Date: Thu, 26 Jun 2014 13:38:18 +0100 Subject: [Xerte-dev] Re: preview.xml not created In-Reply-To: <016f01cf913b$153ab260$3fb01720$@co.uk> References: <12C67A1EEC419342AF5E59DA31562C3F0D901796B3@EXCHANGE1.ad.nottingham.ac.uk> <016501cf9139$a1a62f60$e4f28e20$@co.uk> <016f01cf913b$153ab260$3fb01720$@co.uk> Message-ID: <12C67A1EEC419342AF5E59DA31562C3F0D90179716@EXCHANGE1.ad.nottingham.ac.uk> I thought it had gone away as well, but not this morning. I'm not having a dig by the way. -----Original Message----- From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Ron Mitchell Sent: 26 June 2014 13:35 To: 'For Xerte technical developers' Subject: [Xerte-dev] Re: preview.xml not created also re >"The session ID thing has been going along for ages now..."< This is anecdotal but as far as I'm aware we weren't able to replicate the session ID problem you were getting (I think with with Firefox) but certainly did get session ID issues with that onbeforeunload="javascript:logout()" line added. With that removed I'm not aware of any session ID issues and would hear about it if there were. -----Original Message----- From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Ron Mitchell Sent: 26 June 2014 13:25 To: 'For Xerte technical developers' Subject: [Xerte-dev] Re: preview.xml not created Do you still have that onunload line in your index.php file? e.g. from previous thread Currently in 2.1 branch: removing onbeforeunload="javascript:logout()" stops the problem with IE 10. -----Original Message----- From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Julian Tenney Sent: 26 June 2014 12:47 To: Smith, John; For Xerte technical developers; xerte at pgogywebstuff.com Subject: [Xerte-dev] Re: preview.xml not created OK, I went over and had a look. In Chrome everything worked fine. In IE I very quickly hit major 'session ID not set' problems. We really need to resolve this one way or another, even if we use the new editor as the way to do it. In IE, clicking create would lead to nothing... for a few seconds... and then the popup up would open with the session ID not set error. I got this error from the page: Message: Invalid argument. Line: 1179 Char: 6 Code: 0 URI: http://www.nottingham.ac.uk/toolkits/website_code/scripts/template_management.js I think eventually I did manage to create a LO in the workspace, but not without refreshing several times until it appeared, and never from the create button directly. So maybe this has something to do with the other user problem, maybe not. I don't really know. It might be worth me getting one of you guys who knows the PHP stuff associate access to our network and see if you can reproduce it? The session ID thing has been going along for ages now, and I don't feel any closer to a resolution, and frankly, I don't really understand enough myself to try and fix it. J -----Original Message----- From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Smith, John Sent: 26 June 2014 11:25 To: xerte at pgogywebstuff.com; For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created Create a new LO and if when edit opens it is blank then right click on the header and reload/refresh If it then loads ok then the id is right but something is most likely delaying the copy of data.xml from template folder to USER-FILES folder. The copy routine has debug messages in there so you could check them and see if any that are in edit are in an unusual order when you get a problem which might or might not indicate a threading issue depending on whether it is the php execution or the file system operations that are being delayed... John Sent from Samsung tablet -------- Original message -------- From: "Pat L (pgogy)" Date: 26/06/2014 10:15 (GMT+00:00) To: For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created Should as in The PHP script has called the functions which do it It then inserts into the database and returns the ID given So unless the PHP is delayed, or threads, then can't see why. It might be the ID isn't right? On Thu, Jun 26, 2014 at 9:12 AM, Julian Tenney > wrote: By the time the id returns, data.xml and media/ should be copied 'Should' as in will have been or 'should' as in might have been? I'm going to go and have a look later and see if I can figure out what's going on, J -----Original Message----- From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Smith, John Sent: 25 June 2014 17:12 To: xerte-dev at lists.nottingham.ac.uk Subject: [Xerte-dev] Re: preview.xml not created I think what Pat is saying confirms that it can only be synchronous. You click new and give it a name An ajax call is made to new_template When it returns with an id then that id is used to instruct the editor which LO to open. By the time the id returns, data.xml and media/ should be copied. Edit looks to see if there is a preview.xml and if not then it copies data.xml to preview.xml and then loads preview.xml Regards John Smith Learning Technologist School of Health and Life Sciences Sent from Samsung Galaxy SII Julian Tenney > wrote: No, no weird templates, it?s Nottingham for sure. I?m sure what you say answers my question ?is it synchronous or not?? But I don?t know whether it means ?yes? or ?no?. From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Pat L (pgogy) Sent: 25 June 2014 16:47 To: For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created new template.php ends in a ajax call to the editor, so it's not one block of PHP but one process. New template ends, echoes out a template id, which the ajax gets, and then fires off the editor. If the editor isn't working, I am suspecting it might be the template is weird? Is it definitely Nottingham? Not one of the old mediainteraction ones or something? On Wed, Jun 25, 2014 at 4:12 PM, Julian Tenney >> wrote: Data.xml is being created, but what seems to fail is the editor opening. Media folder is being created too. So it's the process of opening the editor that creates preview.xml? Come to think about it, I had issues myself in the same building on Monday. I just refreshed the workspace and I was in business, didn't really think about it. I found another user with the same problem: returning to the workspace later, his projects are all there and editable now. Some sort of timing issue? The editor opening and data.xml hasn't been created yet, so nothing to copy? -----Original Message----- From: xerte-dev-bounces at lists.nottingham.ac.uk> [mailto:xerte-dev-bounces at lists.nottingham.ac.uk>] On Behalf Of Smith, John Sent: 25 June 2014 16:09 To: For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created Popup blocker doesn't usually stop preview.xml being copied, or at least it's never affected me like that before... plus wouldn't the popup blocker work for others too? Edit checks for the existence of preview.xml and either opens it or copies the blank https://github.com/thexerteproject/xerteonlinetoolkits/blob/f5ad19b03ed2c76ac29cbcd0ec5199360dc61d6a/modules/xerte/edit.php#L47 There are a few checks beforehand though that could error out (like below). Check the response in Google Chrome to see if any errors are being sent back i suppose: if(empty($row_username)) { die("Invalid user id ?"); } and if(!file_exists($preview) && file_exists($data)){ copy($data, $preview); chmod($preview, 0777); } So it looks like data.xml needs to be there which comes from the Nottingham template. Is data.xml being created in the folder? And a media folder to hold the multimedia? If not then it looks like this is failing https://github.com/thexerteproject/xerteonlinetoolkits/blob/f5ad19b03ed2c76ac29cbcd0ec5199360dc61d6a/modules/site/new_template.php#L76 It puts some debug messages into the logs so you might like to check there to see if anything shows up... Regards, John Smith | Learning Technologist Room A250, Govan Mbeki Building | School of Health & Life Sciences | Glasgow Caledonian University Cowcaddens Road | Glasgow | G4 0BA Please address ALL support requests to hlsblt at gcu.ac.uk> where one of the School Learning Technologists will pick up the job. This will ensure that all jobs are completed as promptly as possible. ________________________________________ From: xerte-dev-bounces at lists.nottingham.ac.uk> [xerte-dev-bounces at lists.nottingham.ac.uk>] On Behalf Of Julian Tenney [Julian.Tenney at nottingham.ac.uk>] Sent: 25 June 2014 15:51 To: For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created No, preview is not created. I think this is maybe to do with popup blocker, so edit never opens. What order do things happen in when a project is created? -----Original Message----- From: xerte-dev-bounces at lists.nottingham.ac.uk> [mailto:xerte-dev-bounces at lists.nottingham.ac.uk>] On Behalf Of Smith, John Sent: 25 June 2014 15:47 To: For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created If the user creates a new LO and edit opens then do you see the blank, default preview.xml being copied into in the newly created USER-FILES folder? Regards, John Smith | Learning Technologist Room A250, Govan Mbeki Building | School of Health & Life Sciences | Glasgow Caledonian University Cowcaddens Road | Glasgow | G4 0BA Please address ALL support requests to hlsblt at gcu.ac.uk> where one of the School Learning Technologists will pick up the job. This will ensure that all jobs are completed as promptly as possible. ________________________________________ From: xerte-dev-bounces at lists.nottingham.ac.uk> [xerte-dev-bounces at lists.nottingham.ac.uk>] On Behalf Of Julian Tenney [Julian.Tenney at nottingham.ac.uk>] Sent: 25 June 2014 14:27 To: For Xerte technical developers (xerte-dev at lists.nottingham.ac.uk>) Subject: [Xerte-dev] Re: preview.xml not created We have only one of these usernames, dating from 2006, so predates toolkits, and not a duplicate. -----Original Message----- From: Tenney Julian Sent: 25 June 2014 12:38 To: For Xerte technical developers Subject: RE: [Xerte-dev] Re: preview.xml not created No, that looks right. At least the folder has the correct user name in it. -----Original Message----- From: xerte-dev-bounces at lists.nottingham.ac.uk> [mailto:xerte-dev-bounces at lists.nottingham.ac.uk>] On Behalf Of Julian Tenney Sent: 25 June 2014 12:04 To: For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created I'll check that. I didn't notice anything obvious though... -----Original Message----- From: xerte-dev-bounces at lists.nottingham.ac.uk> [mailto:xerte-dev-bounces at lists.nottingham.ac.uk>] On Behalf Of Ron Mitchell Sent: 25 June 2014 12:00 To: For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created My hunch would be a username issue - check username matches the folders being created including case sensitivity? Sent from my iPhone > On 25 Jun 2014, at 11:00, Julian Tenney >> wrote: > > Why only for one user? > > -----Original Message----- > From: > xerte-dev-bounces at lists.nottingham.ac.uk s.nottingham.ac.uk> nces at list> s.nottingham.ac.uk> > [mailto:xerte-dev-bounces at lists.nottingham.ac.uk ces at lists.nottingham.ac.uk> n> ces at lists.nottingham.ac.uk>] On > Behalf Of David Goodwin > Sent: 25 June 2014 11:00 > To: For Xerte technical developers > Subject: [Xerte-dev] Re: preview.xml not created > > I have a feeling XOT may be mixing up it's saving of preview.xml and > data.xml - in that it saves data.xml when it should save preview.xml > etc > > David. > >> On 25/06/14 10:58, Julian Tenney wrote: >> Got a user here who logs in, tries to create a LO, but preview .xml >> isn't being created: consequently the editor has no LO icon in it >> when it loads up. Other users on same computer work fine. Any idea >> what's going on? >> >> cid:image004.jpg at 01CF905F.BC2E7D90 >> >> >> >> _______________________________________________ >> Xerte-dev mailing list >> Xerte-dev at lists.nottingham.ac.uk> .uk>> ingham.ac> .uk> >> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev > > -- > Pale Purple Ltd > > PHP Web application development and support > > http://www.palepurple.co.uk > @PalePurpleLtd > 07792 380669 / 0845 0046746 > > _______________________________________________ > Xerte-dev mailing list > Xerte-dev at lists.nottingham.ac.uk. > uk> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev > > _______________________________________________ > Xerte-dev mailing list > Xerte-dev at lists.nottingham.ac.uk. > uk> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev > 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. > > 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. > > > > _______________________________________________ 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 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. 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. Glasgow Caledonian University is a registered Scottish charity, number SC021474 _______________________________________________ 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 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. 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. Glasgow Caledonian University is a registered Scottish charity, number SC021474 _______________________________________________ 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 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. 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. Glasgow Caledonian University is a registered Scottish charity, number SC021474 _______________________________________________ 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 Glasgow Caledonian University is a registered Scottish charity, number SC021474 _______________________________________________ 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 _______________________________________________ Xerte-dev mailing list Xerte-dev at lists.nottingham.ac.uk http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev From ronm at mitchellmedia.co.uk Thu Jun 26 14:00:42 2014 From: ronm at mitchellmedia.co.uk (Ron Mitchell) Date: Thu, 26 Jun 2014 14:00:42 +0100 Subject: [Xerte-dev] Re: preview.xml not created In-Reply-To: <12C67A1EEC419342AF5E59DA31562C3F0D90179716@EXCHANGE1.ad.nottingham.ac.uk> References: <12C67A1EEC419342AF5E59DA31562C3F0D901796B3@EXCHANGE1.ad.nottingham.ac.uk> <016501cf9139$a1a62f60$e4f28e20$@co.uk> <016f01cf913b$153ab260$3fb01720$@co.uk> <12C67A1EEC419342AF5E59DA31562C3F0D90179716@EXCHANGE1.ad.nottingham.ac.uk> Message-ID: <018a01cf913e$a3b32420$eb196c60$@co.uk> Perhaps there will be time and opportunity to have a quick look tomorrow when we're on-site... -----Original Message----- From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Julian Tenney Sent: 26 June 2014 13:38 To: For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created I thought it had gone away as well, but not this morning. I'm not having a dig by the way. -----Original Message----- From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Ron Mitchell Sent: 26 June 2014 13:35 To: 'For Xerte technical developers' Subject: [Xerte-dev] Re: preview.xml not created also re >"The session ID thing has been going along for ages now..."< This is anecdotal but as far as I'm aware we weren't able to replicate the session ID problem you were getting (I think with with Firefox) but certainly did get session ID issues with that onbeforeunload="javascript:logout()" line added. With that removed I'm not aware of any session ID issues and would hear about it if there were. -----Original Message----- From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Ron Mitchell Sent: 26 June 2014 13:25 To: 'For Xerte technical developers' Subject: [Xerte-dev] Re: preview.xml not created Do you still have that onunload line in your index.php file? e.g. from previous thread Currently in 2.1 branch: removing onbeforeunload="javascript:logout()" stops the problem with IE 10. -----Original Message----- From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Julian Tenney Sent: 26 June 2014 12:47 To: Smith, John; For Xerte technical developers; xerte at pgogywebstuff.com Subject: [Xerte-dev] Re: preview.xml not created OK, I went over and had a look. In Chrome everything worked fine. In IE I very quickly hit major 'session ID not set' problems. We really need to resolve this one way or another, even if we use the new editor as the way to do it. In IE, clicking create would lead to nothing... for a few seconds... and then the popup up would open with the session ID not set error. I got this error from the page: Message: Invalid argument. Line: 1179 Char: 6 Code: 0 URI: http://www.nottingham.ac.uk/toolkits/website_code/scripts/template_management.js I think eventually I did manage to create a LO in the workspace, but not without refreshing several times until it appeared, and never from the create button directly. So maybe this has something to do with the other user problem, maybe not. I don't really know. It might be worth me getting one of you guys who knows the PHP stuff associate access to our network and see if you can reproduce it? The session ID thing has been going along for ages now, and I don't feel any closer to a resolution, and frankly, I don't really understand enough myself to try and fix it. J -----Original Message----- From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Smith, John Sent: 26 June 2014 11:25 To: xerte at pgogywebstuff.com; For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created Create a new LO and if when edit opens it is blank then right click on the header and reload/refresh If it then loads ok then the id is right but something is most likely delaying the copy of data.xml from template folder to USER-FILES folder. The copy routine has debug messages in there so you could check them and see if any that are in edit are in an unusual order when you get a problem which might or might not indicate a threading issue depending on whether it is the php execution or the file system operations that are being delayed... John Sent from Samsung tablet -------- Original message -------- From: "Pat L (pgogy)" Date: 26/06/2014 10:15 (GMT+00:00) To: For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created Should as in The PHP script has called the functions which do it It then inserts into the database and returns the ID given So unless the PHP is delayed, or threads, then can't see why. It might be the ID isn't right? On Thu, Jun 26, 2014 at 9:12 AM, Julian Tenney > wrote: By the time the id returns, data.xml and media/ should be copied 'Should' as in will have been or 'should' as in might have been? I'm going to go and have a look later and see if I can figure out what's going on, J -----Original Message----- From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Smith, John Sent: 25 June 2014 17:12 To: xerte-dev at lists.nottingham.ac.uk Subject: [Xerte-dev] Re: preview.xml not created I think what Pat is saying confirms that it can only be synchronous. You click new and give it a name An ajax call is made to new_template When it returns with an id then that id is used to instruct the editor which LO to open. By the time the id returns, data.xml and media/ should be copied. Edit looks to see if there is a preview.xml and if not then it copies data.xml to preview.xml and then loads preview.xml Regards John Smith Learning Technologist School of Health and Life Sciences Sent from Samsung Galaxy SII Julian Tenney > wrote: No, no weird templates, it?s Nottingham for sure. I?m sure what you say answers my question ?is it synchronous or not?? But I don?t know whether it means ?yes? or ?no?. From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Pat L (pgogy) Sent: 25 June 2014 16:47 To: For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created new template.php ends in a ajax call to the editor, so it's not one block of PHP but one process. New template ends, echoes out a template id, which the ajax gets, and then fires off the editor. If the editor isn't working, I am suspecting it might be the template is weird? Is it definitely Nottingham? Not one of the old mediainteraction ones or something? On Wed, Jun 25, 2014 at 4:12 PM, Julian Tenney >> wrote: Data.xml is being created, but what seems to fail is the editor opening. Media folder is being created too. So it's the process of opening the editor that creates preview.xml? Come to think about it, I had issues myself in the same building on Monday. I just refreshed the workspace and I was in business, didn't really think about it. I found another user with the same problem: returning to the workspace later, his projects are all there and editable now. Some sort of timing issue? The editor opening and data.xml hasn't been created yet, so nothing to copy? -----Original Message----- From: xerte-dev-bounces at lists.nottingham.ac.uk> [mailto:xerte-dev-bounces at lists.nottingham.ac.uk>] On Behalf Of Smith, John Sent: 25 June 2014 16:09 To: For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created Popup blocker doesn't usually stop preview.xml being copied, or at least it's never affected me like that before... plus wouldn't the popup blocker work for others too? Edit checks for the existence of preview.xml and either opens it or copies the blank https://github.com/thexerteproject/xerteonlinetoolkits/blob/f5ad19b03ed2c76ac29cbcd0ec5199360dc61d6a/modules/xerte/edit.php#L47 There are a few checks beforehand though that could error out (like below). Check the response in Google Chrome to see if any errors are being sent back i suppose: if(empty($row_username)) { die("Invalid user id ?"); } and if(!file_exists($preview) && file_exists($data)){ copy($data, $preview); chmod($preview, 0777); } So it looks like data.xml needs to be there which comes from the Nottingham template. Is data.xml being created in the folder? And a media folder to hold the multimedia? If not then it looks like this is failing https://github.com/thexerteproject/xerteonlinetoolkits/blob/f5ad19b03ed2c76ac29cbcd0ec5199360dc61d6a/modules/site/new_template.php#L76 It puts some debug messages into the logs so you might like to check there to see if anything shows up... Regards, John Smith | Learning Technologist Room A250, Govan Mbeki Building | School of Health & Life Sciences | Glasgow Caledonian University Cowcaddens Road | Glasgow | G4 0BA Please address ALL support requests to hlsblt at gcu.ac.uk> where one of the School Learning Technologists will pick up the job. This will ensure that all jobs are completed as promptly as possible. ________________________________________ From: xerte-dev-bounces at lists.nottingham.ac.uk> [xerte-dev-bounces at lists.nottingham.ac.uk>] On Behalf Of Julian Tenney [Julian.Tenney at nottingham.ac.uk>] Sent: 25 June 2014 15:51 To: For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created No, preview is not created. I think this is maybe to do with popup blocker, so edit never opens. What order do things happen in when a project is created? -----Original Message----- From: xerte-dev-bounces at lists.nottingham.ac.uk> [mailto:xerte-dev-bounces at lists.nottingham.ac.uk>] On Behalf Of Smith, John Sent: 25 June 2014 15:47 To: For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created If the user creates a new LO and edit opens then do you see the blank, default preview.xml being copied into in the newly created USER-FILES folder? Regards, John Smith | Learning Technologist Room A250, Govan Mbeki Building | School of Health & Life Sciences | Glasgow Caledonian University Cowcaddens Road | Glasgow | G4 0BA Please address ALL support requests to hlsblt at gcu.ac.uk> where one of the School Learning Technologists will pick up the job. This will ensure that all jobs are completed as promptly as possible. ________________________________________ From: xerte-dev-bounces at lists.nottingham.ac.uk> [xerte-dev-bounces at lists.nottingham.ac.uk>] On Behalf Of Julian Tenney [Julian.Tenney at nottingham.ac.uk>] Sent: 25 June 2014 14:27 To: For Xerte technical developers (xerte-dev at lists.nottingham.ac.uk>) Subject: [Xerte-dev] Re: preview.xml not created We have only one of these usernames, dating from 2006, so predates toolkits, and not a duplicate. -----Original Message----- From: Tenney Julian Sent: 25 June 2014 12:38 To: For Xerte technical developers Subject: RE: [Xerte-dev] Re: preview.xml not created No, that looks right. At least the folder has the correct user name in it. -----Original Message----- From: xerte-dev-bounces at lists.nottingham.ac.uk> [mailto:xerte-dev-bounces at lists.nottingham.ac.uk>] On Behalf Of Julian Tenney Sent: 25 June 2014 12:04 To: For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created I'll check that. I didn't notice anything obvious though... -----Original Message----- From: xerte-dev-bounces at lists.nottingham.ac.uk> [mailto:xerte-dev-bounces at lists.nottingham.ac.uk>] On Behalf Of Ron Mitchell Sent: 25 June 2014 12:00 To: For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created My hunch would be a username issue - check username matches the folders being created including case sensitivity? Sent from my iPhone > On 25 Jun 2014, at 11:00, Julian Tenney >> wrote: > > Why only for one user? > > -----Original Message----- > From: > xerte-dev-bounces at lists.nottingham.ac.uk s.nottingham.ac.uk> nces at list> s.nottingham.ac.uk> > [mailto:xerte-dev-bounces at lists.nottingham.ac.uk ces at lists.nottingham.ac.uk> n> ces at lists.nottingham.ac.uk>] On > Behalf Of David Goodwin > Sent: 25 June 2014 11:00 > To: For Xerte technical developers > Subject: [Xerte-dev] Re: preview.xml not created > > I have a feeling XOT may be mixing up it's saving of preview.xml and > data.xml - in that it saves data.xml when it should save preview.xml > etc > > David. > >> On 25/06/14 10:58, Julian Tenney wrote: >> Got a user here who logs in, tries to create a LO, but preview .xml >> isn't being created: consequently the editor has no LO icon in it >> when it loads up. Other users on same computer work fine. Any idea >> what's going on? >> >> cid:image004.jpg at 01CF905F.BC2E7D90 >> >> >> >> _______________________________________________ >> Xerte-dev mailing list >> Xerte-dev at lists.nottingham.ac.uk> .uk>> ingham.ac> .uk> >> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev > > -- > Pale Purple Ltd > > PHP Web application development and support > > http://www.palepurple.co.uk > @PalePurpleLtd > 07792 380669 / 0845 0046746 > > _______________________________________________ > Xerte-dev mailing list > Xerte-dev at lists.nottingham.ac.uk. > uk> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev > > _______________________________________________ > Xerte-dev mailing list > Xerte-dev at lists.nottingham.ac.uk. > uk> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev > 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. > > 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. > > > > _______________________________________________ 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 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. 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. Glasgow Caledonian University is a registered Scottish charity, number SC021474 _______________________________________________ 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 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. 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. Glasgow Caledonian University is a registered Scottish charity, number SC021474 _______________________________________________ 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 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. 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. Glasgow Caledonian University is a registered Scottish charity, number SC021474 _______________________________________________ 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 Glasgow Caledonian University is a registered Scottish charity, number SC021474 _______________________________________________ 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 _______________________________________________ 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 From Julian.Tenney at nottingham.ac.uk Thu Jun 26 14:01:01 2014 From: Julian.Tenney at nottingham.ac.uk (Julian Tenney) Date: Thu, 26 Jun 2014 14:01:01 +0100 Subject: [Xerte-dev] Re: preview.xml not created In-Reply-To: <018a01cf913e$a3b32420$eb196c60$@co.uk> References: <12C67A1EEC419342AF5E59DA31562C3F0D901796B3@EXCHANGE1.ad.nottingham.ac.uk> <016501cf9139$a1a62f60$e4f28e20$@co.uk> <016f01cf913b$153ab260$3fb01720$@co.uk> <12C67A1EEC419342AF5E59DA31562C3F0D90179716@EXCHANGE1.ad.nottingham.ac.uk> <018a01cf913e$a3b32420$eb196c60$@co.uk> Message-ID: <12C67A1EEC419342AF5E59DA31562C3F0D90179742@EXCHANGE1.ad.nottingham.ac.uk> Maybe. Lunch 11.45 for 12.00? -----Original Message----- From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Ron Mitchell Sent: 26 June 2014 14:01 To: 'For Xerte technical developers' Subject: [Xerte-dev] Re: preview.xml not created Perhaps there will be time and opportunity to have a quick look tomorrow when we're on-site... -----Original Message----- From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Julian Tenney Sent: 26 June 2014 13:38 To: For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created I thought it had gone away as well, but not this morning. I'm not having a dig by the way. -----Original Message----- From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Ron Mitchell Sent: 26 June 2014 13:35 To: 'For Xerte technical developers' Subject: [Xerte-dev] Re: preview.xml not created also re >"The session ID thing has been going along for ages now..."< This is anecdotal but as far as I'm aware we weren't able to replicate the session ID problem you were getting (I think with with Firefox) but certainly did get session ID issues with that onbeforeunload="javascript:logout()" line added. With that removed I'm not aware of any session ID issues and would hear about it if there were. -----Original Message----- From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Ron Mitchell Sent: 26 June 2014 13:25 To: 'For Xerte technical developers' Subject: [Xerte-dev] Re: preview.xml not created Do you still have that onunload line in your index.php file? e.g. from previous thread Currently in 2.1 branch: removing onbeforeunload="javascript:logout()" stops the problem with IE 10. -----Original Message----- From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Julian Tenney Sent: 26 June 2014 12:47 To: Smith, John; For Xerte technical developers; xerte at pgogywebstuff.com Subject: [Xerte-dev] Re: preview.xml not created OK, I went over and had a look. In Chrome everything worked fine. In IE I very quickly hit major 'session ID not set' problems. We really need to resolve this one way or another, even if we use the new editor as the way to do it. In IE, clicking create would lead to nothing... for a few seconds... and then the popup up would open with the session ID not set error. I got this error from the page: Message: Invalid argument. Line: 1179 Char: 6 Code: 0 URI: http://www.nottingham.ac.uk/toolkits/website_code/scripts/template_management.js I think eventually I did manage to create a LO in the workspace, but not without refreshing several times until it appeared, and never from the create button directly. So maybe this has something to do with the other user problem, maybe not. I don't really know. It might be worth me getting one of you guys who knows the PHP stuff associate access to our network and see if you can reproduce it? The session ID thing has been going along for ages now, and I don't feel any closer to a resolution, and frankly, I don't really understand enough myself to try and fix it. J -----Original Message----- From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Smith, John Sent: 26 June 2014 11:25 To: xerte at pgogywebstuff.com; For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created Create a new LO and if when edit opens it is blank then right click on the header and reload/refresh If it then loads ok then the id is right but something is most likely delaying the copy of data.xml from template folder to USER-FILES folder. The copy routine has debug messages in there so you could check them and see if any that are in edit are in an unusual order when you get a problem which might or might not indicate a threading issue depending on whether it is the php execution or the file system operations that are being delayed... John Sent from Samsung tablet -------- Original message -------- From: "Pat L (pgogy)" Date: 26/06/2014 10:15 (GMT+00:00) To: For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created Should as in The PHP script has called the functions which do it It then inserts into the database and returns the ID given So unless the PHP is delayed, or threads, then can't see why. It might be the ID isn't right? On Thu, Jun 26, 2014 at 9:12 AM, Julian Tenney > wrote: By the time the id returns, data.xml and media/ should be copied 'Should' as in will have been or 'should' as in might have been? I'm going to go and have a look later and see if I can figure out what's going on, J -----Original Message----- From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Smith, John Sent: 25 June 2014 17:12 To: xerte-dev at lists.nottingham.ac.uk Subject: [Xerte-dev] Re: preview.xml not created I think what Pat is saying confirms that it can only be synchronous. You click new and give it a name An ajax call is made to new_template When it returns with an id then that id is used to instruct the editor which LO to open. By the time the id returns, data.xml and media/ should be copied. Edit looks to see if there is a preview.xml and if not then it copies data.xml to preview.xml and then loads preview.xml Regards John Smith Learning Technologist School of Health and Life Sciences Sent from Samsung Galaxy SII Julian Tenney > wrote: No, no weird templates, it?s Nottingham for sure. I?m sure what you say answers my question ?is it synchronous or not?? But I don?t know whether it means ?yes? or ?no?. From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Pat L (pgogy) Sent: 25 June 2014 16:47 To: For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created new template.php ends in a ajax call to the editor, so it's not one block of PHP but one process. New template ends, echoes out a template id, which the ajax gets, and then fires off the editor. If the editor isn't working, I am suspecting it might be the template is weird? Is it definitely Nottingham? Not one of the old mediainteraction ones or something? On Wed, Jun 25, 2014 at 4:12 PM, Julian Tenney >> wrote: Data.xml is being created, but what seems to fail is the editor opening. Media folder is being created too. So it's the process of opening the editor that creates preview.xml? Come to think about it, I had issues myself in the same building on Monday. I just refreshed the workspace and I was in business, didn't really think about it. I found another user with the same problem: returning to the workspace later, his projects are all there and editable now. Some sort of timing issue? The editor opening and data.xml hasn't been created yet, so nothing to copy? -----Original Message----- From: xerte-dev-bounces at lists.nottingham.ac.uk> [mailto:xerte-dev-bounces at lists.nottingham.ac.uk>] On Behalf Of Smith, John Sent: 25 June 2014 16:09 To: For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created Popup blocker doesn't usually stop preview.xml being copied, or at least it's never affected me like that before... plus wouldn't the popup blocker work for others too? Edit checks for the existence of preview.xml and either opens it or copies the blank https://github.com/thexerteproject/xerteonlinetoolkits/blob/f5ad19b03ed2c76ac29cbcd0ec5199360dc61d6a/modules/xerte/edit.php#L47 There are a few checks beforehand though that could error out (like below). Check the response in Google Chrome to see if any errors are being sent back i suppose: if(empty($row_username)) { die("Invalid user id ?"); } and if(!file_exists($preview) && file_exists($data)){ copy($data, $preview); chmod($preview, 0777); } So it looks like data.xml needs to be there which comes from the Nottingham template. Is data.xml being created in the folder? And a media folder to hold the multimedia? If not then it looks like this is failing https://github.com/thexerteproject/xerteonlinetoolkits/blob/f5ad19b03ed2c76ac29cbcd0ec5199360dc61d6a/modules/site/new_template.php#L76 It puts some debug messages into the logs so you might like to check there to see if anything shows up... Regards, John Smith | Learning Technologist Room A250, Govan Mbeki Building | School of Health & Life Sciences | Glasgow Caledonian University Cowcaddens Road | Glasgow | G4 0BA Please address ALL support requests to hlsblt at gcu.ac.uk> where one of the School Learning Technologists will pick up the job. This will ensure that all jobs are completed as promptly as possible. ________________________________________ From: xerte-dev-bounces at lists.nottingham.ac.uk> [xerte-dev-bounces at lists.nottingham.ac.uk>] On Behalf Of Julian Tenney [Julian.Tenney at nottingham.ac.uk>] Sent: 25 June 2014 15:51 To: For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created No, preview is not created. I think this is maybe to do with popup blocker, so edit never opens. What order do things happen in when a project is created? -----Original Message----- From: xerte-dev-bounces at lists.nottingham.ac.uk> [mailto:xerte-dev-bounces at lists.nottingham.ac.uk>] On Behalf Of Smith, John Sent: 25 June 2014 15:47 To: For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created If the user creates a new LO and edit opens then do you see the blank, default preview.xml being copied into in the newly created USER-FILES folder? Regards, John Smith | Learning Technologist Room A250, Govan Mbeki Building | School of Health & Life Sciences | Glasgow Caledonian University Cowcaddens Road | Glasgow | G4 0BA Please address ALL support requests to hlsblt at gcu.ac.uk> where one of the School Learning Technologists will pick up the job. This will ensure that all jobs are completed as promptly as possible. ________________________________________ From: xerte-dev-bounces at lists.nottingham.ac.uk> [xerte-dev-bounces at lists.nottingham.ac.uk>] On Behalf Of Julian Tenney [Julian.Tenney at nottingham.ac.uk>] Sent: 25 June 2014 14:27 To: For Xerte technical developers (xerte-dev at lists.nottingham.ac.uk>) Subject: [Xerte-dev] Re: preview.xml not created We have only one of these usernames, dating from 2006, so predates toolkits, and not a duplicate. -----Original Message----- From: Tenney Julian Sent: 25 June 2014 12:38 To: For Xerte technical developers Subject: RE: [Xerte-dev] Re: preview.xml not created No, that looks right. At least the folder has the correct user name in it. -----Original Message----- From: xerte-dev-bounces at lists.nottingham.ac.uk> [mailto:xerte-dev-bounces at lists.nottingham.ac.uk>] On Behalf Of Julian Tenney Sent: 25 June 2014 12:04 To: For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created I'll check that. I didn't notice anything obvious though... -----Original Message----- From: xerte-dev-bounces at lists.nottingham.ac.uk> [mailto:xerte-dev-bounces at lists.nottingham.ac.uk>] On Behalf Of Ron Mitchell Sent: 25 June 2014 12:00 To: For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created My hunch would be a username issue - check username matches the folders being created including case sensitivity? Sent from my iPhone > On 25 Jun 2014, at 11:00, Julian Tenney >> wrote: > > Why only for one user? > > -----Original Message----- > From: > xerte-dev-bounces at lists.nottingham.ac.uk s.nottingham.ac.uk> nces at list> s.nottingham.ac.uk> > [mailto:xerte-dev-bounces at lists.nottingham.ac.uk ces at lists.nottingham.ac.uk> n> ces at lists.nottingham.ac.uk>] On > Behalf Of David Goodwin > Sent: 25 June 2014 11:00 > To: For Xerte technical developers > Subject: [Xerte-dev] Re: preview.xml not created > > I have a feeling XOT may be mixing up it's saving of preview.xml and > data.xml - in that it saves data.xml when it should save preview.xml > etc > > David. > >> On 25/06/14 10:58, Julian Tenney wrote: >> Got a user here who logs in, tries to create a LO, but preview .xml >> isn't being created: consequently the editor has no LO icon in it >> when it loads up. Other users on same computer work fine. Any idea >> what's going on? >> >> cid:image004.jpg at 01CF905F.BC2E7D90 >> >> >> >> _______________________________________________ >> Xerte-dev mailing list >> Xerte-dev at lists.nottingham.ac.uk> .uk>> ingham.ac> .uk> >> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev > > -- > Pale Purple Ltd > > PHP Web application development and support > > http://www.palepurple.co.uk > @PalePurpleLtd > 07792 380669 / 0845 0046746 > > _______________________________________________ > Xerte-dev mailing list > Xerte-dev at lists.nottingham.ac.uk. > uk> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev > > _______________________________________________ > Xerte-dev mailing list > Xerte-dev at lists.nottingham.ac.uk. > uk> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev > 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. > > 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. > > > > _______________________________________________ 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 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. 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. Glasgow Caledonian University is a registered Scottish charity, number SC021474 _______________________________________________ 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 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. 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. Glasgow Caledonian University is a registered Scottish charity, number SC021474 _______________________________________________ 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 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. 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. Glasgow Caledonian University is a registered Scottish charity, number SC021474 _______________________________________________ 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 Glasgow Caledonian University is a registered Scottish charity, number SC021474 _______________________________________________ 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 _______________________________________________ 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 From J.J.Smith at gcu.ac.uk Thu Jun 26 14:11:33 2014 From: J.J.Smith at gcu.ac.uk (Smith, John) Date: Thu, 26 Jun 2014 14:11:33 +0100 Subject: [Xerte-dev] Re: preview.xml not created In-Reply-To: <12C67A1EEC419342AF5E59DA31562C3F0D90179742@EXCHANGE1.ad.nottingham.ac.uk> References: <12C67A1EEC419342AF5E59DA31562C3F0D901796B3@EXCHANGE1.ad.nottingham.ac.uk> <016501cf9139$a1a62f60$e4f28e20$@co.uk> <016f01cf913b$153ab260$3fb01720$@co.uk> <12C67A1EEC419342AF5E59DA31562C3F0D90179716@EXCHANGE1.ad.nottingham.ac.uk> <018a01cf913e$a3b32420$eb196c60$@co.uk>, <12C67A1EEC419342AF5E59DA31562C3F0D90179742@EXCHANGE1.ad.nottingham.ac.uk> Message-ID: I've certainly never been able to reproduce the session id consistently either. I have seen it though but afaik its only been after a genuine timeout or when that unload line made its way to my machine... I think these things are related to your server which is why i'm wondering if anything has changed recently? update to Windows/Linux, PHP etc? Regards, John Smith | Learning Technologist Room A250, Govan Mbeki Building | School of Health & Life Sciences | Glasgow Caledonian University Cowcaddens Road | Glasgow | G4 0BA Please address ALL support requests to hlsblt at gcu.ac.uk where one of the School Learning Technologists will pick up the job. This will ensure that all jobs are completed as promptly as possible. ________________________________________ From: xerte-dev-bounces at lists.nottingham.ac.uk [xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Julian Tenney [Julian.Tenney at nottingham.ac.uk] Sent: 26 June 2014 14:01 To: For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created Maybe. Lunch 11.45 for 12.00? -----Original Message----- From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Ron Mitchell Sent: 26 June 2014 14:01 To: 'For Xerte technical developers' Subject: [Xerte-dev] Re: preview.xml not created Perhaps there will be time and opportunity to have a quick look tomorrow when we're on-site... -----Original Message----- From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Julian Tenney Sent: 26 June 2014 13:38 To: For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created I thought it had gone away as well, but not this morning. I'm not having a dig by the way. -----Original Message----- From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Ron Mitchell Sent: 26 June 2014 13:35 To: 'For Xerte technical developers' Subject: [Xerte-dev] Re: preview.xml not created also re >"The session ID thing has been going along for ages now..."< This is anecdotal but as far as I'm aware we weren't able to replicate the session ID problem you were getting (I think with with Firefox) but certainly did get session ID issues with that onbeforeunload="javascript:logout()" line added. With that removed I'm not aware of any session ID issues and would hear about it if there were. -----Original Message----- From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Ron Mitchell Sent: 26 June 2014 13:25 To: 'For Xerte technical developers' Subject: [Xerte-dev] Re: preview.xml not created Do you still have that onunload line in your index.php file? e.g. from previous thread Currently in 2.1 branch: removing onbeforeunload="javascript:logout()" stops the problem with IE 10. -----Original Message----- From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Julian Tenney Sent: 26 June 2014 12:47 To: Smith, John; For Xerte technical developers; xerte at pgogywebstuff.com Subject: [Xerte-dev] Re: preview.xml not created OK, I went over and had a look. In Chrome everything worked fine. In IE I very quickly hit major 'session ID not set' problems. We really need to resolve this one way or another, even if we use the new editor as the way to do it. In IE, clicking create would lead to nothing... for a few seconds... and then the popup up would open with the session ID not set error. I got this error from the page: Message: Invalid argument. Line: 1179 Char: 6 Code: 0 URI: http://www.nottingham.ac.uk/toolkits/website_code/scripts/template_management.js I think eventually I did manage to create a LO in the workspace, but not without refreshing several times until it appeared, and never from the create button directly. So maybe this has something to do with the other user problem, maybe not. I don't really know. It might be worth me getting one of you guys who knows the PHP stuff associate access to our network and see if you can reproduce it? The session ID thing has been going along for ages now, and I don't feel any closer to a resolution, and frankly, I don't really understand enough myself to try and fix it. J -----Original Message----- From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Smith, John Sent: 26 June 2014 11:25 To: xerte at pgogywebstuff.com; For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created Create a new LO and if when edit opens it is blank then right click on the header and reload/refresh If it then loads ok then the id is right but something is most likely delaying the copy of data.xml from template folder to USER-FILES folder. The copy routine has debug messages in there so you could check them and see if any that are in edit are in an unusual order when you get a problem which might or might not indicate a threading issue depending on whether it is the php execution or the file system operations that are being delayed... John Sent from Samsung tablet -------- Original message -------- From: "Pat L (pgogy)" Date: 26/06/2014 10:15 (GMT+00:00) To: For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created Should as in The PHP script has called the functions which do it It then inserts into the database and returns the ID given So unless the PHP is delayed, or threads, then can't see why. It might be the ID isn't right? On Thu, Jun 26, 2014 at 9:12 AM, Julian Tenney > wrote: By the time the id returns, data.xml and media/ should be copied 'Should' as in will have been or 'should' as in might have been? I'm going to go and have a look later and see if I can figure out what's going on, J -----Original Message----- From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Smith, John Sent: 25 June 2014 17:12 To: xerte-dev at lists.nottingham.ac.uk Subject: [Xerte-dev] Re: preview.xml not created I think what Pat is saying confirms that it can only be synchronous. You click new and give it a name An ajax call is made to new_template When it returns with an id then that id is used to instruct the editor which LO to open. By the time the id returns, data.xml and media/ should be copied. Edit looks to see if there is a preview.xml and if not then it copies data.xml to preview.xml and then loads preview.xml Regards John Smith Learning Technologist School of Health and Life Sciences Sent from Samsung Galaxy SII Julian Tenney > wrote: No, no weird templates, it?s Nottingham for sure. I?m sure what you say answers my question ?is it synchronous or not?? But I don?t know whether it means ?yes? or ?no?. From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Pat L (pgogy) Sent: 25 June 2014 16:47 To: For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created new template.php ends in a ajax call to the editor, so it's not one block of PHP but one process. New template ends, echoes out a template id, which the ajax gets, and then fires off the editor. If the editor isn't working, I am suspecting it might be the template is weird? Is it definitely Nottingham? Not one of the old mediainteraction ones or something? On Wed, Jun 25, 2014 at 4:12 PM, Julian Tenney >> wrote: Data.xml is being created, but what seems to fail is the editor opening. Media folder is being created too. So it's the process of opening the editor that creates preview.xml? Come to think about it, I had issues myself in the same building on Monday. I just refreshed the workspace and I was in business, didn't really think about it. I found another user with the same problem: returning to the workspace later, his projects are all there and editable now. Some sort of timing issue? The editor opening and data.xml hasn't been created yet, so nothing to copy? -----Original Message----- From: xerte-dev-bounces at lists.nottingham.ac.uk> [mailto:xerte-dev-bounces at lists.nottingham.ac.uk>] On Behalf Of Smith, John Sent: 25 June 2014 16:09 To: For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created Popup blocker doesn't usually stop preview.xml being copied, or at least it's never affected me like that before... plus wouldn't the popup blocker work for others too? Edit checks for the existence of preview.xml and either opens it or copies the blank https://github.com/thexerteproject/xerteonlinetoolkits/blob/f5ad19b03ed2c76ac29cbcd0ec5199360dc61d6a/modules/xerte/edit.php#L47 There are a few checks beforehand though that could error out (like below). Check the response in Google Chrome to see if any errors are being sent back i suppose: if(empty($row_username)) { die("Invalid user id ?"); } and if(!file_exists($preview) && file_exists($data)){ copy($data, $preview); chmod($preview, 0777); } So it looks like data.xml needs to be there which comes from the Nottingham template. Is data.xml being created in the folder? And a media folder to hold the multimedia? If not then it looks like this is failing https://github.com/thexerteproject/xerteonlinetoolkits/blob/f5ad19b03ed2c76ac29cbcd0ec5199360dc61d6a/modules/site/new_template.php#L76 It puts some debug messages into the logs so you might like to check there to see if anything shows up... Regards, John Smith | Learning Technologist Room A250, Govan Mbeki Building | School of Health & Life Sciences | Glasgow Caledonian University Cowcaddens Road | Glasgow | G4 0BA Please address ALL support requests to hlsblt at gcu.ac.uk> where one of the School Learning Technologists will pick up the job. This will ensure that all jobs are completed as promptly as possible. ________________________________________ From: xerte-dev-bounces at lists.nottingham.ac.uk> [xerte-dev-bounces at lists.nottingham.ac.uk>] On Behalf Of Julian Tenney [Julian.Tenney at nottingham.ac.uk>] Sent: 25 June 2014 15:51 To: For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created No, preview is not created. I think this is maybe to do with popup blocker, so edit never opens. What order do things happen in when a project is created? -----Original Message----- From: xerte-dev-bounces at lists.nottingham.ac.uk> [mailto:xerte-dev-bounces at lists.nottingham.ac.uk>] On Behalf Of Smith, John Sent: 25 June 2014 15:47 To: For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created If the user creates a new LO and edit opens then do you see the blank, default preview.xml being copied into in the newly created USER-FILES folder? Regards, John Smith | Learning Technologist Room A250, Govan Mbeki Building | School of Health & Life Sciences | Glasgow Caledonian University Cowcaddens Road | Glasgow | G4 0BA Please address ALL support requests to hlsblt at gcu.ac.uk> where one of the School Learning Technologists will pick up the job. This will ensure that all jobs are completed as promptly as possible. ________________________________________ From: xerte-dev-bounces at lists.nottingham.ac.uk> [xerte-dev-bounces at lists.nottingham.ac.uk>] On Behalf Of Julian Tenney [Julian.Tenney at nottingham.ac.uk>] Sent: 25 June 2014 14:27 To: For Xerte technical developers (xerte-dev at lists.nottingham.ac.uk>) Subject: [Xerte-dev] Re: preview.xml not created We have only one of these usernames, dating from 2006, so predates toolkits, and not a duplicate. -----Original Message----- From: Tenney Julian Sent: 25 June 2014 12:38 To: For Xerte technical developers Subject: RE: [Xerte-dev] Re: preview.xml not created No, that looks right. At least the folder has the correct user name in it. -----Original Message----- From: xerte-dev-bounces at lists.nottingham.ac.uk> [mailto:xerte-dev-bounces at lists.nottingham.ac.uk>] On Behalf Of Julian Tenney Sent: 25 June 2014 12:04 To: For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created I'll check that. I didn't notice anything obvious though... -----Original Message----- From: xerte-dev-bounces at lists.nottingham.ac.uk> [mailto:xerte-dev-bounces at lists.nottingham.ac.uk>] On Behalf Of Ron Mitchell Sent: 25 June 2014 12:00 To: For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created My hunch would be a username issue - check username matches the folders being created including case sensitivity? Sent from my iPhone > On 25 Jun 2014, at 11:00, Julian Tenney >> wrote: > > Why only for one user? > > -----Original Message----- > From: > xerte-dev-bounces at lists.nottingham.ac.uk s.nottingham.ac.uk> nces at list> s.nottingham.ac.uk> > [mailto:xerte-dev-bounces at lists.nottingham.ac.uk ces at lists.nottingham.ac.uk> n> ces at lists.nottingham.ac.uk>] On > Behalf Of David Goodwin > Sent: 25 June 2014 11:00 > To: For Xerte technical developers > Subject: [Xerte-dev] Re: preview.xml not created > > I have a feeling XOT may be mixing up it's saving of preview.xml and > data.xml - in that it saves data.xml when it should save preview.xml > etc > > David. > >> On 25/06/14 10:58, Julian Tenney wrote: >> Got a user here who logs in, tries to create a LO, but preview .xml >> isn't being created: consequently the editor has no LO icon in it >> when it loads up. Other users on same computer work fine. Any idea >> what's going on? >> >> cid:image004.jpg at 01CF905F.BC2E7D90 >> >> >> >> _______________________________________________ >> Xerte-dev mailing list >> Xerte-dev at lists.nottingham.ac.uk> .uk>> ingham.ac> .uk> >> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev > > -- > Pale Purple Ltd > > PHP Web application development and support > > http://www.palepurple.co.uk > @PalePurpleLtd > 07792 380669 / 0845 0046746 > > _______________________________________________ > Xerte-dev mailing list > Xerte-dev at lists.nottingham.ac.uk. > uk> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev > > _______________________________________________ > Xerte-dev mailing list > Xerte-dev at lists.nottingham.ac.uk. > uk> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev > 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. > > 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. > > > > _______________________________________________ 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 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. 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. Glasgow Caledonian University is a registered Scottish charity, number SC021474 _______________________________________________ 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 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. 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. Glasgow Caledonian University is a registered Scottish charity, number SC021474 _______________________________________________ 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 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. 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. Glasgow Caledonian University is a registered Scottish charity, number SC021474 _______________________________________________ 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 Glasgow Caledonian University is a registered Scottish charity, number SC021474 _______________________________________________ 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 _______________________________________________ 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 _______________________________________________ Xerte-dev mailing list Xerte-dev at lists.nottingham.ac.uk http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev Glasgow Caledonian University is a registered Scottish charity, number SC021474 From Julian.Tenney at nottingham.ac.uk Thu Jun 26 14:16:29 2014 From: Julian.Tenney at nottingham.ac.uk (Julian Tenney) Date: Thu, 26 Jun 2014 14:16:29 +0100 Subject: [Xerte-dev] Re: preview.xml not created In-Reply-To: References: <12C67A1EEC419342AF5E59DA31562C3F0D901796B3@EXCHANGE1.ad.nottingham.ac.uk> <016501cf9139$a1a62f60$e4f28e20$@co.uk> <016f01cf913b$153ab260$3fb01720$@co.uk> <12C67A1EEC419342AF5E59DA31562C3F0D90179716@EXCHANGE1.ad.nottingham.ac.uk> <018a01cf913e$a3b32420$eb196c60$@co.uk>, <12C67A1EEC419342AF5E59DA31562C3F0D90179742@EXCHANGE1.ad.nottingham.ac.uk> Message-ID: <12C67A1EEC419342AF5E59DA31562C3F0D9017975D@EXCHANGE1.ad.nottingham.ac.uk> Not that I know of. I need to see what happens with this particular user next week, as that does seem to be an issue related just to him. -----Original Message----- From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Smith, John Sent: 26 June 2014 14:12 To: For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created I've certainly never been able to reproduce the session id consistently either. I have seen it though but afaik its only been after a genuine timeout or when that unload line made its way to my machine... I think these things are related to your server which is why i'm wondering if anything has changed recently? update to Windows/Linux, PHP etc? Regards, John Smith | Learning Technologist Room A250, Govan Mbeki Building | School of Health & Life Sciences | Glasgow Caledonian University Cowcaddens Road | Glasgow | G4 0BA Please address ALL support requests to hlsblt at gcu.ac.uk where one of the School Learning Technologists will pick up the job. This will ensure that all jobs are completed as promptly as possible. ________________________________________ From: xerte-dev-bounces at lists.nottingham.ac.uk [xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Julian Tenney [Julian.Tenney at nottingham.ac.uk] Sent: 26 June 2014 14:01 To: For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created Maybe. Lunch 11.45 for 12.00? -----Original Message----- From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Ron Mitchell Sent: 26 June 2014 14:01 To: 'For Xerte technical developers' Subject: [Xerte-dev] Re: preview.xml not created Perhaps there will be time and opportunity to have a quick look tomorrow when we're on-site... -----Original Message----- From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Julian Tenney Sent: 26 June 2014 13:38 To: For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created I thought it had gone away as well, but not this morning. I'm not having a dig by the way. -----Original Message----- From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Ron Mitchell Sent: 26 June 2014 13:35 To: 'For Xerte technical developers' Subject: [Xerte-dev] Re: preview.xml not created also re >"The session ID thing has been going along for ages now..."< This is anecdotal but as far as I'm aware we weren't able to replicate the session ID problem you were getting (I think with with Firefox) but certainly did get session ID issues with that onbeforeunload="javascript:logout()" line added. With that removed I'm not aware of any session ID issues and would hear about it if there were. -----Original Message----- From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Ron Mitchell Sent: 26 June 2014 13:25 To: 'For Xerte technical developers' Subject: [Xerte-dev] Re: preview.xml not created Do you still have that onunload line in your index.php file? e.g. from previous thread Currently in 2.1 branch: removing onbeforeunload="javascript:logout()" stops the problem with IE 10. -----Original Message----- From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Julian Tenney Sent: 26 June 2014 12:47 To: Smith, John; For Xerte technical developers; xerte at pgogywebstuff.com Subject: [Xerte-dev] Re: preview.xml not created OK, I went over and had a look. In Chrome everything worked fine. In IE I very quickly hit major 'session ID not set' problems. We really need to resolve this one way or another, even if we use the new editor as the way to do it. In IE, clicking create would lead to nothing... for a few seconds... and then the popup up would open with the session ID not set error. I got this error from the page: Message: Invalid argument. Line: 1179 Char: 6 Code: 0 URI: http://www.nottingham.ac.uk/toolkits/website_code/scripts/template_management.js I think eventually I did manage to create a LO in the workspace, but not without refreshing several times until it appeared, and never from the create button directly. So maybe this has something to do with the other user problem, maybe not. I don't really know. It might be worth me getting one of you guys who knows the PHP stuff associate access to our network and see if you can reproduce it? The session ID thing has been going along for ages now, and I don't feel any closer to a resolution, and frankly, I don't really understand enough myself to try and fix it. J -----Original Message----- From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Smith, John Sent: 26 June 2014 11:25 To: xerte at pgogywebstuff.com; For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created Create a new LO and if when edit opens it is blank then right click on the header and reload/refresh If it then loads ok then the id is right but something is most likely delaying the copy of data.xml from template folder to USER-FILES folder. The copy routine has debug messages in there so you could check them and see if any that are in edit are in an unusual order when you get a problem which might or might not indicate a threading issue depending on whether it is the php execution or the file system operations that are being delayed... John Sent from Samsung tablet -------- Original message -------- From: "Pat L (pgogy)" Date: 26/06/2014 10:15 (GMT+00:00) To: For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created Should as in The PHP script has called the functions which do it It then inserts into the database and returns the ID given So unless the PHP is delayed, or threads, then can't see why. It might be the ID isn't right? On Thu, Jun 26, 2014 at 9:12 AM, Julian Tenney > wrote: By the time the id returns, data.xml and media/ should be copied 'Should' as in will have been or 'should' as in might have been? I'm going to go and have a look later and see if I can figure out what's going on, J -----Original Message----- From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Smith, John Sent: 25 June 2014 17:12 To: xerte-dev at lists.nottingham.ac.uk Subject: [Xerte-dev] Re: preview.xml not created I think what Pat is saying confirms that it can only be synchronous. You click new and give it a name An ajax call is made to new_template When it returns with an id then that id is used to instruct the editor which LO to open. By the time the id returns, data.xml and media/ should be copied. Edit looks to see if there is a preview.xml and if not then it copies data.xml to preview.xml and then loads preview.xml Regards John Smith Learning Technologist School of Health and Life Sciences Sent from Samsung Galaxy SII Julian Tenney > wrote: No, no weird templates, it's Nottingham for sure. I'm sure what you say answers my question 'is it synchronous or not?' But I don't know whether it means 'yes' or 'no'. From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Pat L (pgogy) Sent: 25 June 2014 16:47 To: For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created new template.php ends in a ajax call to the editor, so it's not one block of PHP but one process. New template ends, echoes out a template id, which the ajax gets, and then fires off the editor. If the editor isn't working, I am suspecting it might be the template is weird? Is it definitely Nottingham? Not one of the old mediainteraction ones or something? On Wed, Jun 25, 2014 at 4:12 PM, Julian Tenney >> wrote: Data.xml is being created, but what seems to fail is the editor opening. Media folder is being created too. So it's the process of opening the editor that creates preview.xml? Come to think about it, I had issues myself in the same building on Monday. I just refreshed the workspace and I was in business, didn't really think about it. I found another user with the same problem: returning to the workspace later, his projects are all there and editable now. Some sort of timing issue? The editor opening and data.xml hasn't been created yet, so nothing to copy? -----Original Message----- From: xerte-dev-bounces at lists.nottingham.ac.uk> [mailto:xerte-dev-bounces at lists.nottingham.ac.uk>] On Behalf Of Smith, John Sent: 25 June 2014 16:09 To: For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created Popup blocker doesn't usually stop preview.xml being copied, or at least it's never affected me like that before... plus wouldn't the popup blocker work for others too? Edit checks for the existence of preview.xml and either opens it or copies the blank https://github.com/thexerteproject/xerteonlinetoolkits/blob/f5ad19b03ed2c76ac29cbcd0ec5199360dc61d6a/modules/xerte/edit.php#L47 There are a few checks beforehand though that could error out (like below). Check the response in Google Chrome to see if any errors are being sent back i suppose: if(empty($row_username)) { die("Invalid user id ?"); } and if(!file_exists($preview) && file_exists($data)){ copy($data, $preview); chmod($preview, 0777); } So it looks like data.xml needs to be there which comes from the Nottingham template. Is data.xml being created in the folder? And a media folder to hold the multimedia? If not then it looks like this is failing https://github.com/thexerteproject/xerteonlinetoolkits/blob/f5ad19b03ed2c76ac29cbcd0ec5199360dc61d6a/modules/site/new_template.php#L76 It puts some debug messages into the logs so you might like to check there to see if anything shows up... Regards, John Smith | Learning Technologist Room A250, Govan Mbeki Building | School of Health & Life Sciences | Glasgow Caledonian University Cowcaddens Road | Glasgow | G4 0BA Please address ALL support requests to hlsblt at gcu.ac.uk> where one of the School Learning Technologists will pick up the job. This will ensure that all jobs are completed as promptly as possible. ________________________________________ From: xerte-dev-bounces at lists.nottingham.ac.uk> [xerte-dev-bounces at lists.nottingham.ac.uk>] On Behalf Of Julian Tenney [Julian.Tenney at nottingham.ac.uk>] Sent: 25 June 2014 15:51 To: For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created No, preview is not created. I think this is maybe to do with popup blocker, so edit never opens. What order do things happen in when a project is created? -----Original Message----- From: xerte-dev-bounces at lists.nottingham.ac.uk> [mailto:xerte-dev-bounces at lists.nottingham.ac.uk>] On Behalf Of Smith, John Sent: 25 June 2014 15:47 To: For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created If the user creates a new LO and edit opens then do you see the blank, default preview.xml being copied into in the newly created USER-FILES folder? Regards, John Smith | Learning Technologist Room A250, Govan Mbeki Building | School of Health & Life Sciences | Glasgow Caledonian University Cowcaddens Road | Glasgow | G4 0BA Please address ALL support requests to hlsblt at gcu.ac.uk> where one of the School Learning Technologists will pick up the job. This will ensure that all jobs are completed as promptly as possible. ________________________________________ From: xerte-dev-bounces at lists.nottingham.ac.uk> [xerte-dev-bounces at lists.nottingham.ac.uk>] On Behalf Of Julian Tenney [Julian.Tenney at nottingham.ac.uk>] Sent: 25 June 2014 14:27 To: For Xerte technical developers (xerte-dev at lists.nottingham.ac.uk>) Subject: [Xerte-dev] Re: preview.xml not created We have only one of these usernames, dating from 2006, so predates toolkits, and not a duplicate. -----Original Message----- From: Tenney Julian Sent: 25 June 2014 12:38 To: For Xerte technical developers Subject: RE: [Xerte-dev] Re: preview.xml not created No, that looks right. At least the folder has the correct user name in it. -----Original Message----- From: xerte-dev-bounces at lists.nottingham.ac.uk> [mailto:xerte-dev-bounces at lists.nottingham.ac.uk>] On Behalf Of Julian Tenney Sent: 25 June 2014 12:04 To: For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created I'll check that. I didn't notice anything obvious though... -----Original Message----- From: xerte-dev-bounces at lists.nottingham.ac.uk> [mailto:xerte-dev-bounces at lists.nottingham.ac.uk>] On Behalf Of Ron Mitchell Sent: 25 June 2014 12:00 To: For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created My hunch would be a username issue - check username matches the folders being created including case sensitivity? Sent from my iPhone > On 25 Jun 2014, at 11:00, Julian Tenney >> wrote: > > Why only for one user? > > -----Original Message----- > From: > xerte-dev-bounces at lists.nottingham.ac.uk s.nottingham.ac.uk> nces at list> s.nottingham.ac.uk> > [mailto:xerte-dev-bounces at lists.nottingham.ac.uk ces at lists.nottingham.ac.uk> n> ces at lists.nottingham.ac.uk>] On > Behalf Of David Goodwin > Sent: 25 June 2014 11:00 > To: For Xerte technical developers > Subject: [Xerte-dev] Re: preview.xml not created > > I have a feeling XOT may be mixing up it's saving of preview.xml and > data.xml - in that it saves data.xml when it should save preview.xml > etc > > David. > >> On 25/06/14 10:58, Julian Tenney wrote: >> Got a user here who logs in, tries to create a LO, but preview .xml >> isn't being created: consequently the editor has no LO icon in it >> when it loads up. Other users on same computer work fine. Any idea >> what's going on? >> >> cid:image004.jpg at 01CF905F.BC2E7D90 >> >> >> >> _______________________________________________ >> Xerte-dev mailing list >> Xerte-dev at lists.nottingham.ac.uk> .uk>> ingham.ac> .uk> >> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev > > -- > Pale Purple Ltd > > PHP Web application development and support > > http://www.palepurple.co.uk > @PalePurpleLtd > 07792 380669 / 0845 0046746 > > _______________________________________________ > Xerte-dev mailing list > Xerte-dev at lists.nottingham.ac.uk. > uk> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev > > _______________________________________________ > Xerte-dev mailing list > Xerte-dev at lists.nottingham.ac.uk. > uk> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev > 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. > > 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. > > > > _______________________________________________ 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 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. 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. Glasgow Caledonian University is a registered Scottish charity, number SC021474 _______________________________________________ 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 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. 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. Glasgow Caledonian University is a registered Scottish charity, number SC021474 _______________________________________________ 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 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. 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. Glasgow Caledonian University is a registered Scottish charity, number SC021474 _______________________________________________ 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 Glasgow Caledonian University is a registered Scottish charity, number SC021474 _______________________________________________ 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 _______________________________________________ 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 _______________________________________________ Xerte-dev mailing list Xerte-dev at lists.nottingham.ac.uk http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev Glasgow Caledonian University is a registered Scottish charity, number SC021474 _______________________________________________ Xerte-dev mailing list Xerte-dev at lists.nottingham.ac.uk http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev From xerte at pgogywebstuff.com Thu Jun 26 14:45:18 2014 From: xerte at pgogywebstuff.com (Pat L (pgogy)) Date: Thu, 26 Jun 2014 14:45:18 +0100 Subject: [Xerte-dev] Re: preview.xml not created In-Reply-To: References: <12C67A1EEC419342AF5E59DA31562C3F0D901796B3@EXCHANGE1.ad.nottingham.ac.uk> <016501cf9139$a1a62f60$e4f28e20$@co.uk> <016f01cf913b$153ab260$3fb01720$@co.uk> <12C67A1EEC419342AF5E59DA31562C3F0D90179716@EXCHANGE1.ad.nottingham.ac.uk> <018a01cf913e$a3b32420$eb196c60$@co.uk> <12C67A1EEC419342AF5E59DA31562C3F0D90179742@EXCHANGE1.ad.nottingham.ac.uk> Message-ID: It could be a PHP change - there was some server stuff changed recently? On Thu, Jun 26, 2014 at 2:11 PM, Smith, John wrote: > I've certainly never been able to reproduce the session id consistently > either. I have seen it though but afaik its only been after a genuine > timeout or when that unload line made its way to my machine... > > I think these things are related to your server which is why i'm wondering > if anything has changed recently? update to Windows/Linux, PHP etc? > > Regards, > > John Smith | Learning Technologist > Room A250, Govan Mbeki Building | School of Health & Life Sciences | > Glasgow Caledonian University > Cowcaddens Road | Glasgow | G4 0BA > > Please address ALL support requests to hlsblt at gcu.ac.uk where one of the > School Learning Technologists will pick up the job. This will ensure that > all jobs are completed as promptly as possible. > ________________________________________ > From: xerte-dev-bounces at lists.nottingham.ac.uk [ > xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Julian Tenney [ > Julian.Tenney at nottingham.ac.uk] > Sent: 26 June 2014 14:01 > To: For Xerte technical developers > Subject: [Xerte-dev] Re: preview.xml not created > > Maybe. Lunch 11.45 for 12.00? > > -----Original Message----- > From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto: > xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Ron Mitchell > Sent: 26 June 2014 14:01 > To: 'For Xerte technical developers' > Subject: [Xerte-dev] Re: preview.xml not created > > Perhaps there will be time and opportunity to have a quick look tomorrow > when we're on-site... > > -----Original Message----- > From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto: > xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Julian Tenney > Sent: 26 June 2014 13:38 > To: For Xerte technical developers > Subject: [Xerte-dev] Re: preview.xml not created > > I thought it had gone away as well, but not this morning. > > I'm not having a dig by the way. > > -----Original Message----- > From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto: > xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Ron Mitchell > Sent: 26 June 2014 13:35 > To: 'For Xerte technical developers' > Subject: [Xerte-dev] Re: preview.xml not created > > also re >"The session ID thing has been going along for ages now..."< > > This is anecdotal but as far as I'm aware we weren't able to replicate the > session ID problem you were getting (I think with with Firefox) but > certainly did get session ID issues with that > onbeforeunload="javascript:logout()" line added. With that removed I'm not > aware of any session ID issues and would hear about it if there were. > > -----Original Message----- > From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto: > xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Ron Mitchell > Sent: 26 June 2014 13:25 > To: 'For Xerte technical developers' > Subject: [Xerte-dev] Re: preview.xml not created > > Do you still have that onunload line in your index.php file? > > e.g. from previous thread > > Currently in 2.1 branch: > > > removing onbeforeunload="javascript:logout()" stops the problem with IE 10. > > -----Original Message----- > From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto: > xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Julian Tenney > Sent: 26 June 2014 12:47 > To: Smith, John; For Xerte technical developers; xerte at pgogywebstuff.com > Subject: [Xerte-dev] Re: preview.xml not created > > OK, I went over and had a look. > > In Chrome everything worked fine. > > In IE I very quickly hit major 'session ID not set' problems. We really > need to resolve this one way or another, even if we use the new editor as > the way to do it. > > In IE, clicking create would lead to nothing... for a few seconds... and > then the popup up would open with the session ID not set error. I got this > error from the page: > > Message: Invalid argument. > Line: 1179 > Char: 6 > Code: 0 > URI: > http://www.nottingham.ac.uk/toolkits/website_code/scripts/template_management.js > > I think eventually I did manage to create a LO in the workspace, but not > without refreshing several times until it appeared, and never from the > create button directly. > > So maybe this has something to do with the other user problem, maybe not. > I don't really know. > > It might be worth me getting one of you guys who knows the PHP stuff > associate access to our network and see if you can reproduce it? The > session ID thing has been going along for ages now, and I don't feel any > closer to a resolution, and frankly, I don't really understand enough > myself to try and fix it. > > J > > > > -----Original Message----- > From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto: > xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Smith, John > Sent: 26 June 2014 11:25 > To: xerte at pgogywebstuff.com; For Xerte technical developers > Subject: [Xerte-dev] Re: preview.xml not created > > Create a new LO and if when edit opens it is blank then right click on the > header and reload/refresh > > If it then loads ok then the id is right but something is most likely > delaying the copy of data.xml from template folder to USER-FILES folder. > > The copy routine has debug messages in there so you could check them and > see if any that are in edit are in an unusual order when you get a problem > which might or might not indicate a threading issue depending on whether it > is the php execution or the file system operations that are being delayed... > > John > > Sent from Samsung tablet > > > > -------- Original message -------- > From: "Pat L (pgogy)" > Date: 26/06/2014 10:15 (GMT+00:00) > To: For Xerte technical developers > Subject: [Xerte-dev] Re: preview.xml not created > > > Should as in > > The PHP script has called the functions which do it It then inserts into > the database and returns the ID given > > So unless the PHP is delayed, or threads, then can't see why. > > It might be the ID isn't right? > > > On Thu, Jun 26, 2014 at 9:12 AM, Julian Tenney < > Julian.Tenney at nottingham.ac.uk> > wrote: > By the time the id returns, data.xml and media/ should be copied > > 'Should' as in will have been or 'should' as in might have been? > > I'm going to go and have a look later and see if I can figure out what's > going on, > > J > > -----Original Message----- > From: xerte-dev-bounces at lists.nottingham.ac.uk xerte-dev-bounces at lists.nottingham.ac.uk> [mailto: > xerte-dev-bounces at lists.nottingham.ac.uk xerte-dev-bounces at lists.nottingham.ac.uk>] On Behalf Of Smith, John > Sent: 25 June 2014 17:12 > To: xerte-dev at lists.nottingham.ac.uk xerte-dev at lists.nottingham.ac.uk> > Subject: [Xerte-dev] Re: preview.xml not created > > I think what Pat is saying confirms that it can only be synchronous. > > You click new and give it a name > > An ajax call is made to new_template > > When it returns with an id then that id is used to instruct the editor > which LO to open. > > By the time the id returns, data.xml and media/ should be copied. Edit > looks to see if there is a preview.xml and if not then it copies data.xml > to preview.xml and then loads preview.xml > > Regards > > John Smith > Learning Technologist > School of Health and Life Sciences > > Sent from Samsung Galaxy SII > > > > Julian Tenney Julian.Tenney at nottingham.ac.uk>> wrote: > > > No, no weird templates, it?s Nottingham for sure. > > I?m sure what you say answers my question ?is it synchronous or not?? But > I don?t know whether it means ?yes? or ?no?. > > From: xerte-dev-bounces at lists.nottingham.ac.uk xerte-dev-bounces at lists.nottingham.ac.uk> [mailto: > xerte-dev-bounces at lists.nottingham.ac.uk xerte-dev-bounces at lists.nottingham.ac.uk>] On Behalf Of Pat L (pgogy) > Sent: 25 June 2014 16:47 > To: For Xerte technical developers > Subject: [Xerte-dev] Re: preview.xml not created > > new template.php ends in a ajax call to the editor, so it's not one block > of PHP but one process. New template ends, echoes out a template id, which > the ajax gets, and then fires off the editor. > > If the editor isn't working, I am suspecting it might be the template is > weird? Is it definitely Nottingham? Not one of the old mediainteraction > ones or something? > > On Wed, Jun 25, 2014 at 4:12 PM, Julian Tenney < > Julian.Tenney at nottingham.ac.uk > Julian.Tenney at nottingham.ac.uk>>> wrote: > Data.xml is being created, but what seems to fail is the editor opening. > Media folder is being created too. > > So it's the process of opening the editor that creates preview.xml? > > Come to think about it, I had issues myself in the same building on > Monday. I just refreshed the workspace and I was in business, didn't really > think about it. > > I found another user with the same problem: returning to the workspace > later, his projects are all there and editable now. > > Some sort of timing issue? The editor opening and data.xml hasn't been > created yet, so nothing to copy? > > -----Original Message----- > From: xerte-dev-bounces at lists.nottingham.ac.uk xerte-dev-bounces at lists.nottingham.ac.uk> xerte-dev-bounces at lists.nottingham.ac.uk xerte-dev-bounces at lists.nottingham.ac.uk>> [mailto: > xerte-dev-bounces at lists.nottingham.ac.uk xerte-dev-bounces at lists.nottingham.ac.uk> xerte-dev-bounces at lists.nottingham.ac.uk xerte-dev-bounces at lists.nottingham.ac.uk>>] On Behalf Of Smith, John > Sent: 25 June 2014 16:09 > To: For Xerte technical developers > Subject: [Xerte-dev] Re: preview.xml not created > > Popup blocker doesn't usually stop preview.xml being copied, or at least > it's never affected me like that before... plus wouldn't the popup blocker > work for others too? > > Edit checks for the existence of preview.xml and either opens it or copies > the blank > > > https://github.com/thexerteproject/xerteonlinetoolkits/blob/f5ad19b03ed2c76ac29cbcd0ec5199360dc61d6a/modules/xerte/edit.php#L47 > > There are a few checks beforehand though that could error out (like > below). Check the response in Google Chrome to see if any errors are being > sent back i suppose: > > if(empty($row_username)) { > die("Invalid user id ?"); > } > > and > > if(!file_exists($preview) && file_exists($data)){ > copy($data, $preview); > chmod($preview, 0777); > } > > So it looks like data.xml needs to be there which comes from the > Nottingham template. Is data.xml being created in the folder? And a media > folder to hold the multimedia? > > If not then it looks like this is failing > > > https://github.com/thexerteproject/xerteonlinetoolkits/blob/f5ad19b03ed2c76ac29cbcd0ec5199360dc61d6a/modules/site/new_template.php#L76 > > It puts some debug messages into the logs so you might like to check there > to see if anything shows up... > > Regards, > > John Smith | Learning Technologist > Room A250, Govan Mbeki Building | School of Health & Life Sciences | > Glasgow Caledonian University Cowcaddens Road | Glasgow | G4 0BA > > Please address ALL support requests to hlsblt at gcu.ac.uk hlsblt at gcu.ac.uk>> where > one of the School Learning Technologists will pick up the job. This will > ensure that all jobs are completed as promptly as possible. > ________________________________________ > From: xerte-dev-bounces at lists.nottingham.ac.uk xerte-dev-bounces at lists.nottingham.ac.uk> xerte-dev-bounces at lists.nottingham.ac.uk xerte-dev-bounces at lists.nottingham.ac.uk>> [ > xerte-dev-bounces at lists.nottingham.ac.uk xerte-dev-bounces at lists.nottingham.ac.uk> xerte-dev-bounces at lists.nottingham.ac.uk xerte-dev-bounces at lists.nottingham.ac.uk>>] On Behalf Of Julian Tenney [ > Julian.Tenney at nottingham.ac.uk > Julian.Tenney at nottingham.ac.uk>>] > Sent: 25 June 2014 15:51 > To: For Xerte technical developers > Subject: [Xerte-dev] Re: preview.xml not created > > No, preview is not created. I think this is maybe to do with popup > blocker, so edit never opens. > > What order do things happen in when a project is created? > > -----Original Message----- > From: xerte-dev-bounces at lists.nottingham.ac.uk xerte-dev-bounces at lists.nottingham.ac.uk> xerte-dev-bounces at lists.nottingham.ac.uk xerte-dev-bounces at lists.nottingham.ac.uk>> [mailto: > xerte-dev-bounces at lists.nottingham.ac.uk xerte-dev-bounces at lists.nottingham.ac.uk> xerte-dev-bounces at lists.nottingham.ac.uk xerte-dev-bounces at lists.nottingham.ac.uk>>] On Behalf Of Smith, John > Sent: 25 June 2014 15:47 > To: For Xerte technical developers > Subject: [Xerte-dev] Re: preview.xml not created > > If the user creates a new LO and edit opens then do you see the blank, > default preview.xml being copied into in the newly created USER-FILES > folder? > > Regards, > > John Smith | Learning Technologist > Room A250, Govan Mbeki Building | School of Health & Life Sciences | > Glasgow Caledonian University Cowcaddens Road | Glasgow | G4 0BA > > Please address ALL support requests to hlsblt at gcu.ac.uk hlsblt at gcu.ac.uk>> where > one of the School Learning Technologists will pick up the job. This will > ensure that all jobs are completed as promptly as possible. > ________________________________________ > From: xerte-dev-bounces at lists.nottingham.ac.uk xerte-dev-bounces at lists.nottingham.ac.uk> xerte-dev-bounces at lists.nottingham.ac.uk xerte-dev-bounces at lists.nottingham.ac.uk>> [ > xerte-dev-bounces at lists.nottingham.ac.uk xerte-dev-bounces at lists.nottingham.ac.uk> xerte-dev-bounces at lists.nottingham.ac.uk xerte-dev-bounces at lists.nottingham.ac.uk>>] On Behalf Of Julian Tenney [ > Julian.Tenney at nottingham.ac.uk > Julian.Tenney at nottingham.ac.uk>>] > Sent: 25 June 2014 14:27 > To: For Xerte technical developers (xerte-dev at lists.nottingham.ac.uk > xerte-dev at lists.nottingham.ac.uk >>) > Subject: [Xerte-dev] Re: preview.xml not created > > We have only one of these usernames, dating from 2006, so predates > toolkits, and not a duplicate. > > -----Original Message----- > From: Tenney Julian > Sent: 25 June 2014 12:38 > To: For Xerte technical developers > Subject: RE: [Xerte-dev] Re: preview.xml not created > > No, that looks right. At least the folder has the correct user name in it. > > -----Original Message----- > From: xerte-dev-bounces at lists.nottingham.ac.uk xerte-dev-bounces at lists.nottingham.ac.uk> xerte-dev-bounces at lists.nottingham.ac.uk xerte-dev-bounces at lists.nottingham.ac.uk>> [mailto: > xerte-dev-bounces at lists.nottingham.ac.uk xerte-dev-bounces at lists.nottingham.ac.uk> xerte-dev-bounces at lists.nottingham.ac.uk xerte-dev-bounces at lists.nottingham.ac.uk>>] On Behalf Of Julian Tenney > Sent: 25 June 2014 12:04 > To: For Xerte technical developers > Subject: [Xerte-dev] Re: preview.xml not created > > I'll check that. I didn't notice anything obvious though... > > -----Original Message----- > From: xerte-dev-bounces at lists.nottingham.ac.uk xerte-dev-bounces at lists.nottingham.ac.uk> xerte-dev-bounces at lists.nottingham.ac.uk xerte-dev-bounces at lists.nottingham.ac.uk>> [mailto: > xerte-dev-bounces at lists.nottingham.ac.uk xerte-dev-bounces at lists.nottingham.ac.uk> xerte-dev-bounces at lists.nottingham.ac.uk xerte-dev-bounces at lists.nottingham.ac.uk>>] On Behalf Of Ron Mitchell > Sent: 25 June 2014 12:00 > To: For Xerte technical developers > Subject: [Xerte-dev] Re: preview.xml not created > > My hunch would be a username issue - check username matches the folders > being created including case sensitivity? > > Sent from my iPhone > > > On 25 Jun 2014, at 11:00, Julian Tenney Julian.Tenney at nottingham.ac.uk>> > wrote: > > > > Why only for one user? > > > > -----Original Message----- > > From: > > xerte-dev-bounces at lists.nottingham.ac.uk > s.nottingham.ac.uk> > nces at list> s.nottingham.ac.uk> > > [mailto:xerte-dev-bounces at lists.nottingham.ac.uk > ces at lists.nottingham.ac.uk> > n> ces at lists.nottingham.ac.uk>] On > > Behalf Of David Goodwin > > Sent: 25 June 2014 11:00 > > To: For Xerte technical developers > > Subject: [Xerte-dev] Re: preview.xml not created > > > > I have a feeling XOT may be mixing up it's saving of preview.xml and > > data.xml - in that it saves data.xml when it should save preview.xml > > etc > > > > David. > > > >> On 25/06/14 10:58, Julian Tenney wrote: > >> Got a user here who logs in, tries to create a LO, but preview .xml > >> isn't being created: consequently the editor has no LO icon in it > >> when it loads up. Other users on same computer work fine. Any idea > >> what's going on? > >> > >> cid:image004.jpg at 01CF905F.BC2E7D90 > >> > >> > >> > >> _______________________________________________ > >> Xerte-dev mailing list > >> Xerte-dev at lists.nottingham.ac.uk >> .uk> >> ingham.ac> .uk> > >> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev > > > > -- > > Pale Purple Ltd > > > > PHP Web application development and support > > > > http://www.palepurple.co.uk > > @PalePurpleLtd > > 07792 380669 / 0845 0046746 > > > > _______________________________________________ > > Xerte-dev mailing list > > Xerte-dev at lists.nottingham.ac.uk > 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 > Xerte-dev at lists.nottingham.ac>. > > uk> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev > > 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. > > > > 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. > > > > > > > > > > _______________________________________________ > Xerte-dev mailing list > Xerte-dev at lists.nottingham.ac.uk > 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 > 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 > Xerte-dev at lists.nottingham.ac.uk>> > http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev > 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. > > 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. > > > > > > Glasgow Caledonian University is a registered Scottish charity, number > SC021474 > > _______________________________________________ > Xerte-dev mailing list > Xerte-dev at lists.nottingham.ac.uk > 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 > Xerte-dev at lists.nottingham.ac.uk>> > http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev > 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. > > 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. > > > > Glasgow Caledonian University is a registered Scottish charity, number > SC021474 > > _______________________________________________ > Xerte-dev mailing list > Xerte-dev at lists.nottingham.ac.uk > 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 > Xerte-dev at lists.nottingham.ac.uk>> > http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev > 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. > > 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. > > > > > > Glasgow Caledonian University is a registered Scottish charity, number > SC021474 _______________________________________________ > 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 > > > Glasgow Caledonian University is a registered Scottish charity, number > SC021474 _______________________________________________ > 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 > > > _______________________________________________ > 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 > _______________________________________________ > Xerte-dev mailing list > Xerte-dev at lists.nottingham.ac.uk > http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev > > Glasgow Caledonian University is a registered Scottish charity, number > SC021474 > > _______________________________________________ > Xerte-dev mailing list > Xerte-dev at lists.nottingham.ac.uk > http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev > 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. > > 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. > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Julian.Tenney at nottingham.ac.uk Thu Jun 26 15:02:20 2014 From: Julian.Tenney at nottingham.ac.uk (Julian Tenney) Date: Thu, 26 Jun 2014 15:02:20 +0100 Subject: [Xerte-dev] Re: preview.xml not created In-Reply-To: References: <12C67A1EEC419342AF5E59DA31562C3F0D901796B3@EXCHANGE1.ad.nottingham.ac.uk> <016501cf9139$a1a62f60$e4f28e20$@co.uk> <016f01cf913b$153ab260$3fb01720$@co.uk> <12C67A1EEC419342AF5E59DA31562C3F0D90179716@EXCHANGE1.ad.nottingham.ac.uk> <018a01cf913e$a3b32420$eb196c60$@co.uk> <12C67A1EEC419342AF5E59DA31562C3F0D90179742@EXCHANGE1.ad.nottingham.ac.uk> Message-ID: <12C67A1EEC419342AF5E59DA31562C3F0D901797C6@EXCHANGE1.ad.nottingham.ac.uk> Maybe, not always made aware. I?ll ask. I?ll probably get the glib answer that things are changing all the time. From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Pat L (pgogy) Sent: 26 June 2014 14:45 To: For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created It could be a PHP change - there was some server stuff changed recently? On Thu, Jun 26, 2014 at 2:11 PM, Smith, John > wrote: I've certainly never been able to reproduce the session id consistently either. I have seen it though but afaik its only been after a genuine timeout or when that unload line made its way to my machine... I think these things are related to your server which is why i'm wondering if anything has changed recently? update to Windows/Linux, PHP etc? Regards, John Smith | Learning Technologist Room A250, Govan Mbeki Building | School of Health & Life Sciences | Glasgow Caledonian University Cowcaddens Road | Glasgow | G4 0BA Please address ALL support requests to hlsblt at gcu.ac.uk where one of the School Learning Technologists will pick up the job. This will ensure that all jobs are completed as promptly as possible. ________________________________________ From: xerte-dev-bounces at lists.nottingham.ac.uk [xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Julian Tenney [Julian.Tenney at nottingham.ac.uk] Sent: 26 June 2014 14:01 To: For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created Maybe. Lunch 11.45 for 12.00? -----Original Message----- From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Ron Mitchell Sent: 26 June 2014 14:01 To: 'For Xerte technical developers' Subject: [Xerte-dev] Re: preview.xml not created Perhaps there will be time and opportunity to have a quick look tomorrow when we're on-site... -----Original Message----- From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Julian Tenney Sent: 26 June 2014 13:38 To: For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created I thought it had gone away as well, but not this morning. I'm not having a dig by the way. -----Original Message----- From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Ron Mitchell Sent: 26 June 2014 13:35 To: 'For Xerte technical developers' Subject: [Xerte-dev] Re: preview.xml not created also re >"The session ID thing has been going along for ages now..."< This is anecdotal but as far as I'm aware we weren't able to replicate the session ID problem you were getting (I think with with Firefox) but certainly did get session ID issues with that onbeforeunload="javascript:logout()" line added. With that removed I'm not aware of any session ID issues and would hear about it if there were. -----Original Message----- From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Ron Mitchell Sent: 26 June 2014 13:25 To: 'For Xerte technical developers' Subject: [Xerte-dev] Re: preview.xml not created Do you still have that onunload line in your index.php file? e.g. from previous thread Currently in 2.1 branch: removing onbeforeunload="javascript:logout()" stops the problem with IE 10. -----Original Message----- From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Julian Tenney Sent: 26 June 2014 12:47 To: Smith, John; For Xerte technical developers; xerte at pgogywebstuff.com Subject: [Xerte-dev] Re: preview.xml not created OK, I went over and had a look. In Chrome everything worked fine. In IE I very quickly hit major 'session ID not set' problems. We really need to resolve this one way or another, even if we use the new editor as the way to do it. In IE, clicking create would lead to nothing... for a few seconds... and then the popup up would open with the session ID not set error. I got this error from the page: Message: Invalid argument. Line: 1179 Char: 6 Code: 0 URI: http://www.nottingham.ac.uk/toolkits/website_code/scripts/template_management.js I think eventually I did manage to create a LO in the workspace, but not without refreshing several times until it appeared, and never from the create button directly. So maybe this has something to do with the other user problem, maybe not. I don't really know. It might be worth me getting one of you guys who knows the PHP stuff associate access to our network and see if you can reproduce it? The session ID thing has been going along for ages now, and I don't feel any closer to a resolution, and frankly, I don't really understand enough myself to try and fix it. J -----Original Message----- From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Smith, John Sent: 26 June 2014 11:25 To: xerte at pgogywebstuff.com; For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created Create a new LO and if when edit opens it is blank then right click on the header and reload/refresh If it then loads ok then the id is right but something is most likely delaying the copy of data.xml from template folder to USER-FILES folder. The copy routine has debug messages in there so you could check them and see if any that are in edit are in an unusual order when you get a problem which might or might not indicate a threading issue depending on whether it is the php execution or the file system operations that are being delayed... John Sent from Samsung tablet -------- Original message -------- From: "Pat L (pgogy)" > Date: 26/06/2014 10:15 (GMT+00:00) To: For Xerte technical developers > Subject: [Xerte-dev] Re: preview.xml not created Should as in The PHP script has called the functions which do it It then inserts into the database and returns the ID given So unless the PHP is delayed, or threads, then can't see why. It might be the ID isn't right? On Thu, Jun 26, 2014 at 9:12 AM, Julian Tenney >> wrote: By the time the id returns, data.xml and media/ should be copied 'Should' as in will have been or 'should' as in might have been? I'm going to go and have a look later and see if I can figure out what's going on, J -----Original Message----- From: xerte-dev-bounces at lists.nottingham.ac.uk> [mailto:xerte-dev-bounces at lists.nottingham.ac.uk>] On Behalf Of Smith, John Sent: 25 June 2014 17:12 To: xerte-dev at lists.nottingham.ac.uk> Subject: [Xerte-dev] Re: preview.xml not created I think what Pat is saying confirms that it can only be synchronous. You click new and give it a name An ajax call is made to new_template When it returns with an id then that id is used to instruct the editor which LO to open. By the time the id returns, data.xml and media/ should be copied. Edit looks to see if there is a preview.xml and if not then it copies data.xml to preview.xml and then loads preview.xml Regards John Smith Learning Technologist School of Health and Life Sciences Sent from Samsung Galaxy SII Julian Tenney >> wrote: No, no weird templates, it?s Nottingham for sure. I?m sure what you say answers my question ?is it synchronous or not?? But I don?t know whether it means ?yes? or ?no?. From: xerte-dev-bounces at lists.nottingham.ac.uk> [mailto:xerte-dev-bounces at lists.nottingham.ac.uk>] On Behalf Of Pat L (pgogy) Sent: 25 June 2014 16:47 To: For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created new template.php ends in a ajax call to the editor, so it's not one block of PHP but one process. New template ends, echoes out a template id, which the ajax gets, and then fires off the editor. If the editor isn't working, I am suspecting it might be the template is weird? Is it definitely Nottingham? Not one of the old mediainteraction ones or something? On Wed, Jun 25, 2014 at 4:12 PM, Julian Tenney >>>> wrote: Data.xml is being created, but what seems to fail is the editor opening. Media folder is being created too. So it's the process of opening the editor that creates preview.xml? Come to think about it, I had issues myself in the same building on Monday. I just refreshed the workspace and I was in business, didn't really think about it. I found another user with the same problem: returning to the workspace later, his projects are all there and editable now. Some sort of timing issue? The editor opening and data.xml hasn't been created yet, so nothing to copy? -----Original Message----- From: xerte-dev-bounces at lists.nottingham.ac.uk>>> [mailto:xerte-dev-bounces at lists.nottingham.ac.uk>>>] On Behalf Of Smith, John Sent: 25 June 2014 16:09 To: For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created Popup blocker doesn't usually stop preview.xml being copied, or at least it's never affected me like that before... plus wouldn't the popup blocker work for others too? Edit checks for the existence of preview.xml and either opens it or copies the blank https://github.com/thexerteproject/xerteonlinetoolkits/blob/f5ad19b03ed2c76ac29cbcd0ec5199360dc61d6a/modules/xerte/edit.php#L47 There are a few checks beforehand though that could error out (like below). Check the response in Google Chrome to see if any errors are being sent back i suppose: if(empty($row_username)) { die("Invalid user id ?"); } and if(!file_exists($preview) && file_exists($data)){ copy($data, $preview); chmod($preview, 0777); } So it looks like data.xml needs to be there which comes from the Nottingham template. Is data.xml being created in the folder? And a media folder to hold the multimedia? If not then it looks like this is failing https://github.com/thexerteproject/xerteonlinetoolkits/blob/f5ad19b03ed2c76ac29cbcd0ec5199360dc61d6a/modules/site/new_template.php#L76 It puts some debug messages into the logs so you might like to check there to see if anything shows up... Regards, John Smith | Learning Technologist Room A250, Govan Mbeki Building | School of Health & Life Sciences | Glasgow Caledonian University Cowcaddens Road | Glasgow | G4 0BA Please address ALL support requests to hlsblt at gcu.ac.uk>>> where one of the School Learning Technologists will pick up the job. This will ensure that all jobs are completed as promptly as possible. ________________________________________ From: xerte-dev-bounces at lists.nottingham.ac.uk>>> [xerte-dev-bounces at lists.nottingham.ac.uk>>>] On Behalf Of Julian Tenney [Julian.Tenney at nottingham.ac.uk>>>] Sent: 25 June 2014 15:51 To: For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created No, preview is not created. I think this is maybe to do with popup blocker, so edit never opens. What order do things happen in when a project is created? -----Original Message----- From: xerte-dev-bounces at lists.nottingham.ac.uk>>> [mailto:xerte-dev-bounces at lists.nottingham.ac.uk>>>] On Behalf Of Smith, John Sent: 25 June 2014 15:47 To: For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created If the user creates a new LO and edit opens then do you see the blank, default preview.xml being copied into in the newly created USER-FILES folder? Regards, John Smith | Learning Technologist Room A250, Govan Mbeki Building | School of Health & Life Sciences | Glasgow Caledonian University Cowcaddens Road | Glasgow | G4 0BA Please address ALL support requests to hlsblt at gcu.ac.uk>>> where one of the School Learning Technologists will pick up the job. This will ensure that all jobs are completed as promptly as possible. ________________________________________ From: xerte-dev-bounces at lists.nottingham.ac.uk>>> [xerte-dev-bounces at lists.nottingham.ac.uk>>>] On Behalf Of Julian Tenney [Julian.Tenney at nottingham.ac.uk>>>] Sent: 25 June 2014 14:27 To: For Xerte technical developers (xerte-dev at lists.nottingham.ac.uk>>>) Subject: [Xerte-dev] Re: preview.xml not created We have only one of these usernames, dating from 2006, so predates toolkits, and not a duplicate. -----Original Message----- From: Tenney Julian Sent: 25 June 2014 12:38 To: For Xerte technical developers Subject: RE: [Xerte-dev] Re: preview.xml not created No, that looks right. At least the folder has the correct user name in it. -----Original Message----- From: xerte-dev-bounces at lists.nottingham.ac.uk>>> [mailto:xerte-dev-bounces at lists.nottingham.ac.uk>>>] On Behalf Of Julian Tenney Sent: 25 June 2014 12:04 To: For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created I'll check that. I didn't notice anything obvious though... -----Original Message----- From: xerte-dev-bounces at lists.nottingham.ac.uk>>> [mailto:xerte-dev-bounces at lists.nottingham.ac.uk>>>] On Behalf Of Ron Mitchell Sent: 25 June 2014 12:00 To: For Xerte technical developers Subject: [Xerte-dev] Re: preview.xml not created My hunch would be a username issue - check username matches the folders being created including case sensitivity? Sent from my iPhone > On 25 Jun 2014, at 11:00, Julian Tenney >>>> wrote: > > Why only for one user? > > -----Original Message----- > From: > xerte-dev-bounces at lists.nottingham.ac.uk > s.nottingham.ac.uk> > nces at list> s.nottingham.ac.uk> > [mailto:xerte-dev-bounces at lists.nottingham.ac.uk > ces at lists.nottingham.ac.uk> > n> ces at lists.nottingham.ac.uk>>] On > Behalf Of David Goodwin > Sent: 25 June 2014 11:00 > To: For Xerte technical developers > Subject: [Xerte-dev] Re: preview.xml not created > > I have a feeling XOT may be mixing up it's saving of preview.xml and > data.xml - in that it saves data.xml when it should save preview.xml > etc > > David. > >> On 25/06/14 10:58, Julian Tenney wrote: >> Got a user here who logs in, tries to create a LO, but preview .xml >> isn't being created: consequently the editor has no LO icon in it >> when it loads up. Other users on same computer work fine. Any idea >> what's going on? >> >> cid:image004.jpg at 01CF905F.BC2E7D90 >> >> >> >> _______________________________________________ >> Xerte-dev mailing list >> Xerte-dev at lists.nottingham.ac.uk >> .uk> >> ingham.ac> .uk> >> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev > > -- > Pale Purple Ltd > > PHP Web application development and support > > http://www.palepurple.co.uk > @PalePurpleLtd > 07792 380669 / 0845 0046746 > > _______________________________________________ > Xerte-dev mailing list > Xerte-dev at lists.nottingham.ac.uk>>. > uk> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev > > _______________________________________________ > Xerte-dev mailing list > Xerte-dev at lists.nottingham.ac.uk>>. > uk> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev > 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. > > 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. > > > > _______________________________________________ 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 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. 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. Glasgow Caledonian University is a registered Scottish charity, number SC021474 _______________________________________________ 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 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. 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. Glasgow Caledonian University is a registered Scottish charity, number SC021474 _______________________________________________ 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 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. 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. Glasgow Caledonian University is a registered Scottish charity, number SC021474 _______________________________________________ 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 Glasgow Caledonian University is a registered Scottish charity, number SC021474 _______________________________________________ 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 _______________________________________________ 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 _______________________________________________ Xerte-dev mailing list Xerte-dev at lists.nottingham.ac.uk http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev Glasgow Caledonian University is a registered Scottish charity, number SC021474 _______________________________________________ Xerte-dev mailing list Xerte-dev at lists.nottingham.ac.uk http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev 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. 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. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Julian.Tenney at nottingham.ac.uk Mon Jun 30 08:48:33 2014 From: Julian.Tenney at nottingham.ac.uk (Julian Tenney) Date: Mon, 30 Jun 2014 08:48:33 +0100 Subject: [Xerte-dev] https://www.youtube.com/watch?v=eORqFaf_QzM Message-ID: <12C67A1EEC419342AF5E59DA31562C3F0D90179CCA@EXCHANGE1.ad.nottingham.ac.uk> Interesting. You can do this web component stuff with AngularJS, right? So it looks to me like an AngularJS tutorial, but with google specifics? -------------- next part -------------- An HTML attachment was scrubbed... URL: From J.J.Smith at gcu.ac.uk Mon Jun 30 11:23:36 2014 From: J.J.Smith at gcu.ac.uk (Smith, John) Date: Mon, 30 Jun 2014 11:23:36 +0100 Subject: [Xerte-dev] Re: https://www.youtube.com/watch?v=eORqFaf_QzM In-Reply-To: <12C67A1EEC419342AF5E59DA31562C3F0D90179CCA@EXCHANGE1.ad.nottingham.ac.uk> References: <12C67A1EEC419342AF5E59DA31562C3F0D90179CCA@EXCHANGE1.ad.nottingham.ac.uk> Message-ID: Yes, it looks good as a high level markup language. Only thing is it won't validate as valid HTML, if that is important... With Angular for example you define the app with an ng-app directive (like an attribute in an html tag) which itself will not validate but for all angular directives you can prefix with data- so you would write: And that tag will validate now successfully... Regards, John Smith | Learning Technologist Room A250, Govan Mbeki Building | School of Health & Life Sciences | Glasgow Caledonian University Cowcaddens Road | Glasgow | G4 0BA Please address ALL support requests to hlsblt at gcu.ac.uk where one of the School Learning Technologists will pick up the job. This will ensure that all jobs are completed as promptly as possible. ________________________________________ From: xerte-dev-bounces at lists.nottingham.ac.uk [xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Julian Tenney [Julian.Tenney at nottingham.ac.uk] Sent: 30 June 2014 08:48 To: For Xerte technical developers (xerte-dev at lists.nottingham.ac.uk) Subject: [Xerte-dev] https://www.youtube.com/watch?v=eORqFaf_QzM Interesting. You can do this web component stuff with AngularJS, right? So it looks to me like an AngularJS tutorial, but with google specifics? 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. 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. Glasgow Caledonian University is a registered Scottish charity, number SC021474