WordPress.org

Forums

Front End Upload
Can't download from email after update (8 posts)

  1. solidusv1
    Member
    Posted 2 years ago #

    I seem unable to download the files that have been uploaded. I get a page with some errors and garbled text. Error is as follows:

    'Warning: filemtime() [function.filemtime]: stat failed for andersonLAVAfs711waxup_cad.stl in /home/content/03/8970103/html/wp-content/plugins/front-end-upload/front-end-upload.php on line 846

    Warning: Cannot modify header information - headers already sent by (output started at /home/content/03/8970103/html/wp-content/plugins/front-end-upload/front-end-upload.php:846) in /home/content/03/8970103/html/wp-content/plugins/front-end-upload/front-end-upload.php on line 846

    Warning: Cannot modify header information - headers already sent by (output started at /home/content/03/8970103/html/wp-content/plugins/front-end-upload/front-end-upload.php:846) in /home/content/03/8970103/html/wp-content/plugins/front-end-upload/front-end-upload.php on line 847

    Warning: Cannot modify header information - headers already sent by (output started at /home/content/03/8970103/html/wp-content/plugins/front-end-upload/front-end-upload.php:846) in /home/content/03/8970103/html/wp-content/plugins/front-end-upload/front-end-upload.php on line 848

    Warning: Cannot modify header information - headers already sent by (output started at /home/content/03/8970103/html/wp-content/plugins/front-end-upload/front-end-upload.php:846) in /home/content/03/8970103/html/wp-content/plugins/front-end-upload/front-end-upload.php on line 849

    Warning: Cannot modify header information - headers already sent by (output started at /home/content/03/8970103/html/wp-content/plugins/front-end-upload/front-end-upload.php:846) in /home/content/03/8970103/html/wp-content/plugins/front-end-upload/front-end-upload.php on line 850

    Warning: Cannot modify header information - headers already sent by (output started at /home/content/03/8970103/html/wp-content/plugins/front-end-upload/front-end-upload.php:846) in /home/content/03/8970103/html/wp-content/plugins/front-end-upload/front-end-upload.php on line 851

    Warning: Cannot modify header information - headers already sent by (output started at /home/content/03/8970103/html/wp-content/plugins/front-end-upload/front-end-upload.php:846) in /home/content/03/8970103/html/wp-content/plugins/front-end-upload/front-end-upload.php on line 852'

    http://wordpress.org/extend/plugins/front-end-upload/

  2. solidusv1
    Member
    Posted 2 years ago #

    I apologize for the lack of info. To give a bit more information: This is happening after the file has been successfully uploaded and I receive the alert email with the download link. When I click the download link provided in the alert email, that error and code pops up.

    The files themselves are there...I downloaded one and renamed it to the proper extension and it worked. However, the names are being lost. I found the code in the .php file that seems to be causing it...but I am unsure how to move forward with fixing it. Any help would be appreciated.

  3. cyberianfrontier
    Member
    Posted 2 years ago #

    I ran into this problem today and found your post while searching for a solution.

    As best I can tell, this is a bug. All those errors you are seeing are the result of a single error on line 846 of:

    wp-content/plugins/front-end-upload/front-end-upload.php

    That line of code is trying to get the last modified info for the file that you are trying to download. The problem is that it's trying to get that info for the original filename. That file doesn't exist because the front end uploader changes the filename to a hash for security reasons.

    I was able to fix this issue on the site that I'm working on by making this simple change:

    On line 846 change $filename to $filepath and I think you'll find that your files will download properly.

  4. acrobate67
    Member
    Posted 2 years ago #

    I ran into the same problem and cyberianfrontier's solution worked for me. Thanks a lot !

  5. mainstreetstores
    Member
    Posted 2 years ago #

    Here is the Code to be Altered:

    header ( 'Last-Modified: ' . gmdate ( 'D, d M Y H:i:s', filemtime ( $filename ) ).' GMT' );

    header ( 'Last-Modified: ' . gmdate ( 'D, d M Y H:i:s', filemtime ( $filepath ) ).' GMT' );

    This allowed me to transfer a 8meg PSD... and it worked..

    PLEASE NOTE, i do not know if there is any Security issues with this change, but, it worked for me.

  6. sethpartridge
    Member
    Posted 2 years ago #

    @cyberianfrontier Great fix! Worked for me.

  7. mariosm18
    Member
    Posted 1 year ago #

    Greatt!!! worked for me to, I had problems opening the file after receiving the email, it was corrupted in some way. But after the change on the $filename-$filepath I had no problems.

  8. stevenwolffy@gmail.com
    Member
    Posted 1 year ago #

    Thank you, this fix worked great for the file corruption errors I was getting. weird, because it was only happening on one of my wordpress sites.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Front End Upload
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic