I recently installed your plugin and set it up with my Digital Ocean Space bucket. However, I noticed there’s no option to specify the bucket path for uploaded media files. Ideally, I’d like the files to be stored in an existing folder structure, like:
https://example.sgp1.digitaloceanspaces.com/wp-content/uploads/2024/09/example.jpg
Instead, the current system automatically uploads files by creating a new folder, resulting in a path like:
https://example.sgp1.digitaloceanspaces.com/2024/09/example.jpg
It would be incredibly helpful if you could add an option to set a prefix for the bucket path, as well as an option to add the year and month to the path. This would allow us to maintain consistency and continue using our existing folder structure.
Additionally, I’d love to see a feature that can rewrite URLs to replace local links with the S3 bucket links.
Your plugin has great potential and, with these features, it could easily compete with other offload plugins out there. You’ve done a fantastic job so far!
Thanks again.
]]>First of all, thank you very much for having a space for our questions. I’ve been looking for a fix for about a month and I’m running out of time.
Last year I created the site inmobar.com to my digitalocean account, however, over time it was time to pass it on to its owner, so I made another account in Digital Ocean, a snapshot and then created a droplet based on this .
For a long time I thought the problem was due to poor configuration, but by making arrangements and between tickets and queries, I discovered that the site does not have problems with HTML files such as https://inmobar.com/readme.html; instead, you show problems loading the home page or any page with content.
I have found references to other migration errors regarding NGINX permalinks, I have also had experience with caching problems but none of these cases fit my case because it does not have a caching system and the NGINX configuration already worked in the previous machine and this is a copy.
So I was wondering if WordPress has a history of showing these problems, I usually use a plugin to migrate from one machine to another but I’m using a database on a cluster so said helper plugin didn’t allow me to go down that route.
I will appreciate your help to save this site before it is canceled.
]]>Remote fetch failed
No local copy present.
When I go to DO Spaces, I see all backup zip files on the remote location. Expected result is to be able to download files within the plugin with no additional access requirements, so any admin can download those files whenever they want.
Current settings with no custom changes:
I tried this using WPEngine and NameHero servers with WP 6.4.2, UpdraftPlus 1.23.16 and PHP 8.2.14.
Let me know if you need additional info. Thank you in advance!
]]>Can we get an option to turn on the .cdn or otherwise modify how the URLs are written?
P.S. I’ve tried changing my custom endpoint to include the .cdn but that breaks the plugin’s ability to upload files or interact with the bucket.
Currently I’m using a re-write in my theme’s functions.php to re-write the URLs, but I’d much prefer to have the plugin just create the urls correctly in the first place.
On multisite, activated it on the main site, it shows critical error on media library:
https://prnt.sc/qqxEFVpjhHj4
here is error log:
[06-Feb-2023 16:10:48 UTC] PHP Fatal error: Uncaught Error: Call to undefined method InvalidArgumentException::getStatusCode() in /var/www/mysite.com/htdocs/wp-content/plugins/offload-media-cloud-storage/includes/services/class-acoofm-digitalocean.php:459
Stack trace:
#0 /var/www/mysite.com/htdocs/wp-content/plugins/offload-media-cloud-storage/includes/class-acoofm-item.php(237): ACOOFM_DIGITALOCEAN->get_presigned_url()
#1 /var/www/mysite.com/htdocs/wp-content/plugins/offload-media-cloud-storage/includes/class-acoofm-public.php(830): ACOOFM_ITEM->get_url()
#2 /var/www/mysite.com/htdocs/wp-includes/class-wp-hook.php(308): ACOOFM_Public->get_attached_file()
#3 /var/www/mysite.com/htdocs/wp-includes/plugin.php(205): WP_Hook->apply_filters()
#4 /var/www/mysite.com/htdocs/wp-includes/post.php(746): apply_filters()
#5 /var/www/mysite.com/htdocs/wp-includes/post.php(6794): get_attached_file()
#6 /var/www/mysite.com/htdocs/wp-includes/post.php(6847): wp_attachment_is()
#7 /var/www/mysite.com/htdocs/wp-includes/media.php(192): wp_attachment_is_image()
#8 /var/www/mysite.com/htdocs/wp-includes/media.php(954): image_downsize()
#9 /var/www/mysite.com/htdocs/wp-includes/media.php(1032): wp_get_attachment_image_src()
#10 /var/www/mysite.com/htdocs/wp-admin/includes/class-wp-media-list-table.php(428): wp_get_attachment_image()
#11 /var/www/mysite.com/htdocs/wp-admin/includes/class-wp-list-table.php(1527): WP_Media_List_Table->column_title()
#12 /var/www/mysite.com/htdocs/wp-admin/includes/class-wp-media-list-table.php(699): WP_List_Table->single_row_columns()
#13 /var/www/mysite.com/htdocs/wp-admin/includes/class-wp-list-table.php(1444): WP_Media_List_Table->display_rows()
#14 /var/www/mysite.com/htdocs/wp-admin/includes/class-wp-list-table.php(1371): WP_List_Table->display_rows_or_placeholder()
#15 /var/www/mysite.com/htdocs/wp-admin/upload.php(388): WP_List_Table->display()
#16 {main}
thrown in /var/www/mysite.com/htdocs/wp-content/plugins/offload-media-cloud-storage/includes/services/class-acoofm-digitalocean.php on line 459
]]>The following tables have no primary key:
prefix_aws_cache
prefix_aws_index
For managed database clusters at DigitalOcean, this is a problem, since the primary key is required to exist on all tables for restoring, recovering, forking, etc: https://docs.digitalocean.com/products/databases/mysql/how-to/create-primary-keys/
I noticed that to solve a migration issue a few months back, you had someone simply drop the tables and re-index, etc. Will this re-create the tables with a primary key? If not, would you consider adding a primary key to these tables during creation to accommodate the subset of your users who utilize databases such as DigitalOcean’s managed database clusters?
Thanks in advance for your help.
]]>I having issue with file permission, Im unable upload/update/edit anyhting. which was working fine 3days back. i dont know where i have messed up.
WordPress Error: The uploaded file could not be moved to wp-content/uploads/2022/05.
My Hosting provide is Digital Ocean
I have tried to set permission with few commands
chown -R www-data /var/www/html/wp-content
chmod 755 -R /var/
But nothing is working out.
]]>WordPress database error Unknown column 'transcript' in 'on clause' for query SELECT\np.id,player_name, date_created, videos, author, status,\ncount(subtitles.id) as subtitles_count,\ncount(cues.id) as cues_count,\ncount(chapters.id) as chapters_count,\ncount(transcript.id) as transcript_count\nFROM
edn_fv_player_playersAS p\nJOIN
edn_fv_player_videosAS v on FIND_IN_SET(v.id, p.videos)\nLEFT JOIN
edn_fv_player_videometaAS subtitles ON v.id = subtitles.id_video AND subtitles.meta_key like "subtitles%"\nLEFT JOIN
edn_fv_player_videometaAS cues ON v.id = cues.id_video AND cues.meta_key like "cues%"\nLEFT JOIN
edn_fv_player_videometaAS chapters ON v.id = chapters.id_video AND chapters.meta_key = "chapters"\nLEFT JOIN
edn_fv_player_videometaAS transcript ON v.id = transcript.id_video AND transcript.meta_key = "transcript"\n WHERE 1=1 GROUP BY p.id ORDER BY date_created desc LIMIT 0, 25 made by do_action('toplevel_page_fv_player'), WP_Hook->do_action, WP_Hook->apply_filters, FV_Player_List_Table_View->tools_panel, FV_Player_List_Table->prepare_items, FV_Player_List_Table->get_data, FV_Player_Db->getListPageData, FV_Player_Db->query_players, referer: https://eugenedailynews.com/wp-admin/options-general.php?page=fvplayer
Have there been any issues using the DO Managed Databases with FlowPlayer? It works with most other plugins, only FlowPlayer and Matomo Analytics will not function properly.
]]>