Layout copy with media copy

I’m unable to copy associated media while copying layout l 1.8.1 and 1.8.2 (docker install)

Layout does get copied, but no copied media is linked on new layout neither copied.

I’ve checked audit log, and I can see Layout being copied (also region and widgets)

3846 2017-08-15 12:53 client1_admin Layout Added
Property Valor
layoutId 102
layout cliente1Diapositiva base

This is a former 1.8 RC install. (always using docker)

How can I retrieve more information about this issue?

You’d need to go through Report Fault Wizard in this case - ie enable debugging -> recreate issue -> check Logs -> disable debugging.

Perhaps take a layout with 1-2 media on it, so it will be easier to see in logs.

If you’d copy such layout and enable the option to ‘Make new copies of all media on this layout?’ would the copied layout have media files on it in this case?

It’s definitely not a general issue on 1.8.2 (I don’t think it was an issue in 1.8.1 either).

1 Like

Thank you for your answer.
The layout contains the original media. (I don’t see new media with the “layoutcopytest 3 52169.jpg” name)

I couldn’t upload the zip file. I’m posting an excerpt of the log.
I’ll upload somewhere else and link it if necessary.

.
> 45586,a7fc414,“2017-08-16 11:04:02”,WEB,/layout/copy/103,POST,“Loading 1. All Objects = 0”,DEBUG
45587,a7fc414,“2017-08-16 11:04:03”,WEB,/layout/copy/103,POST,“Install Fonts called with options: {"invalidateCache":false}”,DEBUG
45588,a7fc414,“2017-08-16 11:04:03”,WEB,/layout/copy/103,POST,“CMS font CSS returned from Cache.”,DEBUG
45589,a7fc414,“2017-08-16 11:04:03”,WEB,/layout/copy/103,POST,“Checking permissions against the logged in user: ID: 1, Name: smartway_admin, UserType: 1”,DEBUG
45590,a7fc414,“2017-08-16 11:04:03”,WEB,/layout/copy/103,POST,“Loading Layout 103 with options {"loadPlaylists":true,"loadTags":true,"loadPermissions":true,"loadCampaigns":true}”,DEBUG
45591,a7fc414,“2017-08-16 11:04:03”,WEB,/layout/copy/103,POST,“Load Region with {"regionIncludePlaylists":true,"loadPlaylists":true,"loadTags":true,"loadPermissions":true,"loadCampaigns":true}”,DEBUG
45592,a7fc414,“2017-08-16 11:04:03”,WEB,/layout/copy/103,POST,“Load Playlist with {"playlistIncludeRegionAssignments":true,"loadPermissions":true,"loadWidgets":true,"regionIncludePlaylists":true,"loadPlaylists":true,"loadTags":true,"loadCampaigns":true}”,DEBUG
45593,a7fc414,“2017-08-16 11:04:03”,WEB,/layout/copy/103,POST,“Checking permissions against the logged in user: ID: 1, Name: smartway_admin, UserType: 1”,DEBUG
45594,a7fc414,“2017-08-16 11:04:03”,WEB,/layout/copy/103,POST,“Checking permissions against the logged in user: ID: 1, Name: smartway_admin, UserType: 1”,DEBUG
45595,a7fc414,“2017-08-16 11:04:03”,WEB,/layout/copy/103,POST,“Loaded 103”,DEBUG
45596,a7fc414,“2017-08-16 11:04:03”,WEB,/layout/copy/103,POST,“Checking permissions against the logged in user: ID: 1, Name: smartway_admin, UserType: 1”,DEBUG
45597,a7fc414,“2017-08-16 11:04:03”,WEB,/layout/copy/103,POST,“Saving Layout layoutcopytest 3 - 1360 x 768. Regions = 1, Tags = 0. layoutId = 0. Status = 3, messages 0 with options {
"saveLayout": true,
"saveRegions": true,
"saveTags": true,
"setBuildRequired": true,
"validate": true,
"notify": true,
"audit": true
}”,DEBUG
45598,a7fc414,“2017-08-16 11:04:03”,WEB,/layout/copy/103,POST,“Adding Layout layoutcopytest 3”,DEBUG
45599,a7fc414,“2017-08-16 11:04:03”,WEB,/layout/copy/103,POST,“Layout assignment doesnt exist, adding it. Layout layoutcopytest 3 - 1360 x 768. Regions = 1, Tags = 0. layoutId = 105. Status = 3, messages 0, display order 1”,DEBUG
45600,a7fc414,“2017-08-16 11:04:03”,WEB,/layout/copy/103,POST,“Saving CampaignId 0, Campaign layoutcopytest 3, LayoutSpecific 1”,DEBUG
45601,a7fc414,“2017-08-16 11:04:03”,WEB,/layout/copy/103,POST,“Managing Assignments on CampaignId 113, Campaign layoutcopytest 3, LayoutSpecific 1”,DEBUG
45602,a7fc414,“2017-08-16 11:04:03”,WEB,/layout/copy/103,POST,“CampaignId 113 wants to notify.”,DEBUG
45603,a7fc414,“2017-08-16 11:04:03”,WEB,/layout/copy/103,POST,“Notify by CampaignId 113”,DEBUG
45604,a7fc414,“2017-08-16 11:04:03”,WEB,/layout/copy/103,POST,“Audit Trail message recorded for Layout with id 105. Message: Added”,DEBUG
45605,a7fc414,“2017-08-16 11:04:03”,WEB,/layout/copy/103,POST,“Saving Regions on Layout layoutcopytest 3 - 1360 x 768. Regions = 1, Tags = 0. layoutId = 105. Status = 3, messages 0”,DEBUG
45606,a7fc414,“2017-08-16 11:04:03”,WEB,/layout/copy/103,POST,“Saving Region layoutcopytest-1 - 1360 x 768 (0, 0). RegionId = 0, LayoutId = 105. OwnerId = 1. Duration = 10. Options = {
"saveRegionOptions": true,
"manageRegionAssignments": true,
"validate": true,
"audit": true,
"saveLayout": true,
"saveRegions": true,
"saveTags": true,
"setBuildRequired": true,
"notify": true
}”,DEBUG
45607,a7fc414,“2017-08-16 11:04:04”,WEB,/layout/copy/103,POST,“Adding region to LayoutId 105”,DEBUG
45608,a7fc414,“2017-08-16 11:04:04”,WEB,/layout/copy/103,POST,“Adding Playlist layoutcopytest-1”,DEBUG
45609,a7fc414,“2017-08-16 11:04:04”,WEB,/layout/copy/103,POST,“Saving widgetId 0 with options. {
"saveWidgetOptions": true,
"saveWidgetAudio": true,
"notify": true,
"notifyDisplays": false,
"audit": true
}”,DEBUG
45610,a7fc414,“2017-08-16 11:04:04”,WEB,/layout/copy/103,POST,“Adding Widget image to PlaylistId 510”,DEBUG
45611,a7fc414,“2017-08-16 11:04:04”,WEB,/layout/copy/103,POST,“Linking 1 new media to Widget 700”,DEBUG
45612,a7fc414,“2017-08-16 11:04:04”,WEB,/layout/copy/103,POST,“Unlinking 0 old media from Widget 700”,DEBUG
45613,a7fc414,“2017-08-16 11:04:04”,WEB,/layout/copy/103,POST,"Notifying upstream playlist. Notify Displays: ",DEBUG
45614,a7fc414,“2017-08-16 11:04:04”,WEB,/layout/copy/103,POST,“Audit Trail message recorded for Widget with id 700. Message: Saved”,DEBUG
45615,a7fc414,“2017-08-16 11:04:04”,WEB,/layout/copy/103,POST,“Audit Trail message recorded for Region with id 543. Message: Saved”,DEBUG
45616,a7fc414,“2017-08-16 11:04:04”,WEB,/layout/copy/103,POST,“Saving tags on Layout layoutcopytest 3 - 1360 x 768. Regions = 1, Tags = 0. layoutId = 105. Status = 3, messages 0”,DEBUG
45617,a7fc414,“2017-08-16 11:04:04”,WEB,/layout/copy/103,POST,“Save finished for Layout layoutcopytest 3 - 1360 x 768. Regions = 1, Tags = 0. layoutId = 105. Status = 3, messages 0”,DEBUG
45618,a7fc414,“2017-08-16 11:04:04”,WEB,/layout/copy/103,POST,“Request stats: {
"default": {
"select": 20,
"insert": 7,
"update": 5,
"commit": 1
},
"log": {
"insert": 32
},
"auditlog": {
"insert": 3
},
"length": -0.269511
}.”,INFO

We also tried to export and import but, it does not allow you to duplicate files with the same name… which it seems logical. I’ll post on “Features” the idea of letting users to duplicate files with the same name.

Greetings

It will not allow media files with the same name to be uploaded by the same user - I don’t think we will want to change that.
Copy should work without problems, so then you will not need to export/import your layouts, as that’s not the most optimal thing to do in this case.

Regarding your initial problem.

When you copy a layout (without making copies of the media files), then open the copied layout in the layout designer, what’s on it please?

As I’m a bit confused here.

Were those log messages created with the checkbox to create media copies enabled?

Ideally in most cases you will not want to make copy of the media files, unless you do want that, then that’s fine as well - it will just create more files in CMS library. Presumably you will want to change some images etc on those layouts in the future and that would be much easier if the same files were used across multiple layouts.

I’m sorry that i’m not clear enough. I’ll take more english lessons :-).
I’ll try to explain very shortly.
I’m trying to copy a layout , “X”.
Since they will be used for a different project managed by a different person, I clicked the “to duplicate media” selection box.

The new layout “Y” contains the same images that layout “X” contains (like if I did not checked “to duplicate media”)

The log was created when I tried to copy X layout, with “duplicate media” box checked.

Thank you very much.

I see and I’ve confirmed that it indeed does not work at the moment and created a bug report for it.

Thank you for bringing this to our attention, it should be fixed in the next release.

1 Like

Thank you!
Looking forward for next release!