-
Author
Tagged: buddypress cover photo, S3, S3-Uploads
-
September 3, 2015 at 20:47 #76100efullmanParticipant
Hi,
Love the plugin, and Kleo, I’ve been running both on our servers.
I’ve since needed to restructure our architecture, and move image files off the WordPress Server. I’m using S3-Uploads after a lot of testing. This plugin takes a different approach to the problem, and facilitates the process by redirecting uploads to S3 buckets, and dynamically redirecting upload directory requests to the S3 buckets without changing the db. It works great with Kleo with one exception.
When S3-Uploads is activated BuddyPress Cover Photo can’t upload a file correctly and delivers the attached error message (see image). We think it maybe an incompatibility with how you are using
wp_handle_upload
it seems to completely fail, and doesn’t create the file on local file system or the S3 bucket. For the cover photo files that were previously uploaded and synced into S3 they are read from S3 without a problem.
This seems to be isolated to the upload process from BuddyPress Cover Photo, the rest of Kleo and other plugins seem fine.
I was wondering if you could help us isolate a patch. Here is the conversation with S3-Uploads plugin author https://github.com/humanmade/S3-Uploads/issues/46.
Thanks in advance for your help. I love the plugin, but I can’t move revert backward on the architecture change to move this media off the WordPress server.
Attachments:
You must be logged in to view attached files.September 6, 2015 at 07:35 #76373AbeKeymasterHi, we will be doing some tests and will let you know
Thanks
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution---
@ SeventhQueen we do our best to have super happy customers. Thanks for being our customer.September 18, 2015 at 11:09 #78335AbeKeymasterHi, unfortunately we haven’t made any progress on this but I will let you know ASAP once I have some updates
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution---
@ SeventhQueen we do our best to have super happy customers. Thanks for being our customer.September 18, 2015 at 14:49 #78353AbeKeymasterYou can try adding this in your child functions.php
COPY CODEadd_filter('upload_dir', 'bcp_custom_upload_dir' ); function bcp_custom_upload_dir($args) { if (isset($_POST['action']) && $_POST['action'] == 'bp_upload_profile_cover' ) { $args['path'] = $args['basedir'] . "/bcp-user" . $args['subdir']; $args['url'] = $args['baseurl'] . "/bcp-user" . $args['subdir']; } if (isset($_POST['action']) && $_POST['action'] == 'upload_group_cover' ) { $args['path'] = $args['basedir'] . "/bcp-group" . $args['subdir']; $args['url'] = $args['baseurl'] . "/bcp-group" . $args['subdir']; } return $args; }
This should make the uploads for the profile cover in a bcp-user folder and the group cover in a bcp-group folder
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution---
@ SeventhQueen we do our best to have super happy customers. Thanks for being our customer. -
AuthorPosts
The forum ‘KLEO’ is closed to new topics and replies.