[Xerte-dev] Re: preview.xml not created

Smith, John J.J.Smith at gcu.ac.uk
Wed Jun 25 16:08:49 BST 2014


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 <Julian.Tenney at nottingham.ac.uk> 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



More information about the Xerte-dev mailing list