• Resolved alohaaaron

    (@alohaaaron)


    I’m getting the plugin setup and it seems that files are being uploaded to the S3 bucket, I see some current files in the bucket, but not all of them are being uploaded, or they are in the wrong place.

    For example I receive this error in the browser console, but the file and path don’t exist
    GET https://mywebsite.s3.amazonaws.com/wp-content/themes/Avada/assets/css/style.min.css.gzip?ver=5.9.1 net::ERR_ABORTED 403 (Forbidden)

    The actual path that is in the S3 bucket is https://mywebsite.s3.amazonaws.com/wp-content/themes/Avada-Child-Theme/
    The Avada directory, the asset dir, css dir, and style.min.css.gzip file don’t exist.

    The files that exist in that bucket location are screenshot.png, style.css, and style.css.gzip. These files are recent uploads so it doesn’t seem to be a permissions issue?

    The Avada theme is installed on the wordpress host but the active theme is Avada Child. The style.min.css file on the wordpress host is at:
    ./themes/Avada/assets/css/style.min.css
    ./plugins/fusion-core/css/style.min.css

    I’ve clicked all the export buttons to upload content to S3. Is there another step to get it working properly?

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @alohaaaron

    Thank you for your inquiry and I am happy to assist you with this.
    Can you please share the website URL?
    Can you also please share the screenshot of the Performance>CDN page?
    You can try adding the path to Rejected files: for example:
    /wp-content/themes/Avada/assets/*
    Thanks!

    Thread Starter alohaaaron

    (@alohaaaron)

    Hi Marko,
    It’s an internal website so doesn’t have a public facing url that can be reached.
    I don’t see performance cdn page or option to add a path for rejected files? Do you mean exclude a directory with .htaccess?
    I’m running version 2.12 which I think is the latest version.
    Thanks!

    Thread Starter alohaaaron

    (@alohaaaron)

    How do I add the Avada theme and other folder locations to the upload theme list?
    W3 Total Cache is only uploading files from the Avada-Child theme which has just a few files.

    Also anything with a gzip extension is not being uploaded. For example none of these files are being uploaded but show as 403 errors in the browser console.

    wp-content/themes/Avada/includes/lib/assets/min/js/library/jquery.mousewheel.js.gzip
    
    wp-content/themes/Avada/assets/css/style.min.css.gzip
    
    wp-content/plugins/jquery-manager/assets/js/jquery-migrate-3.3.0.min.js.gzip
    
    wp-content/themes/Avada/assets/css/media/max-2c.min.css.gzip
    
    wp-content/themes/Avada/includes/lib/assets/min/js/library/modernizr.js.gzip
    
    wp-content/themes/Avada/includes/lib/assets/min/js/library/modernizr.js.gzip
    
    wp-content/themes/Avada/assets/css/media/min-2c-max-3c.min.css.gzip
    
    wp-content/themes/Avada/includes/lib/assets/min/js/library/modernizr.js.gzip
    
    wp-content/themes/Avada/includes/lib/assets/min/js/library/imagesLoaded.js.gzip
    
    wp-content/themes/Avada/includes/lib/assets/min/js/library/bootstrap.transition.js.gzip
    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @alohaaaron

    Thank you for the information.
    This should be uploaded by default. So the most likely problem is your setup as this should work “out of the box”
    Please check the screenshot below of the location of the CDN Page (I guess you already found it judging by the duplicate topic you opened) and please share the screenshot of the page.

    You can try by adding the path to the Performance>CDN>Custom file list however if you enabled Host theme files this should not be needed but it’s worth trying.
    Also, please do not open duplicate posts and keep the conversation in a single topic so we can avoid duplicating the answers.
    THanks!

    Thread Starter alohaaaron

    (@alohaaaron)

    Thanks Marko,
    Those boxes were all checked. I ended up adding custom file paths to get the files uploaded. I guess since the child theme is the active theme, the only content uploaded by default is from the active theme, though the bulk of the content is in the parent theme?

    {wp_content_dir}/themes/Avada/*.css
    {wp_content_dir}/themes/Avada/*.png
    {wp_content_dir}/themes/Avada/*.jpg
    {wp_content_dir}/themes/Avada/*.js
    {uploads_dir}/*.css

    A couple other questions.
    Is it possible to add more than one file type on a line in a custom path? Something like this?
    {wp_content_dir}/themes/Avada/*.css, *.png, *.jpg

    Also is there a recommended way to load the entire site into S3?
    Thanks!

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @alohaaaron

    Thank you for the information and I am glad that this solves the problem with uploading the files.
    The safest and most reliable way is to add the path for the files like you added, however, you can also use a placeholder and try adding different file extensions.
    As for your last question, are you referring to Full site delivery? Meaning to serve your entire websites from the AWS, and not just the static files?
    Thanks!

    Thread Starter alohaaaron

    (@alohaaaron)

    Thanks Marko,
    I’ll add paths for each type of file.

    For the other question, yes, I’d like to serve the entire website from AWS S3. It would be a static site though that would include the html files, etc.
    Thanks!

    • This reply was modified 5 years ago by alohaaaron.
    • This reply was modified 5 years ago by alohaaaron.
    Thread Starter alohaaaron

    (@alohaaaron)

    I’d like to serve the entire site using AWS S3. Is that possible with this plugin? Any challenges I should expect?
    Thanks!

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @alohaaaron

    Yes, you can serve the entire website from AWS. This is called FSD CDN.
    Once this is finished you can enable FSD CDN in W3 Total Cache and connect with the API secret key.
    Thanks!

    Thread Starter alohaaaron

    (@alohaaaron)

    Hello Marko,
    Will serving the entire website also work by using AWS S3 instead of FSD CDN?
    Thanks!

    Thread Starter alohaaaron

    (@alohaaaron)

    Hello Marko,
    Wordpress generates html content by processing php and mysql data. How will html be generated from AWS S3 if S3 is just a simple storage service and not built to process php and mysql data? I don’t see how an entire WordPress site can be hosted on AWS S3 using W3 Total Cache and/or FSD CDN because it cannot process php and mysql data. Am I missing a point?

Viewing 11 replies - 1 through 11 (of 11 total)

The topic ‘W3 total cache 403 errors using S3 bucket’ is closed to new replies.