• Resolved Megunticook

    (@megunticook)


    I’m trying to export my custom files to my CDN and the upload keeps getting stuck after uploading a portion of the files, saying “request failed.” It keeps retrying but always fails.

    I’ve isolated the problem to one of the plugin .js files (if I remove “{plugins_dir}/*.js” from the list of “custom files” then the problem disappears.

    Is there some way to identify the file that it’s getting stuck on? Is there a log somewhere?

    Why is this happening and what can I do to prevent it or at least work around it?

    Thanks.

    • This topic was modified 5 years, 3 months ago by Megunticook.
Viewing 8 replies - 16 through 23 (of 23 total)
  • I tried what @vmarko suggested initially. For me, the upload fails at:

    wp-content/plugins/woocommerce/assets/js/round/round.min.js

    When adding the plugins to the custom files, one by one, the upload fails only at that particular Woocommerce file. The file has not changed in 3 years.

    I wonder if the last Woocommerce update could have caused this. I am looking into it, but it’s a bit out of my element.

    Still not sure where is the “log”, @vmarko?

    Okay, so I messed around with different custom file directories:

    {plugins_dir}/woocommerce/*/*.js

    and the upload goes further, but stops again at another Woocommerce file.

    Then it occurred to me that Wordfence could be blocking W3TC from accessing too many directories/files at once.

    After disabling Wordfence, no error.

    Edit: Solution is whitelisting the URL and parameter in Wordfence.

    • This reply was modified 5 years, 2 months ago by jpb10.
    Thread Starter Megunticook

    (@megunticook)

    Sounds like you nailed it, thanks.

    But where in WF are you whitelisting the URL and parameter? Under Firewall Options>Whitelisted URLs?

    And what exactly is the URL, the parameter type, and parameter?

    /wp-admin/admin.php?page=w3tc_dashboard&w3tc_cdn_export&cdn_export_type=custom&_wpnonce=8412b0faef

    Thanks a lot.

    It was directly in Tools/Live traffic.

    I don’t have access to the control panel right now, but I think there’s a button for whitelisting each blocked activity.

    Thread Starter Megunticook

    (@megunticook)

    Sorry, I’m still not 100% clear on your solution. What URLs are you whitelisting to allow W3TC to upload those files to S3?

    Is it something like:

    /wp-admin/admin.php?page=w3tc_dashboard&w3tc_cdn_export&cdn_export_type=custom&_wpnonce=8412b0faef

    Appreciate your help.

    p.s. I tried the setting below in WordFence but it didn’t work. Am I close here?

    • This reply was modified 5 years, 2 months ago by Megunticook.
    • This reply was modified 5 years, 2 months ago by Megunticook.
    • This reply was modified 5 years, 2 months ago by Megunticook.
    Thread Starter Megunticook

    (@megunticook)

    Ah–I get it, you watched it happening in real-time and clicked the whitelist button as it was being blocked.

    I’ll give that a shot, thanks a lot.

    Thread Starter Megunticook

    (@megunticook)

    I managed to get all my custom files to upload to S3 by monitoring Live Traffic in WordFence and Whitelisting the activity as it was being blocked. Interestingly, I had to do this twice, and my whitelist rule doesn’t seem to match waht jpb10 has:

    But at least we have a workaround for the issue. Thanks again, jpb10! Much appreciated.

Viewing 8 replies - 16 through 23 (of 23 total)
  • The topic ‘“request failed” on custom files export to CDN’ is closed to new replies.