WordPress.org

Forums

wp-FileManager
[resolved] Download problem: code added to the end the file (6 posts)

  1. Diana
    Member
    Posted 1 year ago #

    I had this happen several times yesterday and today. I thought I had done something wrong but I have now used some time to check this out. This has happened on two different wordpress sites, one with 3.5.1 and the other 3.8.1.

    When I downloaded a file, additional code was added to the end/bottom of the file. It looks like it is the entire generated source code for the WP-File Manager page that I download from.

    I can work around this by copying edited code and pasting it directly in editing area in WP File Manager but this can cause big problems if one isn't aware of this. Hope you can look into this and find a fix for this problem. I really need this plugin because I unfortunately am not allowed direct access to my files.

    https://wordpress.org/plugins/wp-filemanager/

  2. anantshri
    Member
    Plugin Author

    Posted 1 year ago #

    Like i already said this is occuring in specific setup's. I will need more information about setup then only will be able to weed out the issue. I did remember adding a specific check to stop this problem.

    At this point i have other priorities in life and next update i am only planing after april 2014 so expect this to be solved in it. (i will try my best to add more checks on this but if i can't replicate the issue i can't be sure that it is patched.)

    BTW you can try this code block

    change
    wp-filemanager.php
    change line no 119 :
    readfile($fullpath);
    to below code.
    (I have added a exit(); after line 119)

    readfile($fullpath);
    	exit();
  3. anantshri
    Member
    Plugin Author

    Posted 1 year ago #

    -reducted- updated in upper post

  4. Diana
    Member
    Posted 1 year ago #

    Hei Anantshri. Making the change in code you suggested worked. Files are now downloaded properly - no added code at the end. Thanks a lot for your help.

  5. anantshri
    Member
    Plugin Author

    Posted 1 year ago #

    Cool.
    I have added that in code next release will have this fix.

  6. iz65535
    Member
    Posted 5 months ago #

    can you pls. tell when new version is planned ? i had this issue too...

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • wp-FileManager
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.