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?
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?
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.