WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: WP Smush.it] Smush.it error: Failed to create a temp dir (19 posts)

  1. JeanPaulH
    Member
    Posted 5 years ago #

    Since the change to use Yahoo's hosted version of Smush.it I keep getting this error when I try to manually smush a picture:
    Smush.it error: Failed to create a temp dir

    Also, when uploading a picture via the Media Uploader I'm just getting the return path of the image and have to explicity click 'Save Changes' to see the image, instead of being directly redirected to the uploaded image like it normally works.

    I'm on PHP 5.2, WordPress 2.8.2 and allow_url_fopen is enabled. Am I missing something? Any advice?

    PS Congratulations with your son's birth! :)

  2. micronox
    Member
    Posted 5 years ago #

    Hey there,

    Got the same prob here.

    PHP 5.2 WP 2.8.2

  3. micronox
    Member
    Posted 5 years ago #

    I just upgraded to .3 to see if it fixed it, but im getting a header error

    /home/www-911/htdocs/wp-content/themes/thesis_151/custom/images/ask-Ques.png
    
    Warning:  Cannot modify header information - headers already sent by (output started at /home/www-911/htdocs/wp-content/plugins/wp-smushit/wp-smushit.php:270) in /home/www-911/htdocs/wp-includes/pluggable.php on line 865
  4. KRiZZi
    Member
    Posted 5 years ago #

    Hello there,

    same issue here!

  5. Ainudil
    Member
    Posted 5 years ago #

    Ditto, I'd say.

    It worked fine yesterday, but currently I am only getting the Smush.it error: Failed to create a temp dir error message.

    Must be a new API change by Yahoo... *grumble*

  6. Alex Dunae
    Member
    Posted 5 years ago #

    Hi gang,

    From what I can tell, this is definitely a Yahoo! issue. Using their web interface ( http://developer.yahoo.com/yslow/smushit/ ) I'm seeing the same Failed to create a temp dir message in the debug panel.

    Smush.it has been pretty inconsistent over the past little while -- I can't get a response from Yahoo as to their intentions.

    For now, stay patient. I'll post here as soon as I know any more.

    @djr -- thanks!

  7. mrsolutions
    Member
    Posted 5 years ago #

    I asked my host about the problem, they looked into it and concluded:

    Your image is being passed for processing to a php script at smushit.com. It is that script that is returning "could not create temp dir" and failing. Therefore, there isn't anything you can do site/server wise to fix this issue. You will have to contact smush.it to get them to fix their script so that it can smush your images.

  8. Alex Dunae
    Member
    Posted 5 years ago #

    @mrsolutions -- yes, that's exactly the problem. Out of our hands until Yahoo! does a fix.

    I'm impressed your host was willing to debug a third-party script. That's rare.

  9. rhythmdoctor
    Member
    Posted 5 years ago #

    Alex,

    In addition to this error, which Ill wait for, I had a change since updating whereby when I click on Smushit, it takes me to a blank page with the url for the image, but does not do a refresh to the media library as it used to. When I manually reload the page, it then goes back. Any ideas what would cause this?

  10. mrsolutions
    Member
    Posted 5 years ago #

    Seems to be working again now

  11. corrynews12
    Member
    Posted 5 years ago #

    I'm getting "Error posting to Smush.it." It's showing for all my photos. It's been this way since I added the plugin more than a month ago. any suggestions?

  12. Alex Dunae
    Member
    Posted 5 years ago #

    @corrynews12 -- can you try clicking the 'Re-smush' link? I know Smush.it was down, again, for a brief period today.

  13. welshhuw
    Member
    Posted 4 years ago #

    Im getting this problem with 1.2.6 - sometimes!
    I mean i will smush one image - fine, then smush the next - error posting... click smush again - then its fine.
    some images will not smush tho.
    ?

    It also happens, sometimes, when i upload an image.

    At least its half working!

    Would be good to add a batch smusher!

    So we can choose all images say in a directory, then smush all.

    thx

  14. centepines
    Member
    Posted 4 years ago #

    @welshhuw, same here. This seems to be a great tool, but it's not realiable at all.

  15. welshhuw
    Member
    Posted 4 years ago #

    @centepines: add this code to the .php file:-

    /**
     * Constants
     */
    
    define('SMUSHIT_REQ_URL', 'http://ws1.adq.ac4.yahoo.com/ysmush.it/ws.php?img=%s');
    
    define('SMUSHIT_BASE_URL', '');

    (Thanks to ocean90 for this)

    It should work fine.
    Im having no trouble today so far...

    Also, Would be nice if it had a 'batch smusher' that told you how much space you've saved!

    Yes I agree - its a great tool too!

  16. centepines
    Member
    Posted 4 years ago #

    @welshhuw I did it but I get this message instead of the old "error posting to": 'Error downloading file (Found)'

    I think I'm giving up :(

  17. welshhuw
    Member
    Posted 4 years ago #

    @centepines: - I get that when the path to my image is broken.
    Good luck.

  18. luffer
    Member
    Posted 4 years ago #

    @welshhuw What do you mean when the path the the image is broken? How do you fix that?

    I get the "Error downloading file (Found)" message, but no idea what to do.

  19. luffer
    Member
    Posted 4 years ago #

    Still got the "Error downloading file (Found)" and no idea how to fix it. Can anyone figure this out?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags