WordPress.org

Ready to get started?Download WordPress

Forums

user files
Several problems with the plugin (36 posts)

  1. clauz
    Member
    Posted 2 years ago #

    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/

  2. Scriptonite
    Member
    Plugin Author

    Posted 2 years ago #

    What is the version of the plugin you are using?

  3. clauz
    Member
    Posted 2 years ago #

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

  4. Scriptonite
    Member
    Plugin Author

    Posted 2 years ago #

    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.

  5. clauz
    Member
    Posted 2 years ago #

    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.

  6. Scriptonite
    Member
    Plugin Author

    Posted 2 years ago #

    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.

  7. clauz
    Member
    Posted 2 years ago #

    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.

  8. clauz
    Member
    Posted 2 years ago #

    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.

  9. benjo2412
    Member
    Posted 2 years ago #

    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 ?? :(

  10. dev123
    Member
    Posted 2 years ago #

    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.

  11. dev123
    Member
    Posted 2 years ago #

    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.

  12. dev123
    Member
    Posted 2 years ago #

  13. DES_mon
    Member
    Posted 2 years ago #

    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.

  14. dev123
    Member
    Posted 2 years ago #

    Hello DES_mon,

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

  15. DES_mon
    Member
    Posted 2 years ago #

    Thanks so much dev123!

    You can send it to dsirak@gmail.com.

  16. dj10bear
    Member
    Posted 2 years ago #

    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

  17. Scriptonite
    Member
    Plugin Author

    Posted 2 years ago #

    Seems there are a handful of users having issues with corrupt downloads. I am working to track down the problem, however i am unable to duplicate the issues on our primary site or any or the 3 test sites I have used. Without being able to replicate the corruption issues it has been hard to fix. I apologize for those of you having issues.

  18. zenig
    Member
    Posted 2 years ago #

    I am having the same issues as the other users above. If I use Internet Explorer as a normal user to download a file, it works fine. But if I use Firefox or Chrome, it downloads the file with 0 bytes. I hope that bit of information helps in the resolution.

  19. alparch
    Member
    Posted 2 years ago #

    Scriptonite:
    I will happily provide you a login to a userfile page on my website if you think it would help you evaluate the download problem. I have client downloading PDFs daily, with no problems; but I have no success with Microsoft Office products. Luckily, we are primarily PDF based, but this would be a perfect plugin if I could share other file types!

  20. dev123
    Member
    Posted 2 years ago #

    Hello everyone,

    Sorry, i was not able check the forum posts earlier. If anybody require any help for this plugin from me, feel free to post here. I will try to help you all (if the original developer has no issue with this).

    DES_mon, are you still having problem eith the plugin or fixed that? sorry, i was out of station. So, could not get back to you.

  21. DES_mon
    Member
    Posted 2 years ago #

    No problem dev123. Yes, still haven't been able to crack it. If you could send me those files, that would be awesome! Thanks for your help.

  22. Scriptonite
    Member
    Plugin Author

    Posted 2 years ago #

    Any help would certainly be appreciated. I have been extremely busy and have not had the time to fix the download issues. It is not on all sites or computers or browsers, so it has been difficult to track down. I am in the process of re-writing the download function and adding some download security as well. If you have a working function you can post it and I'll add it into the update. Drop me your info via our website and we'll put up a credit and link to you as well. Thanks.

  23. dev123
    Member
    Posted 2 years ago #

    Hello Scriptonite,
    It will be a great honor for me. Also, i thank you for this great plugin.

    Where do i need to post the file and my info? Can you give the link or any email address?

    Thanks.

  24. Scriptonite
    Member
    Plugin Author

    Posted 2 years ago #

    You can send everything via email if you would like, tom at whereyoursolutionis.com. Thanks again for the help.

  25. dev123
    Member
    Posted 2 years ago #

    Hello Scriptonite,

    I have sent you the working plugin at the above mentioned email address.

    Thanks.

  26. benjo2412
    Member
    Posted 2 years ago #

    hi,
    i have big problem with this beautyful plugin ..
    on internet explorer download files works, but on chrome firefox and safari, files download are 0 kbs :((

    how i can fix it ???
    There is a new version ?? where?
    Thanks

  27. MikeHawk
    Member
    Posted 2 years ago #

    Hello,
    I had a problem with downloading file for simple users due to incorrect URL. I have no domain name and use direct ip address for site. Modifying function curPageName() help me:

    $port = ($_SERVER["SERVER_PORT"] == "80") ? "" : (":".$_SERVER["SERVER_PORT"]);
    return $protocol . "://" . $_SERVER['HTTP_HOST'] . $port . $_SERVER['REQUEST_URI'];

  28. Missweblash
    Member
    Posted 2 years ago #

    The plugin installs fine and appears to work ok (the UI is working for user and admin) BUT....

    I see this error at the top of every page where the plugin is used, and in the "Managed Files" view:

    Warning: file_get_contents() [function.file-get-contents]: URL file-access is disabled in the server configuration in /homepages/19/d390752567/htdocs/wp-content/plugins/user-files/user_files.php on line 1516

    Warning: file_get_contents(http://www.whereyoursolutionis.com/ads/userfiles.html) [function.file-get-contents]: failed to open stream: no suitable wrapper could be found in /homepages/19/d390752567/htdocs/wp-content/plugins/user-files/user_files.php on line 1516

    Although the plugin appears to upload files for user pages, and also appears to download them, ALL filetypes are corrupted - JPEG, EPS, DOC, TXT.

    On "Manage Files" in admin mode, the UI appears to let me upload a file for a selected user, but the file does not get uploaded at all.

    I added these to my php.ini:

    memory_limit = 100M
    upload_max_filesize = 192M
    post_max_size = 100M
    file_uploads = On
    allow_url_fopen = On
    allow_url_include = On

    Is there something else I need to change?

    Sorry, I am a content manager not a developer, so I need a little help with this!

    Thank you very much :)

    Sorry I forgot to say that I use:

    WordPress 3.2.1
    PHP5
    The latest version of this plug in (downloaded and installed today)

  29. Scriptonite
    Member
    Plugin Author

    Posted 2 years ago #

    You are most likely getting that error because cURL is disabled. It should not effect the usage of the plugin other than giving the error message every time the page loads for file manager admins.

    There are still some download issues on some servers/browsers. I have not been able to pin it to a single instance, however, I am upgrading this plugin to include several workarounds and bug fixes for the instances we have run into so far. Please be patient as I have not had a lot of time to work on this plugin. I have some modifications posted by dev123 I would be happy to send you. They work for him, however they are built on an older version of the plugin. You can also create an admin login and I can log in and check it later this week for you and take a look at it.You can contact email me tom at whereyoursolutionis.com for direct help.

  30. zenig
    Member
    Posted 2 years ago #

    Okay, I just loaded Dev123's update and here are my findings:

    - Chrome v15: File downloads via the widget and admin section work properly with "ABC.pdf" and "A B C.pdf".

    - Firefox v8: File downloads via the widget and admin section work properly with "ABC.pdf" and "A B C.pdf".

    - IE 8: File downloads via the widget and admin section DON'T WORK properly with "ABC.pdf" and "A B C.pdf".
    - Downloading from admin give this error: "The file is damaged and could not be repaired. Local\EWHdl'0v!9u"
    - Downloading from widget gives this error: "There was an error opening this document. The file is damaged and could not be repaired."

    - IE 9: File downloads via the widget and admin section DON'T WORK properly with "ABC.pdf" and "A B C.pdf".
    - Downloading from admin give this error: "There was an error opening this document. The file is damaged and could not be repaired."
    - Downloading from widget gives this error: "Adobe Reader could not open 'client-login.pdf" because it is either not a supported file type or because the file has been damaged (for example, it was sent as an email attachment and wasn't correctly decoded)." It is saying 'client-login.pdf' even though I was downloading 'ABC.pdf', interesting...

    I sure hope this information helps. If I can test anything else, let me know.

    Thanks.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags