Tagged: 

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #44936
    Site Admin
    Guest

    Hello,

    The Custom File List feature for the CDN does not work properly. With the default list of custom files below, when the Upload Custom Files button is clicked, the upload page shows 1853 files to upload:
    favicon.ico
    {wp_content_dir}/gallery/*
    {wp_content_dir}/uploads/avatars/*
    {plugins_dir}/wordpress-seo/css/xml-sitemap.xsl
    {plugins_dir}/wp-minify/min*
    {plugins_dir}/*.js
    {plugins_dir}/*.css
    {plugins_dir}/*.gif
    {plugins_dir}/*.jpg
    {plugins_dir}/*.png
    However, when the following is added, the number of files to upload does not change, even though there are other files existing in
    {wp_content_dir}/uploads/*
    If the entire list is removed then the number of files to upload shows 0, so the list is working, but it does not add files that are not included by default. This is a MAJOR limitation as any (mdeia) files that are uploaded would be better servced using the CDN.

    Also after the CDN debug option is checked (and the setting saved), nothing is added to the source code of the pages. Please explain how to correct these issues.

    Thank you.

    #44955
    Marko Vasiljevic
    Keymaster

    Hello,

    Thank you for using W3 Total Cache.
    I am sorry about the issue you are experiencing and I am happy to assist you with this.
    In order to assist you with this properly, I need to ask for some more details.
    1. How did you integrate Local CDN with W3 Total Cache? Which CDN type have you used in Performance>General Settigns>CDN? Generic mirror or Self-hosted?
    2. Can you please share the website URL? (If you have a problem with being public, I’ll make sure to remove the link before your reply is approved)
    3. As for the debug problem, if you have HTML minify enabled in Perfomance>Minify, most likely the HTML snippet is removed.
    4. If you are using Self-hosted CDN, can you please confirm that SSH2 extension is installed and also the FTP functions
    You can disable HML minify in that case, save all settings and purge the cache to see the output simply add “Performance” to Ignored comment stems:
    I hope this helps and please provide more details.
    Thanks!

    #44956
    Site Admin
    Guest

    Hi Marko,

    Thanks for your insight and assistance. In response to your questions:

    1. Self-hosted/FTP

    2. URL removed

    3. You are correct, debug output works now. However it does not show any debug info, just the active W3TC components and CDN URLs.

    4. Test FTP Server = Test passed
    SSH2 extension: Not detected (required for Self-hosted (FTP) CDN SFTP support)
    Using FTP not FTPS since self-hosted CDN is local. Is there any reason not using FTPS (or SSH2 not detected) would cause the Custom File List feature to not work?

    In short, everything seems to work as expected (so far, still testing), except the Custom File List feature.

    Thank you.

    #45011
    Marko Vasiljevic
    Keymaster

    Hello,

    Thank you for the information.
    Just to confirm, all files are uploaded except the files listed in the Custom files list?
    Have you tried just adding the path to a single file and see if it gets uploaded? For example:
    /wp-content/gallery/some-image.jpeg?
    Thanks!

    #45018
    Site Admin
    Guest

    > Just to confirm, all files are uploaded except the files listed in the Custom files list?
    No, the files in the default Custom List upload as expected. It is only files that are added to the default list that do not upload. For example
    {wp_content_dir}/uploads/*

    >Have you tried just adding the path to a single file and see if it gets uploaded?
    I just tried to upload with only 1 added file path (to a jpg image), and it says 0 files to upload, so no, that does not work. It is simply not recognizing any user inputs.

    #45043
    Marko Vasiljevic
    Keymaster

    Hello,

    Thank you for the information.
    Let me double-check this and I’ll get back to you once I have more details.
    Thanks!

    #45612
    Site Admin
    Guest

    Hi Marko,

    Has there been any progress in discovering the cause of this issue?

    Thank you.

    #45615
    Site Admin
    Guest

    Hi again Marko,

    OK, I found the problem. It was actually my error in the following setting:
    FTP path: Specify the directory where files must be uploaded to be accessible in a web browser (the document root).
    To explain, I have been testing this on another site, but this site is not at the root level (I.E. WordPress is installed in a sub-directory on this site), and I failed to add the sub directory to the FTP path.

    Sorry if I wasted your time. Maybe this well help someone else who makes the same mistake.

    Thanks again.

    #45661
    Marko Vasiljevic
    Keymaster

    Hello,

    I was unable to replicate this so I kept testing to see what may be causing this.
    Thank you very much for the information and I am glad to know the problem is resolved!

Viewing 9 posts - 1 through 9 (of 9 total)
  • The topic ‘Local CDN custom files not uploaded’ is closed to new replies.