cbrherms
Forum Replies Created
-
Appreciate you looking at it.
Appears with all the custom css modifications removed I wasn’t able to get it to display due to the main theme overriding a lot of things.
I shall relay that this would need looking at by a developer rather than being handled in house.
Forum: Plugins
In reply to: [Advanced Media Offloader] Bulk upload stuckJust to follow up (apologies, should have updated last night):
It turns out the root cause was a non-standard config on our end. Specifically, we have HTTP basic auth enabled on this environment, which was causing the offload call to fail with a 401 error (as shown in the log in my previous comment). Temporarily disabling basic auth allowed the plugin to offload the full batch of 50 files successfully.
That said, I was wondering if it might be possible to enhance the plugin to handle such cases more gracefully? Perhaps:
- Detecting and surfacing a clearer error when a 401 error occurs, so users can identify the issue quickly / avoid the background task getting stuck as stalled
- Adding an advanced option to allow users to set HTTP basic auth credentials for the offload call, ensuring the process works seamlessly in environments like ours
Thank you for your time and efforts in looking into this and for this plugin in general – much appreciated!
Forum: Plugins
In reply to: [Advanced Media Offloader] Bulk upload stuckActually, saying that, i’ve just checked the nginx logs as well on this install and can see that there are 401 unauthorized errors every (roughly) 5 minutes relating to the plugin. Does the background offloader retry every 5 minutes?
{
"installName": "*sanitised*",
"environment": "STAGE",
"domain": "*sanitised*",
"ipAddress": "*sanitised*",
"date": "2025-03-27T17:10:08.000Z",
"type": "nginx",
"verb": "POST",
"resource": "/wp-admin/admin-ajax.php?action=advmo_bulk_offload_media_process&nonce=bf026d2065",
"protocol": "HTTP/1.0",
"status": 401,
"referer": null,
"userAgent": "WordPress/6.7.1; *sanitised*",
"uuid": "*sanitised*"
}Forum: Plugins
In reply to: [Advanced Media Offloader] Bulk upload stuckHi @masoudin – Thanks for the quick response.
Due to the nature of our setup, we wouldn’t be able to enable external user access, but i’ve tried again on a fresh clone of our prod, with the debug.log enabled in config.php to capture any potential problems.
The logs do seem quite sparse though. Below you can see from install to running some uploads.
[27-Mar-2025 16:01:46 UTC] auditor:event=upgrader_process_complete_plugin {"type":"plugin","action":"install","plugin":"advanced-media-offloader","blog_id":1,"event":"upgrader_process_complete_plugin","current_user_id":8,"remote_addr":"*sanitised*"}
[27-Mar-2025 16:01:54 UTC] auditor:event=activated_plugin {"plugin":"advanced-media-offloader/advanced-media-offloader.php","network_activation":false,"blog_id":1,"event":"activated_plugin","current_user_id":8,"remote_addr":"*sanitised*"}
[27-Mar-2025 16:01:54 UTC] ADVMO - Error: Unsupported cloud provider:
[27-Mar-2025 16:01:55 UTC] ADVMO - Error: Unsupported cloud provider:
[27-Mar-2025 16:02:03 UTC] ADVMO - Error: Unsupported cloud provider:
[27-Mar-2025 16:02:04 UTC] ADVMO - Error: Unsupported cloud provider:
[27-Mar-2025 16:02:25 UTC] ADVMO - Error: Unsupported cloud provider:
[27-Mar-2025 16:02:25 UTC] ADVMO - Error: Unsupported cloud provider:
[27-Mar-2025 16:03:41 UTC] PHP Warning: Undefined array key "filesize" in /nas/content/live/*sanitised*/wp-content/plugins/advanced-media-offloader/includes/Traits/OffloaderTrait.php on line 106
[27-Mar-2025 16:23:14 UTC] PHP Warning: Undefined array key "filesize" in /nas/content/live/*sanitised*/wp-content/plugins/advanced-media-offloader/includes/Traits/OffloaderTrait.php on line 106The unsupported cloud provider only appeared before I selected Cloudflare R2 in the options so pre-configuration of the plugin.
The first PHP warning about an undefined array was logged when the first file was manually added via the media library admin panel.
After that was successful, I enabled the bulk media offload via media overview of the offloader plugin. This didn’t generate any debug logs, nor errors in our normal error capturing logs.
The second undefined array error was captured when I uploaded a second file via the media library admin panel.
Additionally, now almost an hour after starting, checking the database options entries for the offload data shows last_update as roughly 16:04 UTC, so no changes since the process was started.
advmo_bulk_offload_data:
a:6:{s:5:"total";i:50;s:6:"status";s:10:"processing";s:9:"processed";i:0;s:6:"errors";i:0;s:17:"oversized_skipped";i:0;s:11:"last_update";i:1743091477;}
advmo_bulk_offload_media_process_batch_ab98c8acef408334645db50bf:
a:50:{i:0;s:3:"288";i:1;s:3:"289";i:2;s:3:"385";i:3;s:3:"504";i:4;s:3:"505";i:5;s:3:"506";i:6;s:3:"714";i:7;s:3:"731";i:8;s:3:"769";i:9;s:3:"779";i:10;s:3:"890";i:11;s:3:"892";i:12;s:3:"895";i:13;s:3:"896";i:14;s:3:"906";i:15;s:3:"923";i:16;s:3:"925";i:17;s:3:"928";i:18;s:3:"938";i:19;s:3:"940";i:20;s:3:"941";i:21;s:3:"942";i:22;s:3:"943";i:23;s:3:"944";i:24;s:3:"950";i:25;s:4:"1004";i:26;s:4:"1006";i:27;s:4:"1007";i:28;s:4:"1018";i:29;s:4:"1053";i:30;s:4:"1054";i:31;s:4:"1058";i:32;s:4:"1067";i:33;s:4:"1069";i:34;s:4:"1072";i:35;s:4:"1099";i:36;s:4:"1102";i:37;s:4:"1109";i:38;s:4:"1110";i:39;s:4:"1111";i:40;s:4:"1112";i:41;s:4:"1113";i:42;s:4:"1114";i:43;s:4:"1118";i:44;s:4:"1126";i:45;s:4:"1128";i:46;s:4:"1130";i:47;s:4:"1132";i:48;s:4:"1139";i:49;s:4:"1140";}I would be very happy if this was a thing as a move to a different plugin with a queuing feature has been on our list of considerations recently.
Would rather stick with a plugin we’ve used for as long as I can remember but the feature is getting close to being a must have.