WordPress.org

Ready to get started?Download WordPress

Forums

Post Thumbnail Editor
[resolved] No image on the left to crop (38 posts)

  1. Morgan Kay
    Member
    Posted 2 years ago #

    I have used this plugin successfully on a few sites, and I really love it. However, I can't get it to work on the site I'm working on now. When I click on "Thumbnail", the dialog box opens where I can choose which thumbnails to edit, but the area on the left where I'm supposed to be able to crop the image is empty - there's no image to crop!

    There's a screenshot here:
    http://gbd.alchemycs.com/wp-content/uploads/2011/11/thumbnail-problem.jpg

    Any suggestions? It might be a conflict with another plugin, but I disabled all the plugins I'm comfortable disabling, and that didn't help.

    Thanks!

    http://wordpress.org/extend/plugins/post-thumbnail-editor/

  2. sewpafly
    Member
    Plugin Author

    Posted 2 years ago #

    I've seen a similar problem where the root issue appears to be related to wordpress somehow...

    To test if this is the issue, try to edit the thumbnail using the wordpress tools. (Go to the image and click "edit photo"). That should bring up a similar cropping interface as PTE (I imitate the wordpress code). If the picture doesn't appear, it's a wordpress problem.

    In that case try uploading a new image and seeing if it works.

  3. Morgan Kay
    Member
    Posted 2 years ago #

    When I click on "edit image", there is an image there for me to edit. Here's a screenshot:
    http://gbd.alchemycs.com/wp-content/uploads/2011/11/thumbnail-problem2.jpg

    So it looks like it's not a WordPress problem... Any other suggestions?

    Thanks!

  4. sewpafly
    Member
    Plugin Author

    Posted 2 years ago #

    Thanks for the screenshot. It actually proves it's a wordpress issue though because the picture should appear larger on the left hand side just above the cancel and save buttons. It's missing :(.

  5. Morgan Kay
    Member
    Posted 2 years ago #

    Oh, I see....

    So, do you know of anything I can do about it? I guess I can try reinstalling WordPress and see if that does any good...

  6. sewpafly
    Member
    Plugin Author

    Posted 2 years ago #

    I wouldn't uninstall wordpress. First try uploading another picture. The problems that I have seen like this appear to work after uploading a new picture... But your mileage may vary.

  7. Morgan Kay
    Member
    Posted 2 years ago #

    Nope, I have uploaded dozens of pictures since I first noticed this problem, and it hasn't worked on any of them.

  8. sewpafly
    Member
    Plugin Author

    Posted 2 years ago #

    How are you uploading the files? Is it through a method other than the wordpress upload code? Can you check the file permissions for the uploaded files?

    It would be nice to find the reason for the problem and submit a fix back to wordpress if we can find it.

  9. Morgan Kay
    Member
    Posted 2 years ago #

    I'm using the normal WordPress uploader, and it's putting them in the normal upload folder. The permissions are 0664, just like on other sites where this works.

    For what it's worth, this is a theme that I wrote myself from scratch, back when I was first learning to write themes (now, instead of starting from scratch, I start with something minimal like Starkers). This seems unlikely, but is it possible there's something missing in my theme that would make a difference?

  10. Morgan Kay
    Member
    Posted 2 years ago #

    If you want, I'll be happy to give you a login for the website - email me at [email address removed] and I'll set that up.

  11. Morgan Kay
    Member
    Posted 2 years ago #

    Any more ideas on how I might fix this? I'm hoping to get this website wrapped up in the next few days.... Thanks, sewpafly!

  12. sewpafly
    Member
    Plugin Author

    Posted 2 years ago #

    Can you reset the image in wordpress? To do this I go into the edit image settings and run some transformation on it (rotating it 90 degrees either way works). Then after you save it, you have the option of resetting the image. Does that work?

  13. Morgan Kay
    Member
    Posted 2 years ago #

    There's definitely something funky going on with images on this website. When I try to rotate an image, it just hangs - the little swirly circle tells me it's trying to do stuff, but it's been swirling for several minutes and nothing has happened. So it's possible that there's just something f'ed on my site and there's not really anything we can do about.... But if you have any other suggestions, I'd be happy to give them a try!

  14. sewpafly
    Member
    Plugin Author

    Posted 2 years ago #

    I would try filing a bug: http://codex.wordpress.org/Reporting_Bugs

    I'd be interested with what the outcome would be...

  15. Morgan Kay
    Member
    Posted 2 years ago #

    Well, it turns out that if I switch to a different theme, your plugin works just fine. So there's something funky in my theme.

    It's not a huge deal at this point - I'm going to end up having to do a bunch of manual image resizing even if I do get your plugin working. But I thought you'd want to know that it's a theme problem.

    I have no idea what the problem in the theme could be, but like I said, it's the first theme I ever wrote and I wrote it from scratch, so I'm not surprised there are some wonky things in it. I can send you the theme if you're interested, but I don't think it's worth spending any more time trying to get it to work.

    Thanks for all your help!

  16. sewpafly
    Member
    Plugin Author

    Posted 2 years ago #

    Thanks for letting me know! I'll try some other themes to see if I can duplicate the problem.

  17. Roland Fauster
    Member
    Posted 2 years ago #

    Hi

    I just had the same problem and the fix was REALLY easy..

    I had an empty line at the end of the functions.php... apparently the very last line generates an HTML output (empty) which messes up wordpress cropping somehow..

    I had

    ?>
    ==EMPTY LINE==

    I removed ==EMPTY LINE== and all worked fine...

    Congrats to sewpafly for the cool plugin..

  18. sewpafly
    Member
    Plugin Author

    Posted 2 years ago #

    Thanks Roland!

  19. Mediacleg
    Member
    Posted 1 year ago #

    Hello,

    I have exactly the same problem, but no empty lines in functions.php...

    And the problem is still here with another theme (twenty eleven).

    Any idea ?

    Thanks a lot.

  20. sewpafly
    Member
    Plugin Author

    Posted 1 year ago #

    @mediacleg, the empty line could be in any of your enabled plugins php code, or even in any of your theme php files. What happens when you disable all plugins and use the default theme?

  21. Mediacleg
    Member
    Posted 1 year ago #

    Hello, same thing, even with every extensions disabled and twenty eleven for active theme...

  22. sewpafly
    Member
    Plugin Author

    Posted 1 year ago #

    Does the same thing happen to you when you load the image in the wordpress image editor?

  23. Mediacleg
    Member
    Posted 1 year ago #

    Yes, exactly the same thing, no image appears

  24. sewpafly
    Member
    Plugin Author

    Posted 1 year ago #

    Do you get the same behavior with every browser (IE, firefox, chrome)? If so, I would post the issue on the general wordpress site and see if one of the core devs might have a fix or other method to debug this issue. I did a quick google search and didn't find anything that seemed to match this issue.

    The only other thing that I can think of is that one of the wordpress php pages is putting the extra line in somehow. (maybe because a switch from dos/unix filetype). I might be able to help you track this down. Can you find the URL that the image editor is trying to load? What happens when you put this URL into the address bar?

    I'd be interested in any solution you can find.

  25. Mediacleg
    Member
    Posted 1 year ago #

    Thanks a lot for your help,

    Here is the adress of image : `http://www.domain.fr/wp-admin/admin-ajax.php?action=imgedit-preview&_ajax_nonce=45646fd3b8&postid=1507&rand=28442'

    I can give u real URL with domain if necessary, and an access if you want to see the admin page.

    Thanks again

  26. Mediacleg
    Member
    Posted 1 year ago #

    And yes, same thing with IE, FF and Chrome

  27. Mediacleg
    Member
    Posted 1 year ago #

    Here is a screenshot : http://hpics.li/01527c1

  28. sewpafly
    Member
    Plugin Author

    Posted 1 year ago #

    @Mediacleg - Could you try with the latest version?

    Thanks!

  29. Mediacleg
    Member
    Posted 1 year ago #

    Hello, same thing with this version, sorry...

  30. rinka78
    Member
    Posted 1 year ago #

    I have same problem in WordPress 3.4.2 version. I tried in all browsers (ie, firefox, chrom), disabled all plugins and i have simple catch theme with no EMPTY LINES. Pleas help if somebody knew what’s the catch to not showing the full future for edit.
    Thanks!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic