• Resolved allanext

    (@allanext)


    First of thank you for creating this plugin!

    I just installed the plugin and testing in my code:

    $book = pods( 'book', $en_id);echo bis_get_attachment_picture(
        $book->field( 'book_cover', TRUE )['ID'],
        [
            575 => [ 232, 350 ],
            767 => [ 464, 700 ],
        ]
    );

    and the output is:

    <picture>
    <source media="(max-width:575px)" srcset="https://mysite.com/wp-content/uploads/2023/02/ORIGINAL_FILE.jpg">
    <source media="(max-width:767px)" srcset="https://mysite.com/wp-content/uploads/2023/02/ORIGINAL_FILE.jpg">
    <source media="(min-width:768px)" srcset="https://mysite.com/wp-content/uploads/2023/02/ORIGINAL_FILE.jpg">
    <img width="795" height="1200" src="https://mysite.com/wp-content/uploads/2023/02/ORIGINAL_FILE.jpg" class="attachment-full size-full" alt="" decoding="async" style="width:100%;height:150.94%;max-width:795px;">
    </picture>

    The file referred is always the original file and in the folder wp-content/uploads/bis-images/ is empty, what are the requirements to make the plugin work ?

    Thank you

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author kubiq

    (@kubiq)

    Hello,

    hard to say what is the problem… you should enable debug.log and then check if there is some error or warning… it can be some very strict chmod permissions, or not enough server resources to process that image, or many other things…

    Try that WP_DEBUG and let me know what appeared in your log

    Thread Starter allanext

    (@allanext)

    I’ve enabled the debug.log, but apart some deprecation warnings of some other modules I don’t see any output from the plugin.

    The settings from the plugin page says:

    Images directory
    /var/www/html/wp-content/uploads/bis-images
    Writeable

    It’s the official wordpress docker image, with GD and ImageMagick installed.

    If I comment out the echo of the output of bis_get_attachment_picture the image on the page is not displayed

    The folder wp-content/uploads/bis-images/ is still empty.

    I’m using this plugin in conjunction with https://www.ads-software.com/plugins/images-to-webp

    Plugin Author kubiq

    (@kubiq)

    Wow, so you have no errors or warnings in the debug.log and bis-images folder is empty? Sorry, but then I have no idea what’s going on…

    Have you tried also some other images? Maybe that one is somehow corrupted or maybe metadata are incorrect?
    It seams there is also some other plugin doing something because you have this style attribute in img tag and that’s not a normal output, but anyway, it shouldn’t affect the generating of images…

    Only way how to debug this would be to add some debug output messages directly in the plugin file on every few lines to see what’s going on, but that must be done on your server as only there this problem appears. Try to output all variables to see if they contain needed data… Or if you are able to replicate this issue somewhere where I can access it and test it, then let me know and I can take a look

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Bis images not generated, bis folder empty’ is closed to new replies.