alfateam
Forum Replies Created
-
I don’t see so much noise, just some extra fields. All this info doens’t help us too much but only to copy and paste it to the IP owner, so the more details the better. I rather find the proper data in the report email, instead of ssh the server and access the log, or any other additional step which can take me precious time. They need the exact time in order to find the abuser, I think this in an import issue that need to be fixed.
That’s right but its time consuming, doing the way you said will dramatically reduce the reports because of the delay. The best thing would be for sucuri to add the time zone in report or even subject of the email.
Forum: Plugins
In reply to: [W3 Total Cache] Can this plugin upload files to Amazon S3 ?Another issue is that even if CDN is enabled with Cloudfront and test pass, the images / files on website are still loaded from my server instead of cloudfront. Until now the plugin did nothing to speed up my website. I have disable it the plugin until I get some help here.
- This reply was modified 6 years, 3 months ago by alfateam.
The plugin is making me problems only on profile avatar image, I have mentioned the problem on github, the image fails to be sent properly generating this link ttps://mysite.net/file/s3eucentral1:/mysite/private/uploads/2018/08/09121042/cropped-12-150×150.jpg. If there is no solution I would like to exclude edit profile page from the plugin, is that possible ?
- This reply was modified 6 years, 3 months ago by alfateam.
Forum: Plugins
In reply to: [W3 Total Cache] Can this plugin upload files to Amazon S3 ?Hello,
I have fully installed your plugin and selected Cloudfront and properly set my Amazon Cloudfront access credentials but that will just act as simple CDN loading the files from cloudfront. What I need is for my ‘uploads’ folder files to be sent either directly on Amazon S3 and then use Amazon Cloudfront or uploaded on my server – sent to Amazon S3 and then deleted from my server. I need my server WordPress upload folder to always be almost empty. My website is a small freelancer website so people are uploading files to my server upload folder (pdf,zip,jpg, etc) to communicate with the employers, all those files will take huge space on my server, I need to solve that. Right now I’m using Offload S3 plugin that does exactly what I need but it has some issues that developer won’t fix it on free version.
- This reply was modified 6 years, 3 months ago by alfateam.
WP Offload S3 worked fine until today when I got the same exact error. Actually this is happening only when “Remove Files From Server” is enabled, and it happens with avatar profile images, when the client changes his profile picture it sends the bigger file to amazon s3 but when click save the cropped image is the issue, wordpress error log:
[21-Jul-2018 07:11:41 UTC] PHP Warning: stream_context_set_option(): options should have the form ["wrappername"]["optionname"] = $value in /home/admin/public_html/mysite.com/wp-content/plugins/amazon-s3-and-cloudfront/classes/providers/streams/aws-s3-stream-wrapper.php on line 74
When I check the image path on website is the server upload folder but the file is gone because “Remove Files From Server” is enabled. When I check cropped image path on wordpress admin media the big image is present with proper cloufront link but the cropped image icon is empty with this link “https://mysite.com/wp-content/uploads/2018/07/21071136/cropped-work.png”
The strange thing is that yesterday worked fine, the only thing I did today prior that is to change “Path” on WP Offload S3 by replacing wp-content with cloud. Seen the issue I changed back but the problem persists.
- This reply was modified 6 years, 4 months ago by alfateam.
I understand that I can transfer it back to my server with SSH but I sow that Amazon S3 is creating one folder for each image while on my wordpress upload folder its one folder per day. If I transfer it back to my server in the same Amazon folder structure will my WordPress recognize the location ? I don’t really understand the impact of this particular case, to enable “Remove Files From Server” and few months later to decide that I need to leave Amazon S3, I don’t want my webiste to get messed up with missing files, etc.
I figured it out where to add the code
$types['zip'] = 'application/zip'; $types['rar'] = 'application/rar';
Its working perfect now ! Anyway for future reference I don’t know where the log is created. I would also like to know what are the WP Offload S3 exact extention file list that are allowed to be upload to Amazon. I’m sure that I need to add more…
I also need to know what will happen if I enable “Remove Files From Server” and later on (after 10GB of files are sent to Amazon S3) I need to restore them in an easy way back to my server and shut down the plugin without any band consequences with all the files been loaded automatically from proper upload folder location. Maybe one day I decide that Amazon S3 deosn’t fit my needs anymore and I need to restore the files, I need to know I’m on the safe side, “Remove Files From Server” is vital to be enabled otherwise I don’t see the purpose of loading the files from my server taking space and resources, I don’t want to be trapped with all this, I need an easy safe get out solution, all this looks very nice but who knows.
- This reply was modified 6 years, 4 months ago by alfateam.
- This reply was modified 6 years, 4 months ago by alfateam.
- This reply was modified 6 years, 4 months ago by alfateam.
- This reply was modified 6 years, 4 months ago by alfateam.
- This reply was modified 6 years, 4 months ago by alfateam.
- This reply was modified 6 years, 4 months ago by alfateam.
Where is that debug log file locate and where should I add the code exactly ?
I have tried your filter to disallow pdf files and works, pdf files are not sent to Amazon. Now I need to solve my problem and allow zip/rar files, I don’t know how to debug the cause.
- This reply was modified 6 years, 4 months ago by alfateam.
Yes but the filter you pointed is blocking the files:
function allowed_mime_types( $types ) { // disallow PDFs from S3 unset( $types['pdf'] ); return $types; }
How to allow zip/rar ?
Thank you @ianmjones.
Actually my WordPress is allowing me to upload zip/rar files on website, the problem is that zip/rar files are not uploaded to Amazon S3, so the final download link its still the server upload folder only for this files. How to enable WP Offload S3 to upload this files to the Amazon in order to get the proper download link ?
I wonder if its possible to work with the module itself or maybe with this one WP Offload S3 Tweaks https://github.com/deliciousbrains/wp-amazon-s3-and-cloudfront-tweaks in order to avoid editing template files. Can you check ?
I have enabled this line on Tweaks plugin with no result:
add_filter( ‘as3cf_wp_get_attachment_url’, array( $this, ‘wp_get_attachment_url’ ), 10, 2 );
- This reply was modified 6 years, 4 months ago by alfateam.
I don’t know who you are and why you tried to help me here but I have contacted so called big experts on https://premium.wpmudev.org, not one but 3 ‘experts’ failed to solve this problem while you did it in seconds. Your code worked perfectly. I really appreciate your help. [ Redacted, support is not offered via email, Skype, instant messenger, etc. ]
- This reply was modified 6 years, 4 months ago by alfateam.
- This reply was modified 6 years, 4 months ago by Jan Dembowski.
This is the php template file taking care of it my theme https://pastebin.com/nJUrBy50, anyone can alter it so I can get correct amazon s3 link when download the files ? I noticed that delete works, it deletes the files from amazon S3.