• Resolved Rubenzella

    (@rubenzella)


    Hi there,

    I have some zip files available to be downloaded, and they are password protected using the WordPress built-in feature.
    I added the zip file to the allowed types within the function.php in my child theme.

    When I test it, it works till when the download should start, but I get a network error (I am using Chrome).

    Couldn’t find any reference in the KB or in the forum.

    Any help, please?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hey @rubenzella,

    Thanks for reaching out to us.

    I regret to say I did not understand your question. How did you add password protection to a zip file using WordPress?

    Secondly, what is the size of the zip file?

    Thread Starter Rubenzella

    (@rubenzella)

    I set a password in the visibility option where you publish or update posts.

    WP built-in password protection

    The zip files range from 1 to 6MB. There should not be any problem with PHP restrictions at these sizes, as far as I know.

    Hey @rubenzella,

    Would it be possible for you to test a download where the file size is just few KB?

    Thread Starter Rubenzella

    (@rubenzella)

    I uploaded a 14KB zip file, password protected. When I click on it to download, a new page loads asking for the password and when I hit enter I get a blank page: no errors, no downloads starting, nothing.

    I then checked the other downloads and I get the same outcome, not even network error anymore. I see action=postpass on the URL.

    I created a new post, added via Gutenberg the download link to this 14KB file without password protection, tested, and worked. I added another file (3MB size), not protected, and I got network error.
    I went back to the page where my larger file is (3MB), got rid of the password protection, tested, and I got network error. The other files, still protected, gave me a blank page.

    I suppose it’s better to mention that to style the download button, I’m using a third-party plugin with elementor.

    Hey @rubenzella,

    I apologize for the delay in replying.

    I doubt this could be related to the “Elementor” plugin. I would recommend checking your server logs, especially “PHP, Apache/Nginx” to see if any errors are logged exactly after you see network error.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Network error’ is closed to new replies.