Support » Plugin: Imsanity » Not the good path for the images

  • coralies

    (@coralies)


    I want to use Imsanity to resize some images.
    The first step (searching for the images) works. However, when I click on “resize”, I have the following error message, saying that the file doesn’t exist:

    130 of 130 >> ERREUR : /var/www/wp-content/uploads/2016/01/283.jpg (Le fichier n’existe pas ?)

    The projects are not into /var/www or /war/www/html, but into the repertory “Workspace” in our “Personal Folder”.

    How can I fix that? Any ideas?
    Thanks in advance.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author nosilver4u

    (@nosilver4u)

    Where is this “Workspace” folder? If your server is indeed running linux (as it appears to be), “Workspace” and “Personal Folder” are not normal locations for anything.

    coralies

    (@coralies)

    @nosilver4u,
    Yes for sure, it is not the normal location. That is why I am concerned.
    So the lead dev said to me that I have to find the line in the code of the plugin configuration and change the path to our working folder.
    Honestly, I do not like this idea at all…

    PS: I use /var/www/html on my personal computer which use linux too.

    Thank you very much for your answer and your time.

    Plugin Author nosilver4u

    (@nosilver4u)

    Ah, I had forgotten, Imsanity isn’t quite as clever about the paths as EWWW IO is. On line 104 of ajax.php is where it constructs the path using the uploads ‘basedir’ and the value from the metadata. I’m planning to add EWWW’s file-finding function, as it uses core WP functions and is a little more resourceful when it comes to finding files, but it probably won’t happen until next month sometime.

    coralies

    (@coralies)

    Thank you @nosilver4u.
    It is very nice of you to provide me those informations. I look forward the improvements you want to bring to Imsanity.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Not the good path for the images’ is closed to new replies.