WordPress.org

Ready to get started?Download WordPress

Forums

Simple Image Sizes
Image regeneration fails - image does not exist (17 posts)

  1. pbergc4b
    Member
    Posted 2 years ago #

    Hi,
    thanks for the great plugin first.

    I have an issue when regenerating images I get the following error:

    This file does not exists and have not been regenerated :
    ...

    Any idea? I checked filepermissions on server etc, when I click the image link under the error I see the image on "domain/media.php?attachment_id=55&action=edit" but no regeneration happens.

    Thanks
    P

    http://wordpress.org/extend/plugins/simple-image-sizes/

  2. Rahe
    Member
    Plugin Author

    Posted 2 years ago #

    Hi,

    When there is this message, the file does not exists because the file_exists or the path of the file given by WordPress are at false.
    So maybe the path of the file given by WordPress is not right, you maybe have a filter on the file path made by one other plugin or something.
    Are you on multisite ? Maybe the path is filtered by WordPress and give a rewritted path.

    Rahe

  3. pbergc4b
    Member
    Posted 2 years ago #

    Hi Rahe,

    yes am on a multisite - is there a way that the plugin works on multisite? Anything special to take care of? I have the standard WP subdomain multisite htaccess rewrite on.

    Thanks a lot

  4. pbergc4b
    Member
    Posted 2 years ago #

    Solved - was finally some weird errors in my php that prevented it.

    Thanks!

  5. Rahe
    Member
    Plugin Author

    Posted 2 years ago #

    Hi,

    i'm glad your problem is solved !
    But i have discovered that the message was maybe wrong, i will take a look soon :).

    Rahe

  6. Pereira
    Member
    Posted 2 years ago #

    I get the exact problem described in the first post. didnt figure it out tho. it says "file does not exist: (link)" when i click the link i see the file ok. Permissions are good too.

  7. Rahe
    Member
    Plugin Author

    Posted 2 years ago #

    Hello,

    Look on the xhr reponse and check if there is no other characters than json. If the json is broken then you have this message.

    Rahe

  8. Pereira
    Member
    Posted 2 years ago #

    I'm sorry, i dont know what xhr is. Im pretty sure ive used this plugin before and it worked.

    Any idea how to fix the problem?

  9. Rahe
    Member
    Plugin Author

    Posted 2 years ago #

    Hi,

    Sorry for the technical vocabulary...
    Some times there is errors in the php that broke the rsponse of the regeneration.
    The plugin have already worked in your server ?
    I think the message is just wrong because i display the same message for not founded files and files not regenerated because alreay exists...
    Go on your ftp and check if there is other files with the same name but with strings like this at the end of the file name "yourfilename-12x25.jpg". This is the redimmensionned file.

    Rahe

  10. Pereira
    Member
    Posted 2 years ago #

    Yes I have checked, I see the different sizes of each file I got there, but there is no copy on the size that i tried to generate with the plugin.

    I changed the "large" size from 982 to 990. and a lot of photos are bigger or equal to 990 (in their original format), but the plugin didnt seem to make a copy of them in the 990 format. (im talking 990 width here).

    The plugin has worked before im pretty sure, but it mightve been before I changed from windows to linux on my web host. Does that make a difference?

    Tell me if there is some other info I can provide you to try and figure out the problem for me and thanks for the attention.

  11. Rahe
    Member
    Plugin Author

    Posted 2 years ago #

    Hi,

    this is weird, have you tried to regenerate one media by the medias list ? I have added an link in quick actions. If in this case the file is regenerated so I have a script problem. If the file is not regenerated I have no other solution for you ;-(.

  12. Pereira
    Member
    Posted 2 years ago #

    I didn't realise the plugin had that funcionality. I tried it on one photo and apparently it worked. It said "the image has been regenerated in such and such seconds"

    however, on the ftp folder, I see the same files as before, for that one photo.

    As I said, I have switched the width of the "large" media size (in media settings) from 982 to 990px. So is that enough to make this regeneration create a new file called imagename-990x600 for example? Or am I missing something?

  13. Rahe
    Member
    Plugin Author

    Posted 2 years ago #

    If the file is bigger than 990px width the size is created, so there is a problem in plugin or in your hosting... Maybe try an another regeneration image plugin.. maybe i do something wrong :/

  14. Pereira
    Member
    Posted 2 years ago #

    the file is exactly 990px...

    well c'mon man dont be so hard on yourself hehe I've used it before and I'm sure it worked. It might be some small detail thats doing this. if the file is exactly the same size of what Im trying to generate, do you think that could be the problem? the plugin just ignores it? maybe?

    If not, well do you recommend any other plugin that does this funcionality?

  15. Pereira
    Member
    Posted 2 years ago #

    I tried to click regenerate in one specific file from the media listing and that worked. I mean, no file was created because the file was already 990px width, so i guess wordpress doesnt create another instance of it with "-990x600" in the end of the filename.

    The script I use to show galleries, now shows the image with 990px though, instead of showing the file ending on "980x600", with 980px width (old "large size" in the media settings)

    Maybe when you click regenerate on a single file it just overwrites the files even tho they are already there, and maybe that resets something and makes wordpress think twice about whats "large size".

    I hope that makes a bit of sense. Is there a way I can make the Regenerate script behave in the same way that the single regenerate link works for each media file? And overwrite everything?

  16. Pereira
    Member
    Posted 2 years ago #

    nevermind man, i looked for all the photos i needed in the media listings and clicked regenerate on each of them... that solved my problem anyway =) but i think it'd be good to have the functionality i described to you. anyway, your plugin did it again! thanks a lot, for the attention also. All the best.

  17. Rahe
    Member
    Plugin Author

    Posted 2 years ago #

    I'm glad your problem is solved !
    Sometimes the server just don't want to ! ^^

    Rahe

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic