<div dir="ltr">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.<div><br>
</div><div>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?</div></div><div class="gmail_extra"><br><br>
<div class="gmail_quote">On Wed, Jun 25, 2014 at 4:12 PM, Julian Tenney <span dir="ltr"><<a href="mailto:Julian.Tenney@nottingham.ac.uk" target="_blank">Julian.Tenney@nottingham.ac.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Data.xml is being created, but what seems to fail is the editor opening. Media folder is being created too.<br>
<br>
So it's the process of opening the editor that creates preview.xml?<br>
<br>
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.<br>
<br>
I found another user with the same problem: returning to the workspace later, his projects are all there and editable now.<br>
<br>
Some sort of timing issue? The editor opening and data.xml hasn't been created yet, so nothing to copy?<br>
<div class="im HOEnZb"><br>
-----Original Message-----<br>
From: <a href="mailto:xerte-dev-bounces@lists.nottingham.ac.uk">xerte-dev-bounces@lists.nottingham.ac.uk</a> [mailto:<a href="mailto:xerte-dev-bounces@lists.nottingham.ac.uk">xerte-dev-bounces@lists.nottingham.ac.uk</a>] On Behalf Of Smith, John<br>
</div><div class="HOEnZb"><div class="h5">Sent: 25 June 2014 16:09<br>
To: For Xerte technical developers<br>
Subject: [Xerte-dev] Re: preview.xml not created<br>
<br>
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?<br>
<br>
Edit checks for the existence of preview.xml and either opens it or copies the blank<br>
<br>
<a href="https://github.com/thexerteproject/xerteonlinetoolkits/blob/f5ad19b03ed2c76ac29cbcd0ec5199360dc61d6a/modules/xerte/edit.php#L47" target="_blank">https://github.com/thexerteproject/xerteonlinetoolkits/blob/f5ad19b03ed2c76ac29cbcd0ec5199360dc61d6a/modules/xerte/edit.php#L47</a><br>
<br>
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:<br>
<br>
if(empty($row_username)) {<br>
die("Invalid user id ?");<br>
}<br>
<br>
and<br>
<br>
if(!file_exists($preview) && file_exists($data)){<br>
copy($data, $preview);<br>
chmod($preview, 0777);<br>
}<br>
<br>
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?<br>
<br>
If not then it looks like this is failing<br>
<br>
<a href="https://github.com/thexerteproject/xerteonlinetoolkits/blob/f5ad19b03ed2c76ac29cbcd0ec5199360dc61d6a/modules/site/new_template.php#L76" target="_blank">https://github.com/thexerteproject/xerteonlinetoolkits/blob/f5ad19b03ed2c76ac29cbcd0ec5199360dc61d6a/modules/site/new_template.php#L76</a><br>
<br>
It puts some debug messages into the logs so you might like to check there to see if anything shows up...<br>
<br>
Regards,<br>
<br>
John Smith | Learning Technologist<br>
Room A250, Govan Mbeki Building | School of Health & Life Sciences | Glasgow Caledonian University Cowcaddens Road | Glasgow | G4 0BA<br>
<br>
Please address ALL support requests to <a href="mailto:hlsblt@gcu.ac.uk">hlsblt@gcu.ac.uk</a> where one of the School Learning Technologists will pick up the job. This will ensure that all jobs are completed as promptly as possible.<br>
________________________________________<br>
From: <a href="mailto:xerte-dev-bounces@lists.nottingham.ac.uk">xerte-dev-bounces@lists.nottingham.ac.uk</a> [<a href="mailto:xerte-dev-bounces@lists.nottingham.ac.uk">xerte-dev-bounces@lists.nottingham.ac.uk</a>] On Behalf Of Julian Tenney [<a href="mailto:Julian.Tenney@nottingham.ac.uk">Julian.Tenney@nottingham.ac.uk</a>]<br>
Sent: 25 June 2014 15:51<br>
To: For Xerte technical developers<br>
Subject: [Xerte-dev] Re: preview.xml not created<br>
<br>
No, preview is not created. I think this is maybe to do with popup blocker, so edit never opens.<br>
<br>
What order do things happen in when a project is created?<br>
<br>
-----Original Message-----<br>
From: <a href="mailto:xerte-dev-bounces@lists.nottingham.ac.uk">xerte-dev-bounces@lists.nottingham.ac.uk</a> [mailto:<a href="mailto:xerte-dev-bounces@lists.nottingham.ac.uk">xerte-dev-bounces@lists.nottingham.ac.uk</a>] On Behalf Of Smith, John<br>
Sent: 25 June 2014 15:47<br>
To: For Xerte technical developers<br>
Subject: [Xerte-dev] Re: preview.xml not created<br>
<br>
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?<br>
<br>
Regards,<br>
<br>
John Smith | Learning Technologist<br>
Room A250, Govan Mbeki Building | School of Health & Life Sciences | Glasgow Caledonian University Cowcaddens Road | Glasgow | G4 0BA<br>
<br>
Please address ALL support requests to <a href="mailto:hlsblt@gcu.ac.uk">hlsblt@gcu.ac.uk</a> where one of the School Learning Technologists will pick up the job. This will ensure that all jobs are completed as promptly as possible.<br>
________________________________________<br>
From: <a href="mailto:xerte-dev-bounces@lists.nottingham.ac.uk">xerte-dev-bounces@lists.nottingham.ac.uk</a> [<a href="mailto:xerte-dev-bounces@lists.nottingham.ac.uk">xerte-dev-bounces@lists.nottingham.ac.uk</a>] On Behalf Of Julian Tenney [<a href="mailto:Julian.Tenney@nottingham.ac.uk">Julian.Tenney@nottingham.ac.uk</a>]<br>
Sent: 25 June 2014 14:27<br>
To: For Xerte technical developers (<a href="mailto:xerte-dev@lists.nottingham.ac.uk">xerte-dev@lists.nottingham.ac.uk</a>)<br>
Subject: [Xerte-dev] Re: preview.xml not created<br>
<br>
We have only one of these usernames, dating from 2006, so predates toolkits, and not a duplicate.<br>
<br>
-----Original Message-----<br>
From: Tenney Julian<br>
Sent: 25 June 2014 12:38<br>
To: For Xerte technical developers<br>
Subject: RE: [Xerte-dev] Re: preview.xml not created<br>
<br>
No, that looks right. At least the folder has the correct user name in it.<br>
<br>
-----Original Message-----<br>
From: <a href="mailto:xerte-dev-bounces@lists.nottingham.ac.uk">xerte-dev-bounces@lists.nottingham.ac.uk</a> [mailto:<a href="mailto:xerte-dev-bounces@lists.nottingham.ac.uk">xerte-dev-bounces@lists.nottingham.ac.uk</a>] On Behalf Of Julian Tenney<br>
Sent: 25 June 2014 12:04<br>
To: For Xerte technical developers<br>
Subject: [Xerte-dev] Re: preview.xml not created<br>
<br>
I'll check that. I didn't notice anything obvious though...<br>
<br>
-----Original Message-----<br>
From: <a href="mailto:xerte-dev-bounces@lists.nottingham.ac.uk">xerte-dev-bounces@lists.nottingham.ac.uk</a> [mailto:<a href="mailto:xerte-dev-bounces@lists.nottingham.ac.uk">xerte-dev-bounces@lists.nottingham.ac.uk</a>] On Behalf Of Ron Mitchell<br>
Sent: 25 June 2014 12:00<br>
To: For Xerte technical developers<br>
Subject: [Xerte-dev] Re: preview.xml not created<br>
<br>
My hunch would be a username issue - check username matches the folders being created including case sensitivity?<br>
<br>
Sent from my iPhone<br>
<br>
> On 25 Jun 2014, at 11:00, Julian Tenney <<a href="mailto:Julian.Tenney@nottingham.ac.uk">Julian.Tenney@nottingham.ac.uk</a>> wrote:<br>
><br>
> Why only for one user?<br>
><br>
> -----Original Message-----<br>
> From: <a href="mailto:xerte-dev-bounces@lists.nottingham.ac.uk">xerte-dev-bounces@lists.nottingham.ac.uk</a><br>
> [mailto:<a href="mailto:xerte-dev-bounces@lists.nottingham.ac.uk">xerte-dev-bounces@lists.nottingham.ac.uk</a>] On Behalf Of David<br>
> Goodwin<br>
> Sent: 25 June 2014 11:00<br>
> To: For Xerte technical developers<br>
> Subject: [Xerte-dev] Re: preview.xml not created<br>
><br>
> I have a feeling XOT may be mixing up it's saving of preview.xml and<br>
> data.xml - in that it saves data.xml when it should save preview.xml<br>
> etc<br>
><br>
> David.<br>
><br>
>> On 25/06/14 10:58, Julian Tenney wrote:<br>
>> Got a user here who logs in, tries to create a LO, but preview .xml<br>
>> isn't being created: consequently the editor has no LO icon in it<br>
>> when it loads up. Other users on same computer work fine. Any idea<br>
>> what's going on?<br>
>><br>
>> cid:image004.jpg@01CF905F.BC2E7D90<br>
>><br>
>><br>
>><br>
>> _______________________________________________<br>
>> Xerte-dev mailing list<br>
>> <a href="mailto:Xerte-dev@lists.nottingham.ac.uk">Xerte-dev@lists.nottingham.ac.uk</a><br>
>> <a href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev" target="_blank">http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev</a><br>
><br>
> --<br>
> Pale Purple Ltd<br>
><br>
> PHP Web application development and support<br>
><br>
> <a href="http://www.palepurple.co.uk" target="_blank">http://www.palepurple.co.uk</a><br>
> @PalePurpleLtd<br>
> 07792 380669 / 0845 0046746<br>
><br>
> _______________________________________________<br>
> Xerte-dev mailing list<br>
> <a href="mailto:Xerte-dev@lists.nottingham.ac.uk">Xerte-dev@lists.nottingham.ac.uk</a><br>
> <a href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev" target="_blank">http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev</a><br>
><br>
> _______________________________________________<br>
> Xerte-dev mailing list<br>
> <a href="mailto:Xerte-dev@lists.nottingham.ac.uk">Xerte-dev@lists.nottingham.ac.uk</a><br>
> <a href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev" target="_blank">http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev</a><br>
> This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it. Please do not use, copy or disclose the information contained in this message or in any attachment. Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham.<br>
><br>
> This message has been checked for viruses but the contents of an<br>
> attachment may still contain software viruses which could damage your computer system, you are advised to perform your own checks. Email communications with the University of Nottingham may be monitored as permitted by UK legislation.<br>
><br>
><br>
><br>
><br>
<br>
_______________________________________________<br>
Xerte-dev mailing list<br>
<a href="mailto:Xerte-dev@lists.nottingham.ac.uk">Xerte-dev@lists.nottingham.ac.uk</a><br>
<a href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev" target="_blank">http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev</a><br>
<br>
_______________________________________________<br>
Xerte-dev mailing list<br>
<a href="mailto:Xerte-dev@lists.nottingham.ac.uk">Xerte-dev@lists.nottingham.ac.uk</a><br>
<a href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev" target="_blank">http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev</a><br>
<br>
_______________________________________________<br>
Xerte-dev mailing list<br>
<a href="mailto:Xerte-dev@lists.nottingham.ac.uk">Xerte-dev@lists.nottingham.ac.uk</a><br>
<a href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev" target="_blank">http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev</a><br>
This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it. Please do not use, copy or disclose the information contained in this message or in any attachment. Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham.<br>
<br>
This message has been checked for viruses but the contents of an attachment may still contain software viruses which could damage your computer system, you are advised to perform your own checks. Email communications with the University of Nottingham may be monitored as permitted by UK legislation.<br>
<br>
<br>
<br>
<br>
<br>
Glasgow Caledonian University is a registered Scottish charity, number SC021474<br>
<br>
_______________________________________________<br>
Xerte-dev mailing list<br>
<a href="mailto:Xerte-dev@lists.nottingham.ac.uk">Xerte-dev@lists.nottingham.ac.uk</a><br>
<a href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev" target="_blank">http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev</a><br>
<br>
_______________________________________________<br>
Xerte-dev mailing list<br>
<a href="mailto:Xerte-dev@lists.nottingham.ac.uk">Xerte-dev@lists.nottingham.ac.uk</a><br>
<a href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev" target="_blank">http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev</a><br>
This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it. Please do not use, copy or disclose the information contained in this message or in any attachment. Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham.<br>
<br>
This message has been checked for viruses but the contents of an attachment may still contain software viruses which could damage your computer system, you are advised to perform your own checks. Email communications with the University of Nottingham may be monitored as permitted by UK legislation.<br>
<br>
<br>
<br>
Glasgow Caledonian University is a registered Scottish charity, number SC021474<br>
<br>
_______________________________________________<br>
Xerte-dev mailing list<br>
<a href="mailto:Xerte-dev@lists.nottingham.ac.uk">Xerte-dev@lists.nottingham.ac.uk</a><br>
<a href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev" target="_blank">http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev</a><br>
<br>
_______________________________________________<br>
Xerte-dev mailing list<br>
<a href="mailto:Xerte-dev@lists.nottingham.ac.uk">Xerte-dev@lists.nottingham.ac.uk</a><br>
<a href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev" target="_blank">http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev</a><br>
This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it. Please do not use, copy or disclose the information contained in this message or in any attachment. Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham.<br>
<br>
This message has been checked for viruses but the contents of an attachment<br>
may still contain software viruses which could damage your computer system, you are advised to perform your own checks. Email communications with the University of Nottingham may be monitored as permitted by UK legislation.<br>
<br>
<br>
<br>
<br>
</div></div></blockquote></div><br></div>