{"id":11202066,"date":"2019-02-13T15:55:45","date_gmt":"2019-02-13T15:55:45","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/cropped-thumbnail-isnt-saved\/"},"modified":"2019-02-13T15:55:45","modified_gmt":"2019-02-13T15:55:45","slug":"cropped-thumbnail-isnt-saved","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/cropped-thumbnail-isnt-saved\/","title":{"rendered":"Cropped thumbnail isn&#8217;t saved"},"content":{"rendered":"<p>Hello,<\/p>\n<p>I have the next issue when using the plugin: the image isn&#8217;t saved and the preview isn&#8217;t updated.<\/p>\n<p>In console, I&#8217;ve got &#8220;Save Function Debug&#8221; with the message &#8220;Can&#8217;t copy temporary file to media library.&#8221;<\/p>\n<p>The data debug info:<\/p>\n<p>&#8220;[<br \/>\n  &#8220;validated input data&#8221;,<br \/>\n  {<br \/>\n    &#8220;selection&#8221;: {<br \/>\n      &#8220;x&#8221;: 206,<br \/>\n      &#8220;y&#8221;: 0,<br \/>\n      &#8220;x2&#8221;: 601,<br \/>\n      &#8220;y2&#8221;: 218,<br \/>\n      &#8220;w&#8221;: 394.5042922066992,<br \/>\n      &#8220;h&#8221;: 218.6363636363636<br \/>\n    },<br \/>\n    &#8220;sourceImageId&#8221;: 13541,<br \/>\n    &#8220;activeImageSizes&#8221;: [<br \/>\n      {<br \/>\n        &#8220;name&#8221;: &#8220;single-post&#8221;,<br \/>\n        &#8220;width&#8221;: 750,<br \/>\n        &#8220;height&#8221;: 416,<br \/>\n        &#8220;ratio&#8221;: 1.8028846153846154,<br \/>\n        &#8220;crop&#8221;: 1<br \/>\n      }<br \/>\n    ]<br \/>\n  },<br \/>\n  &#8220;filename: &#8230;\/public_html\/wp-content\/uploads\/2018\/01\/180117_CP_Ovdklas_2-750&#215;416.jpg&#8221;,<br \/>\n  &#8220;error on 180117_CP_Ovdklas_2-750&#215;416.jpg&#8221;,<br \/>\n  {<br \/>\n    &#8220;single-post&#8221;: [<br \/>\n      &#8220;Can&#8217;t copy temporary file to media library.&#8221;<br \/>\n    ]<br \/>\n  }<br \/>\n]&#8221;<\/p>\n<p>When I tried to post to admin-ajax.php with image id in a query (as suggested in one of older tickets) I&#8217;ve got &#8220;0&#8221; as a response from the server and 400 &#8220;Bad Request&#8221; error in console.<\/p>\n<p>Plugin version: Version 1.2.3<br \/>\nWP version: 5.0.3<br \/>\nPHP version: 7.2.10 (and 7.1 on staging server)<\/p>\n<p>In the plugin test, in settings, everything works smoothly<\/p>\n<p>Any help would be appreciated!<\/p>\n","protected":false},"template":"","class_list":["post-11202066","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/11202066","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/11202066\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=11202066"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}