• Hi,

    I just added the plugin to a new installation, as previous were a good result.

    I notice now issues witht the bulk offload. It also takes pdf files, which it should not take, it returns into an error and it stops. I also see this error in my inbox:

    Fatal error type E_ERROR on line 53 from file /.../public_html/wp-content/plugins/cf-images/app/traits/trait-stats.php. 
    Report: Uncaught TypeError: CF_Images\App\Media::maybe_save_hash(): Argument #1 ($variants) must be of type array, null given, called in /.../public_html/wp-content/plugins/cf-images/app/class-media.php on line 487 and defined in /.../public_html/wp-content/plugins/cf-images/app/traits/trait-stats.php:53

    Stack trace:
    #0 /.../public_html/wp-content/plugins/cf-images/app/class-media.php(487): CF_Images\App\Media->maybe_save_hash()
    #1 /.../public_html/wp-content/plugins/cf-images/app/class-media.php(861): CF_Images\App\Media->upload_image()
    #2 /.../public_html/wp-includes/class-wp-hook.php(324): CF_Images\App\Media->bulk_action_handler()
    #3 /.../wp-includes/plugin.php(205): WP_Hook->apply_filters()
    #4 /.../public_html/wp-admin/upload.php(345): apply_filters()
    #5 {main}

    So I also enabled logs:

    [2025-11-21T20:33:53+00:00] Missing Cloudflare Image ID or hash. Attachment ID: 568. Image: Array
    (
    [0] => /.../wp-content/uploads/images/logo/favicon.png
    )

    [2025-11-21T20:33:53+00:00] Missing Cloudflare Image ID or hash. Attachment ID: 568. Image: Array
    (
    [0] => /.../wp-content/uploads/images/logo/favicon.png
    )

    [2025-11-21T20:33:53+00:00] Missing Cloudflare Image ID or hash. Attachment ID: 568. Image: Array
    (
    [0] => h/.../wp-content/uploads/images/logo/favicon.png
    [1] => 161
    [2] => 161
    [3] =>
    )

    Thanks for your support!

    Demian

    • This topic was modified 4 months, 3 weeks ago by Demian. Reason: privacy
Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Anton Vanyukov

    (@vanyukov)

    Hi @demian85,

    Interesting… It looks like some weird edge case. Are you able to offload individual images without issues?

    Best regards,
    Anton

    Thread Starter Demian

    (@demian85)

    Via library a single image it receives this error in the debug.log. The same as I reported above with

    Uncaught TypeError: CF_Images\App\Media::maybe_save_hash():

    Plugin Author Anton Vanyukov

    (@vanyukov)

    I think there might be an issue with your API key. Please have a look at this setup guide: https://vcore.au/tutorials/how-to-setup-cloudflare-images-plugin/

    Best regards,
    Anton

    Thread Starter Demian

    (@demian85)

    Yes, the right token, but the wrong account ID.

    Strange enough, when I clicked the Re-check API Status, it didn’t tell me anything.

    Thanks for directing me into the right direction.

    Plugin Author Anton Vanyukov

    (@vanyukov)

    Yeah, the endpoint that I use to re-check the status doesn’t give much info. It just checks if a key is valid… It doesn’t check the account or all that stuff. That’s a Cloudflare limitation

    Best regards,
    Anton

Viewing 5 replies - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.