WordPress.org

Support

Support » Plugins and Hacks » [Plugin: user files] Several problems with the plugin

[Plugin: user files] Several problems with the plugin

  • This is my report of what happened to me while trying to use the plugin.

    1. I was unable to create categories. No errors nor warnings. Simply entered the name and nothing seemed to happen after that
    2. I was able to upload files to the correct users but once those users tried to download them, a 404 not found error was shown although the files were indeed on the folders where they said they would be

    I will attempt to solve this issues myself since I really need something like this. If I do, I will post a new version and mention it here.

    http://wordpress.org/extend/plugins/user-files/

Viewing 15 replies - 1 through 15 (of 35 total)
  • Plugin Author Scriptonite

    @scriptonite

    What is the version of the plugin you are using?

    Latest version of the plugin. If you need any more specific info let me know and I will happily provide it.

    Plugin Author Scriptonite

    @scriptonite

    seems to be an issue with table creation and headers. Can you tell me what plugins you have on your site? Also, have you received a message after updating that said the plugin was updated?

    I can’t seem to re-create this error on any test sites and the plugin is fine on our main site. It could be a conflict with another plugin when the header info is set.

    Sure, these are my plugins:

    1. Broken Link Checker
    2. Cforms
    3. All in one SEO pack
    4. Constant Contact API
    5. Custom Login Pages
    6. Events Manager Extended
    7. Featured Content Gallery
    8. Cufon
    9. Google Sitemap Generator
    10. Google Analytics for WordPress
    11. JJ Nextgen Jquery Carousel
    12. My Calendar
    13. Nextgen Gallery
    14. Search and Replace
    15. Search Suggest
    16. Secure WordPress
    17. Sitemap Generator
    18. Tweet Blender
    19. Update Notifier
    20. Video Widget
    21. Widget logic
    22. Wordress importer
    23. WP invoice
    24. WP minify
    25. WP paginate

    I ended up for the time being using user_files for the user functionality but mostly because I needed to cover the need for the time being. If you need more info and need for me to look into the db or need for me to run some sort of debug, let me know. I am a developer and there is nothing more frustrating than not being able to replicate.

    My original idea was to debug this myself but got caught up and didnt have time for it yet.

    Plugin Author Scriptonite

    @scriptonite

    Yeah, i have been busy as well, thats why this has been a bit buggy. I just pushed an update fixing the 404 error. I still can’t replicate the category issue.

    The plugin creates 3 tables, userfiles_category,userfiles_cats, and userfiles_icons. If the tables can’t be found then the plugin is installed again. Check to make sure the tables are there. If it upgrades properly automatically you should see a message saying the update was completed. You can also try deactivating and re-activating the plugin. If this doesn’t fix it I will try to look at it again this weekend.

    I will re download, install and test again and let you know how it goes. It might take a few days but be sure I will get back to you on this.

    As promised, I tested once again.
    Version: 2.0.7 downloaded today.

    ISSUE 1: CATEGORIES

    I am unable to create them. I do have the tables in my db but nothing is being added when I submit a category. Table categories is empty.

    ISSUE 2: FILE DOWNLOAD

    The files are uploaded correctly and saved correctly. Download no longer causes a 404 but the file downloaded has 0 bytes. Tested with a doc and a txt file and it happened both times. When I opened the files saved on the file_uploads folder the files were fine.

    Maybe some plugin is being conflictive. Anyway, thanks for trying. If I happen to debug it, I will let you know.

    i have some problem how clauz 🙁

    ISSUE 1: CATEGORIES and ISSUE 2: FILE DOWNLOAD :\

    wp 3.2.1 + user file 2.0.7

    how we can fix it ?? 🙁

    Hello Everyone,

    Even i am using wp 3.2.1 and user file 2.0.7 . I can create the category. But am having problems on File Download option. Also user can not delete the uploaded file whether admin can delete a file.

    The files are getting uploaded fine on user’s folder, but there is no category on this folder (for eg. the file path is /uploads/file_uploads/55/abc.doc). After downloading, its showing 0 bytes.

    Hello everyone,

    I have fixed few issues. Here goes those.

    1) Delete file (for user):

    On functions.php file i edited the manage_files_function function.
    Added $file_path=$upload_dir[‘basedir’].’/file_uploads/’.$current_user->ID .’/’.$_GET[‘deletefile’];

    And called the variable on unlink.

    Thats it and fixed the issue. Though, it should work as it was coded earlier by original developer. But i have no idea why it was not working.

    2) Download of files (for normal user) :

    a)
    Modified this two lines on functions.php (line 40)

    $dnlLink = curPageName().’?page=manage-files-user&theDLfile=’.$Thefile;
    $DelLink = curPageName().’?page=manage-files-user&deletefile=’.$Thefile;

    b)

    On user_files.php modified function getDownloads() .

    Firstly, the if condition was wrong . It will be if(!$file) ..

    Secondly, inside the else of above if loop add this .

    $full_file_path=trim($url.$file);

    And call that on readfile($full_file_path);

    Also i am not using this header(‘Content-Length: ‘ . filesize($file)); as its returning 0 bytes each time.

    thus the user can download the files.

    Working on Download option from admin panel.

    Fixed the other issue regarding Admin download option…

    Steps:

    1) On ListAdminFiles function (functions.php page) replaced old download link with the below line inside <td>

    2) On getDownloads function (user_files.php page) added the below lines after get_currentuserinfo();

    $theDLfile=$_GET[‘theDLfile’];

    $theDLfile_array=explode(“/”,$theDLfile);

    $num=count($theDLfile_array);

    if($num==1)
    {
    $file = $_GET[‘theDLfile’];

    $url=$upload_dir[‘baseurl’].’/file_uploads/’.$current_user->ID .’/’;

    }
    else
    {
    $file = $theDLfile_array[1];

    $url=$upload_dir[‘baseurl’].’/file_uploads/’.$theDLfile_array[0] .’/’;
    }

    This is how i fixed the issues.

    Also there was an issue regarding file names. If the file name is “abcd efgh.doc” , there will be an error for the space. So, i used str_replace on upload option. This will have to use on bothe the files.

    Anyways, thanks to the original developer for this nice plugin. Helped me a lot and saved my time.

    I have been trying to get the download feature of this plugin to work for quite some time. Unfortunately, I am a designer first and a programmer second.

    dev123, is there any way you would e-mail your revised plugin? I just don’t fully understand what I am modifying.

    Thanks in advance.

    Hello DES_mon,

    Yes, of course i can email you the revised plugin. Let me know your email address.

    Thanks so much dev123!

    You can send it to dsirak@gmail.com.

    having a problem downloading a pdf file as a user.

    as the admin i can upload the pdf file fine, but when a user tries to get the pdf file from their account (widget sidebar) the pdf downloads as a corrupt file. i think the relationship between the pdf file and expected mime type is wrong. please help. thanks

    latest version of plugin and wordpress.
    thanks, paul L

Viewing 15 replies - 1 through 15 (of 35 total)
  • The topic ‘[Plugin: user files] Several problems with the plugin’ is closed to new replies.