ATutor

Learning Management Tools







Pages:1 2 3 4 5 6 7 8 9 10 11 12 13 14 15


In File Storage 0 Bytes download


  • 2007-03-19 20:23:58

    In File Storage 0 Bytes download

    operating system - FreeBSD 4.7
    version of ATutor - 1.5.3.3
    versions of php - 5.0.4
    version of mysql - 4.1.11
    webserver & version - Apache 1.3.37
    changes to default settings - no
    web browser being used - IE6,7 Firefox, Netscape, Opera

    When I'm in 'File Storage' section, and try to download a file, the size of the downloaded file is 0 bytes. I've tried to delete the file and upload again, same problem. The file/directory permissions are ok.

    Any ideas?

    Thank you.
    Juan.

  • 2007-03-20 10:09:22

    Re: In 'File Storage' - 0 Bytes download

    Try editing the file.

  • 2007-03-20 10:44:39

    Re: In 'File Storage' - 0 Bytes download

    The edition works ok. I can modify descripcion, add comments, etc. and the changes are stored in the database. After editing the file, I tried again to download it but... same thing, 0 bytes downloaded.

  • 2007-03-21 13:16:11

    Re: In 'File Storage' - 0 Bytes download

    But when you edit the file can you see the file's contents?

    Rename it to a txt file so that you can edit it.

  • 2007-03-21 23:05:41

    Re: In 'File Storage' - 0 Bytes download

    No, I can't. The file is empty.

    I've also did some other tests..

    New File -> upload new.txt = ok
    Download new.txt = Failed (empty file)
    Edit new.txt = Failed (no text inside file)
    Delete new.txt = ok

    New File -> Create new file new.txt -> ok
    Download new.txt = Failed (o byte)
    Edit new.txt = Failed (0 byte)
    Delete new file = ok

    I hope this helps.

    Juan.

  • 2007-04-13 08:15:49

    Re: In 'File Storage' - 0 Bytes download

    If you are asking for help, provide lots of detail so problems can be reproduced.

    Things to describe:
    operating system -linux
    version of ATutor -1.5.3.3
    versions of php -5
    version of mysq l -4
    webserver & version -apache 1.37
    copies of error messages -no
    changes to default settings -no
    web browser being used -any
    and anything else relevant -

    I've been having the same problem. Now when I try to make assignment folders I can't put any due dates on them, even by using phpmyadmin and writing them directly into the database.

  • 2010-05-25 12:35:53

    Re: In 'File Storage' - 0 Bytes download

    Hi, I know that this post is old... but I'm having the same issue and in the forums I'm not getting a good answer.

    In the files structure I'm seeing contet1 contet2 contet3 ... contet105 ... contet203 directories and so on, when the number is the course id. Is this right ? I'm seeing some files on the directories and they seem to be good trough FTP, I mean that I can download them trough FTP and they are right.

    This thing happens to me on the production server (Linux and Apache) and if I try it local on the dev computer is the same (WinXP + Apache).

    Thanks for your time.

    Things to describe:
    Operating system ATutor is installed on - Linux 2.6.18
    ATutor version - 1.6.3
    Patch #s applied - 11
    ATutor theme name - CorporateBlue
    PHP version - 5.2.11
    MySQL version - 5.0.90
    Webserver & version - Apache 2

  • 2010-05-25 12:50:40

    Re: In 'File Storage' - 0 Bytes download

    You tried the creating and renaming txt file suggested above and still have the same result?

  • 2010-05-25 13:00:04

    Re: In 'File Storage' - 0 Bytes download

    Hi harris, thanks for your answer. Yes I tried.

    The first thing when I try to edit the file was this:

    <br />
    <b>Warning</b>: file_get_contents(/home/nsistema/public_html/edu/contentfile_storage/1/11) [<a href='function.file-get-contents'>function.file-get-contents</a>]: failed to open stream: No such file or directory in <b>/home/nsistema/public_html/edu/file_storage/edit.php</b> on line <b>182</b><br />

    I realized that the / after contet was missing so I edit the config.inc.php file to put the / but the problem is still going:

    <br />
    <b>Warning</b>: file_get_contents(/home/nsistema/public_html/edu/content/file_storage/5/15) [<a href='function.file-get-contents'>function.file-get-contents</a>]: failed to open stream: No such file or directory in <b>/home/nsistema/public_html/edu/file_storage/edit.php</b> on line <b>182</b><br />


    I have change chmod to 777 to contet directory and subdirectories but nothing yet.

    What could it be ?

    Thanks

  • 2010-05-25 13:03:56

    Re: In 'File Storage' - 0 Bytes download

    You are sure this file does exist?
    '/home/nsistema/public_html/edu/content/file_storage/5/15'?

  • 2010-05-25 13:09:07

    Re: In 'File Storage' - 0 Bytes download

    That folder do not exist... I guess that the script must create it when a file is uploaded or created, isn't it ?

    Thanks

  • 2010-05-25 13:13:42

    Re: In 'File Storage' - 0 Bytes download

    That's actually not a folder but the file itself. The filename and extensions are saved in the database and will be renamed upon download.

    If you are still experiencing this problem, try changing the owner of the content/ folder and ALL its children to apache or nobody instead of root.

  • 2010-05-25 15:29:47

    Re: In 'File Storage' - 0 Bytes download

    Hi harris, thanks again for your time.

    I've tried what you told me. With apache and nobody users the problem persist. I see that in the database seems to be good, but for some reason there is no files anywhere.

    What can I do?

    Thanks

  • 2010-05-25 15:38:40

    Re: In 'File Storage' - 0 Bytes download

    You are welcome.

    If files can not be stored onto your drive, then it's very likely a write permission problem. It could very well be an apache setting that you might have to adjust. Try looking into the php.ini, where you should have the following (or similar):

    ;;;;;;;;;;;;;;;;
    ; File Uploads ;
    ;;;;;;;;;;;;;;;;

    ; Whether to allow HTTP file uploads.
    file_uploads = On

    ; Temporary directory for HTTP uploaded files (will use system default if not
    ; specified).
    upload_tmp_dir = "C:\tmp"

    ; Maximum allowed size for uploaded files.
    upload_max_filesize = 128M

  • 2010-05-25 16:04:54

    Re: In 'File Storage' - 0 Bytes download

    Hi, the fileuploads is on. I'm not having problem with the limit, I'm testing with small files.

    The problem persist. I have tried changing chmod but nothing seems to work.

    By the way the instructors are not able to upload their profile pictures too.

    I will apreciate if you can give more information or a step by step.

    Thanks

  • 2010-05-25 16:45:40

    Re: In 'File Storage' - 0 Bytes download

    You mentioned that you have a production system earlier. Does it mean it was working before and somehow it stopped working? If so, did you upgrade your system or Apache? And if you did, then that would be the direction to go.

  • 2010-05-25 17:04:59

    Re: In 'File Storage' - 0 Bytes download

    What I was trying to mean is that there is a server on the Internet (the production server) that has the system. And I, on a virtual machine had another system with the same site. The Internet Server is a Linux OS with Apache and the virtual machine on my pc is a Windows OS with Apache too.

    I guess that the problem with the files has been always because all the instructors told me about the problem yesterday: tht feature never works.

    I have not made upgrades, just patches. And there is a lot of files that I have changed but they are in the gradebook module that I customized.

    Thanks for your time, do you need more information?

  • 2010-05-26 11:14:50

    Re: In 'File Storage' - 0 Bytes download

    2 things you'd like to check to narrow down the source of the problem:

    1. check your atutor content folder to see whether you have folders:

    [ATutor_content]/1/
    [ATutor_content]/2/
    ...

    1, 2 are folder names, check whether there are files in these folders.

    2. login as an instructor, go to "Manage" -> "File Manager", upload a text file and view its content once uploaded. Do you get error message?

  • 2010-05-27 11:59:14

    Re: In 'File Storage' - 0 Bytes download

    Hi cindy, thanks to join the conversation.

    The folders where not there. So I create them and I have uploaded a plain text file. If I click on the "Edit button" I see all the text in the file without problem. But, If choose download it just has the first 6 letters when the file is downloaded. Maybe the problem is not uploading, it must be downloading. What could it be ?

    Thanks

  • 2010-05-27 13:09:20

    Re: In 'File Storage' - 0 Bytes download

    What browser you are using? The problem persists in both IE and firefox?

  • 2010-05-27 13:45:45

    Re: In 'File Storage' - 0 Bytes download

    Hi cindy,

    Is the same on IE, FIrefox, Safari and Opera, I don't think that it could be a browser issue.

    Thanks

  • 2010-05-27 14:01:02

    Re: In 'File Storage' - 0 Bytes download

    Hope this would help:

    http://serverfault.com/questions/131156/user-receiving-partial-downloads

  • 2010-10-26 01:43:46

    Re: In 'File Storage' - 0 Bytes download

    Hello.
    I have the same problem too.
    Until one month ago my atutor site worked well, but since a week ago this problem (download 0 byte) appearse frequently.
    I have checked all issue until now.

    My system information is:
    Atutor Version 2.0.0
    PHP Version 5.2.14
    Apache Version: Apache/2.2.3 (CentOS)

  • 2010-10-26 08:43:48

    Re: In 'File Storage' - 0 Bytes download

    You should check with your internet service provider to see if anything has changed in the past week, and describe the problem you are having to them.

  • 2010-10-26 10:43:00

    Re: In 'File Storage' - 0 Bytes download

    If there isn't any modification done to your atutor code, it suggests that your host has done some server changes and you might want to consult them as well.

  • 2010-11-02 21:47:42

    Re: In 'File Storage' - 0 Bytes download

    hello. Thanks for your response.
    I install a fresh installation from ATutor 2.0.1 and tested download in file storage.
    All things was right and worked well.
    But when i exported old database and imported it to new installation (because i have many course and users), the same problem Was shown (download 0 byte).

    How can i understand what is the problem exactly?

  • 2010-11-03 14:01:50

    Re: In 'File Storage' - 0 Bytes download

    If you just export the old database and import it to the new one without going through the actual upgrade process. I don't think the /content folder get copied over and might introduce some problem?

  • 2010-11-06 07:49:02

    Re: In 'File Storage' - 0 Bytes download

    Yes I know and I moved content folder manually.
    But I do this just for test downloading process.
    And now I know that this problem (download 0 byte) is from database but I don't know whence of database.
    If I understand this, I can import all table of old database but the incorrect one. And all user and lesson recover.

    Tank you.

  • 2010-11-08 15:00:09

    Re: In 'File Storage' - 0 Bytes download

    I think you should copy the at_files, at_file_comments, and at_file_storage_groups.

    The files in the file_storage are stored in content/file_storage/[course_id]/[file_id].

    When you perform a download, the system will use these information to fetch the file from the database through the get.php script.

    If you are having problem with it, then debug from the get.php.