• Resolved Nick

    (@nickchomey)


    BuddyBoss has its own media mechanism that allows you to upload photos, videos etc… to the activity feed. They get stored in /wp-content/uploads/bb_media/2022/xx/

    LS Cache’s Image Optimizer recognizes these images and you can send them for optimization, but they don’t return anything. I’m not sure what the problem might be… I’ve tried it with BuddyBoss’ media symlinks setting turned both on and off.

    Any idea on what the problem might be? Image optimization is a crucial feature for a social network like this and if LS Cache/Quic can’t to it, users will be forced to go to other plugins (or even entirely different CDNs).

    I’m happy to help debug it if you give me some guidance.

    Thanks!

Viewing 5 replies - 16 through 20 (of 20 total)
  • Thread Starter Nick

    (@nickchomey)

    I just submitted a report

    Report number: ZCJCWCBO
    Report date: 05/28/2022 18:17:36

    My debug log that covers a few different actions
    https://pastebin.com/ryQ2iYU4

    1. Uploaded an image in media library.
    2. Optimized and pulled
    3. Uploaded an image through BB Activity Feed.
    4. Optimized but never pulled.
    5. Upload another image to media library.
    6. Optimized again, and it seemed to try to do the BB ones again but failed. I think it successfully optimized the media library image group though.

    I’m not sure how we would debug this – its clearly something within the BuddyBoss mechanism that is preventing it from happening. They get saved in /wp-content/uploads/bb_medias/2022/05/*.jpg. Not sure if LS Cache is having trouble writing to that path despite it being able to read/recognize images from it? Or if there is some BB filter that is blocking it all.

    If you don’t want to investigate another plugin, that is completely understandable…

    Plugin Support qtwrk

    (@qtwrk)

    okay , I see

    so the issue is , the ones uploaded by media.php , it optm’s successfully

    and the ones uploaded by buddypress , it won’t optm

    so far LSCWP can only optm the ones it can see in media , gathered by this query

    		$q = "SELECT b.post_id, b.meta_value
    			FROM <code>$wpdb->posts</code> a
    			LEFT JOIN <code>$wpdb->postmeta</code> b ON b.post_id = a.ID AND b.meta_key = '_wp_attachment_metadata'
    			LEFT JOIN <code>$this->_table_img_optm</code> c ON c.post_id = a.ID
    			WHERE a.post_type = 'attachment'
    				AND a.post_status = 'inherit'
    				AND a.post_mime_type IN ('image/jpeg', 'image/png', 'image/gif')
    				AND c.id IS NULL
    			ORDER BY a.ID DESC
    			LIMIT %d
    			";

    as the standard wp attachmented/uploaded images , if third party plugin does not save the images like wp standard attachment , LSCWP won’t be able to detect/optm them.

    Thread Starter Nick

    (@nickchomey)

    Thanks, however I don’t think that’s the problem. As I’ve said, LS Cache recognizes the files and even sends them successfully – it just doesnt pull them. Here are two screenshots of my database, showing that they enter the litespeed_img_optm and litespeed_img_optming tables and receive a successful response from your server. They never leave the optming table though.

    https://ibb.co/s1Rn8L7
    https://ibb.co/K661L07
    https://ibb.co/y0GW14d
    https://ibb.co/Y3tZ4vg

    The status never changes from 3 (requested) to 6 (notified). It just seems like your server rejects them completely rather than the plugin and its queries being the problem. If that’s just how it is, then I’ll leave this alone. But it might be worth looking into why your server is rejecting photos that it is successfully receiving (and even telling my server that it has received) – it may be a very simple and unnecessary line of code that looks for a particular filepath.

    Plugin Support qtwrk

    (@qtwrk)

    please send a mail to support at litespeedtech.com with reference link to this topic

    we will investigate further.

    Thread Starter Nick

    (@nickchomey)

    Done. Thanks very much!

Viewing 5 replies - 16 through 20 (of 20 total)
  • The topic ‘Cant pull images that were uploaded with BuddyBoss’ is closed to new replies.