• Resolved oksanaromaniv

    (@oksanaromaniv)


    Hello,

    I have the next issue when using the plugin: the image isn’t saved and the preview isn’t updated.

    In console, I’ve got “Save Function Debug” with the message “Can’t copy temporary file to media library.”

    The data debug info:

    “[
    “validated input data”,
    {
    “selection”: {
    “x”: 206,
    “y”: 0,
    “x2”: 601,
    “y2”: 218,
    “w”: 394.5042922066992,
    “h”: 218.6363636363636
    },
    “sourceImageId”: 13541,
    “activeImageSizes”: [
    {
    “name”: “single-post”,
    “width”: 750,
    “height”: 416,
    “ratio”: 1.8028846153846154,
    “crop”: 1
    }
    ]
    },
    “filename: …/public_html/wp-content/uploads/2018/01/180117_CP_Ovdklas_2-750×416.jpg”,
    “error on 180117_CP_Ovdklas_2-750×416.jpg”,
    {
    “single-post”: [
    “Can’t copy temporary file to media library.”
    ]
    }
    ]”

    When I tried to post to admin-ajax.php with image id in a query (as suggested in one of older tickets) I’ve got “0” as a response from the server and 400 “Bad Request” error in console.

    Plugin version: Version 1.2.3
    WP version: 5.0.3
    PHP version: 7.2.10 (and 7.1 on staging server)

    In the plugin test, in settings, everything works smoothly

    Any help would be appreciated!

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Volkmar Kantor

    (@volkmar-kantor)

    Hi,
    what did you mean with “next” issue? Do you had already one?

    Ok, it seems the plugin has generated a cropped version of the image in the temporary directory, but cant override the old image in the upload directory.

    • Do you have any CDN-Plugin running?
    • Did the quick-test in the crop-thumbnails settings running through?
    • Did you have any problems uploading new files lately?
    Thread Starter oksanaromaniv

    (@oksanaromaniv)

    Hello Volkmar,

    Thank you for your replay!

    Bear with me, not a native here, the word “next” was just translated from my language as a figure of speech ??

    Do you have any CDN-Plugin running?

    No, no caching or CDN plugins. The website is still in development.

    Did the quick-test in the crop-thumbnails settings running through?

    Yes, no errors were detected. https://drive.google.com/open?id=143yieeYhHv6bG7btcScyeTpTItrzw47-

    Did you have any problems uploading new files lately?

    No, the /uploads folder is owned by www-data with 755 permissions, but I had troubles with plugins installed at the beginning that were fixed with define( 'FS_METHOD', 'direct' ); line in wp-config.php

    Plugin Author Volkmar Kantor

    (@volkmar-kantor)

    Hi, i assume that there is some kind of access-right issue. On the other hand: if the quick-test runs without errors it should be all OK.

    define( ‘FS_METHOD’, ‘direct’ ); is the default. So it shouldnt have any impact.

    Please try the following:

    • upload a image direct in the mediathek (not from an post/page)
    • try to crop it

    Also, for one of the images that do not working, try to change the file-permission of the file-directory and the image-file itself to 775 (or even 777).

    Do you run php as cgi, fastcgi or as apache module?

    Thread Starter oksanaromaniv

    (@oksanaromaniv)

    Hi,

    Indeed it was a permission error. When I uploaded an image to the media directly – I was able to edit thumbnails. After changing the permissions to 775 on media folder, I was able to edit thumbnail on previously attached images via page/post.

    Thank you for the help!

    sallard7903

    (@sallard7903)

    I have this issue and it’s frustrating that the cropped images are not saving. It appears to save, but the second you check, you see that nothing happened. Unfortunately, I do not have back-end access / ftp rights for this client site and I cannot just log in and change the permissions of the uploads folder to 755. Is there any other way to correct this? If I can upload new images to the media library with no problems, why can’t this plugin make this image crop edit?

    Plugin Author Volkmar Kantor

    (@volkmar-kantor)

    do you use jetpack?
    Did the changed image appear in the crop-editor?

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Cropped thumbnail isn’t saved’ is closed to new replies.