Title: weird errors in cli
Last modified: August 26, 2025

---

# weird errors in cli

 *  Resolved [mcdeth](https://wordpress.org/support/users/mcdeth/)
 * (@mcdeth)
 * [9 months ago](https://wordpress.org/support/topic/weird-errors-in-cli/)
 *     ```wp-block-code
       Error: Failed to offload attachment ID 12819: Failed to upload size 'filename-540x810.jpg' to cloud storage. Please review your Cloud provider credentials or connection settings. For more details, enable debug.log and check the logs.Processing attachment ID 13585 (10/8433)...Warning: Undefined array key "file" in public_html/wp-content/plugins/advanced-media-offloader/includes/Services/CloudAttachmentUploader.php on line 227Warning: Undefined array key "width" in public_html/wp-content/plugins/advanced-media-offloader/includes/Traits/OffloaderTrait.php on line 98Warning: Undefined array key "height" in public_html/wp-content/plugins/advanced-media-offloader/includes/Traits/OffloaderTrait.php on line 98Warning: Undefined array key "file" in public_html/wp-content/plugins/advanced-media-offloader/includes/Services/CloudAttachmentUploader.php on line 100Error: Failed to offload attachment ID 13585: Failed to upload size 'filename-540x810.jpg' to cloud storage. Please review your Cloud provider credentials or connection settings. For more details, enable debug.log and check the logs.Processing attachment ID 9193 (11/8433)...Success: Successfully offloaded attachment ID 9193Processing attachment ID 11405 (12/8433)...Success: Successfully offloaded attachment ID 11405Processing attachment ID 12978 (13/8433)...Success: Successfully offloaded attachment ID 12978Processing attachment ID 13843 (14/8433)...Success: Successfully offloaded attachment ID 13843Processing attachment ID 9194 (15/8433)...Success: Successfully offloaded attachment ID 9194Processing attachment ID 9195 (16/8433)...
       ```
   
 * I’m receiving this weird error, after few times it continues to offload media(
   r2)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Masoud Golchin](https://wordpress.org/support/users/masoudin/)
 * (@masoudin)
 * [8 months, 4 weeks ago](https://wordpress.org/support/topic/weird-errors-in-cli/#post-18618798)
 * Hi [@mcdeth](https://wordpress.org/support/users/mcdeth/) 
   It is probably because
   the data related to media attachment ID 13585 is not correctly stored in DB. 
   If that’s an image, you can use “Regenerate Thumbnail” WordPress plugin to fix
   the issue for that attachment and try the offloading again.

Viewing 1 replies (of 1 total)

The topic ‘weird errors in cli’ is closed to new replies.

 * ![](https://ps.w.org/advanced-media-offloader/assets/icon.svg?rev=3213156)
 * [Advanced Media Offloader](https://wordpress.org/plugins/advanced-media-offloader/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/advanced-media-offloader/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/advanced-media-offloader/)
 * [Active Topics](https://wordpress.org/support/plugin/advanced-media-offloader/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/advanced-media-offloader/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/advanced-media-offloader/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Masoud Golchin](https://wordpress.org/support/users/masoudin/)
 * Last activity: [8 months, 4 weeks ago](https://wordpress.org/support/topic/weird-errors-in-cli/#post-18618798)
 * Status: resolved