WordPress.org

Ready to get started?Download WordPress

Forums

WP Smush.it
getting a Could not find, looks like the path is not constructed correctly (7 posts)

  1. bertheymans
    Member
    Posted 2 years ago #

    Hi, this is what happen when I try to smush.it or re-smush:

    Could not find /home/sites/clients/client20/web44/web/wp-content/uploads/201105pluizenissen.jpg

    The path is correct up until /home/sites/clients/client20/web44/web/wp-content/uploads but then it should say /2011/05/pluizenissen.jpg and instead it looks like it justs concatenates the folder names.

    I did a bit of debugging and found out that when I did a var_dump of $original_meta = wp_get_attachment_metadata( $attachment_ID ); it looks like this and then I got really stuck:

    array(7) {
      ["width"]=>
      string(3) "310"
      ["height"]=>
      string(3) "238"
      ["hwstring_small"]=>
      string(23) "height='96' width='125'"
      ["file"]=>
      string(22) "201105pluizenissen.jpg"
      ["sizes"]=>
      array(4) {
        ["thumbnail"]=>
        array(4) {
          ["file"]=>
          string(24) "pluizenissen-150x150.jpg"
          ["width"]=>
          string(3) "150"
          ["height"]=>
          string(3) "150"
          ["wp_smushit"]=>
          string(123) "Could not find <span class='code'>/home/sites/clients/client20/web44/web/wp-content/uploads/pluizenissen-150x150.jpg</span>"
        }
        ["medium"]=>
        array(4) {
    ...
    ...

    My WordPress version is 3.2.1 and the Smush.it version is 1.5.0

    Any help appreciated :)

    http://wordpress.org/extend/plugins/wp-smushit/

  2. diver66
    Member
    Posted 2 years ago #

    Have you tried to go back to version 1.41 ?

  3. bertheymans
    Member
    Posted 2 years ago #

    No, I haven't tried that yet, I'll give it a go an let you know how it went. Thanks for the tip!

  4. leftofcentre
    Member
    Posted 2 years ago #

    Hi I am getting the same problem as bertheymans, could it be a bug in the plugin?

    I get the error:
    Could not find /usr/local/pem/vhosts/159557/webspace/httpdocs/mysite.com/wp-content/uploads/201112In-Harness-50x50cm.jpg

    The end part location should be: uploads/2011/12/In-Harness-50x50cm.jpg

    It seems the plugin is missing some / in the filename?

  5. diver66
    Member
    Posted 2 years ago #

    Just check the media settings, try to tick the images in monthly based folder, also check the path

  6. bertheymans
    Member
    Posted 2 years ago #

    I tried an older version but that didn't work, I dug a bit deeper and it looks like the meta information stored with my media isn't exactly coherent. I'm looking for a way (tool) to get that cleaned up. Hopefully it will be a next step to solving the issue.

  7. Patrick Nommensen
    Member
    Posted 2 years ago #

    This looks like a great plugin. Can it be that the NExtGen integration is no longer working?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags