Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter benzend

    (@benzend)

    Also, here’s something that might help someone else out if they’re experiencing this:

    • Go to your media library
    • At the top of the page where it says “screen options”, set your load limit to something like 100 (I’m doing 500 at the moment)
    • Make sure your plugin is activated, or you won’t see your offloaded status, making the following steps useless
    • Open your inspector’s console and run this script:
    let items = document.querySelectorAll('.cf-images-undo');
    let timeBetweenClick = 1000;
    function clickSlowly(arr) {
    for (let i = 0; i < arr.length; i++) {
    setTimeout(() => {
    arr[i].click();
    }, timeBetweenClick * i)
    }
    }
    clickSlowly(items);

    This should run through each image and attempt to set offloaded to false, or rather, remove the image from CF in case the bulk removing doesn’t work

    • This reply was modified 8 months, 3 weeks ago by benzend.
    Thread Starter benzend

    (@benzend)

    Here’s some extra logs when running bulk remove, might help:

    [2024-05-31T16:44:01+00:00] Missing Cloudflare Image ID or hash. Attachment ID: 253. Image: Array
    (
    [0] => https://foo.bar/wp-content/uploads/2021/05/foo_icon_clear.png
    )

    [2024-05-31T16:44:01+00:00] Missing Cloudflare Image ID or hash. Attachment ID: 253. Image: Array
    (
    [0] => https://foo.bar/wp-content/uploads/2021/05/foo_icon_clear.png
    [1] => 224
    [2] => 225
    [3] =>
    )

    [2024-05-31T16:44:01+00:00] Missing Cloudflare Image ID or hash. Attachment ID: 253. Image: Array
    (
    [0] => https://foo.bar/wp-content/uploads/2021/05/foo_icon_clear.png
    )

    [2024-05-31T16:44:01+00:00] Missing Cloudflare Image ID or hash. Attachment ID: 253. Image: Array
    (
    [0] => https://foo.bar/wp-content/uploads/2021/05/foo_icon_clear.png
    [1] => 224
    [2] => 225
    [3] =>
    )
Viewing 2 replies - 1 through 2 (of 2 total)