Hello, after the new Version 2.4 on most of my existing (published) articles I am not able to copy the source article text to the translation area any more. There is no error log in the browser console.
I think it is a size issue of the source text. If the source article contain more the 3901 characters (including all spaces and cr) the copy command is not successful any more.
I cannot reproduce this.
I created a new post, pasted 3901 1s into its content, saved the post, and copying the content via the Copy source post button works without a problem. Even twice the amount does.
Can you provide more information on this?
Can you disable all other plugins, and use a default theme?
I can reproduce it even with all other plugins turned off and with Twenty Sixteen default theme. After entering more than 3880 .... 3949 characters (depending of title length), with or without saving - the copy source post button does not work any more. Strange.
I am on PHP Version 7.0.6 at the moment and use Firefox 46.0.1 or Chrome Version 50.0.2661.102 m
I switched from http to https at the same time of the update.
I tested it with wp_debug true and false, but did not find a difference.
I have no other idea what could help to solve the puzzle.
My problem still exists. How can I help to find the bug?
Sorry, we discussed this (more than once), but cannot reproduce this.
Is this correct so far?
Can you please summarize (again) what you do exactly?
Do you have any MU plugins installed?
Copying the data is done through AJAX. What do your browser dev tools tell you about the request and response?
How did you come up with the size idea in the first place?
Did you try on a post with a lot of content, it didn't work, and then you removed some of the content, which made it work again...? Or is it just that with most longer posts this isn't working (anymore), while short posts always seem to work...?
it seems this issue is related to the Apache configuration LimitRequestLine  which limits the size of GET-parameters.
CopyPost uses this.model.fetch() , which does a GET-Request.
Since we're sending data for validation in CopyPost to the backend, it would be better to use this.model.save() which does a POST-Request.
Note: If you're using save instead of fetch, than please also check the listenTo .
Use Backbone.Model.save() (instead of "fetch") as we are sending data. …
@Chrico I tested your solution and it looks like you solved the problem. Many thanks!
@tfrommen Please inform me, if you still need more information.
Yeah, I think this can be closed now!
No, I think we should fix that in the code. So please leave it open for now.
we may have (found and) fixed this, finally. :)
Please have a look at the new branch. Does this (still) work for you?
Adapt tests. #214
Fix test. #214
did you have a chance to check out the according branch? Does this work for you?
Yes I tested it and can confirm, it is also working with the linked branch
Fixed in 214b8ef.