Hi,
I have layout which have about 200 rows. I can copy with cms without problem. The problem is, if you copy from copied layout 3 or more times cms stops and no answer. The copy icon continues turning. But you can copy a layout 3 or more times (copy from orginal, not copy from copied)
Thanks
Can you try this with the report fault wizard running and see what is logged?
As far as I’m aware there’s no difference between a copy of a layout and one created from scratch.
tried it 10 times - no problem.
if I can have the layout as export, I’d test it so.
I cannot export layout, it shows me error "There has beeen an application error. Can't create ZIP. Error Code: 11"
Anyway I copy layout from database xml column:
here is the link;
I take log from database, maybe it helps you to find the problem. It shows the process cannot go away from “LayoutMediaGroupSecurity”.
Here is the link for log file for only Copy function:
end after exactly 50 media
What you mean end? it stops copying ? or finished without problem. Copy from copy from copy …
end after exactly 50 media in your dbcopy.txt.
I’m testing it now with a layout with more than 50 media.
@michael can you try this fix for the error 11 problem please:
Zip export with php 5.6.3 (xampp)
copy from copied layout with 80 media, 5 or more times is no problem.
@michael perhaps you’re hitting the php maximum execution time limit?
I changed max_execution_time from 120 to 500. Now testing
@alex Thanks, I changed max_executing_time to 1200 and max_input_time to 6000. Now I could make 4 copy. Now the problem is;
Copy Layout1 to Layout2 (4 Seconds to Copy)
Copy Layout2 to Layout3 (9 Seconds)
Copy Layout3 to Layout4 (20 Seconds)
Copy Layout4 to Layout5 (85 Seconds)
Copy Layout5 to Layout6 (660 Seconds)
As you can see table, copying time is getting longer each copy. And deleting them take long time also.
Can you post a log of that? I tried to download your earlier one but the link is broken.
Are you just copying the layout or copying the layout and duplicating the media too?
This summary, I will send all log with a text file;
SELECT * FROM log
where function=“Copy” and message like '%loop%'
order by logid desc
20972638 2015-04-09 14:50:59 audit layout Copy Finished looping through media nodes (5TH COPY END)
20960276 2015-04-09 14:40:43 audit layout Copy About to loop through media nodes (5TH COPY START)
20959626 2015-04-09 14:40:18 audit layout Copy Finished looping through media nodes
20957224 2015-04-09 14:38:55 audit layout Copy About to loop through media nodes
20956975 2015-04-09 14:38:38 audit layout Copy Finished looping through media nodes
20956149 2015-04-09 14:38:20 audit layout Copy About to loop through media nodes
20955859 2015-04-09 14:37:50 audit layout Copy Finished looping through media nodes (SECOND END)
20955240 2015-04-09 14:37:44 audit layout Copy About to loop through media nodes (SECOND START)
20954193 2015-04-09 14:37:03 audit layout Copy Finished looping through media nodes (FIRST COPY END)
20953639 2015-04-09 14:37:00 audit layout Copy About to loop through media nodes (FIRST COPY START
That could be key. Which are you doing?
Just copy layout not selecting duplicating media.,
This is the full log from database for Copy function.
Looks like the same number of operations on at least the first two copies, but it’s taking longer.
That could be because there are more link table entries for the database to consider for a given layout. Does the CMS CPU peg at 100% during the copy?
No, never goes bigger than %15-20.
Are all the files unique? or are there repeats?