• Hi @kusimo,

    When I upload a file for the first time – it lets you download only an empty file when clicking on the button. Here is what is inside the file:

    Warning: readfile(): Filename cannot be empty in /home/customer/www/website.com/public_html/wp-content/plugins/quick-download-button/class/download.class.php on line 47

    When I reupload the same file from the library, it works fine. So it appears that I need to upload the file two times.

    How can I fix it? Thanks

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Abidemi Kusimo

    (@kusimo)

    Sorry you are experiencing issue with the plugin, try to using short code to see if this work for example:

    [quick_download_button title="Download" url="https://yoursite/wp-content/uploads/09/file_name.jpg"]
    

    Also try to add the file again if you are using block. Let me know if you are still experiencing the issue. You can see in this video how the button is added – https://www.youtube.com/watch?v=cdVoCJf4rt8

    Please let me know if the issue persists.

    Thread Starter tdcenter

    (@tdcenter)

    I have already created a few resuable blocks with your button. Once I need button1, I add it as a reusable block and then I detach pattern and it has been working perfectly before.

    But following the very same steps, it works differently now. I don’t use the code as I manually add buttons as resuable blocks to many pages for each new file to download.

    Plugin Author Abidemi Kusimo

    (@kusimo)

    Sorry you are having this issue, what version of WordPress are you on? I’m not getting the error at my end. I’m looking into it.

    Thread Starter tdcenter

    (@tdcenter)

    It’s WordPress 6.3

    Thread Starter tdcenter

    (@tdcenter)

    One theory is that I have accidentally deleted the QDB page before (but later I re-enabled the plugin) and somehow the problem is related to it

    Plugin Author Abidemi Kusimo

    (@kusimo)

    Sorry @tdcenter I’m still not able to reproduce the error. Try to delete the QDB page you created (also delete it from the bin), deactivate the plugin and then activate it again.

    This will create the QDB page – the reason being a page ID is stored for the page when the plugin creates it.

    Thread Starter tdcenter

    (@tdcenter)

    I tried it, but still, I need to upload the same file twice to be able to download it. If I open the QDB page, it says, “Sorry, your nonce did not verify.”

    Is it something I should pay attention to?

    • This reply was modified 8 months ago by tdcenter.
Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Empty file downloading’ is closed to new replies.