Results 1 to 5 of 5

Thread: Cannot upload Documents

  1. #1
    mickster is offline Sugar Community Member
    Join Date
    Jan 2007
    Posts
    14

    Default Cannot upload Documents

    I have recently upgraded to 4.5.1g

    Since then, I cannot save documents to exisiting files/ locations.
    I also cannot save new documents.

    I do get this error:

    DocumentsDocumentsERROR: can't move_uploaded_file to cache/upload/3e0c5df4-d79c-11b1-b7d3-4725eb50b209. You should try making the directory writable by the webserver

    I have restarted my Apache , no change.

    I have attempted to go in and make the directories read/write.

    Nothing seems to make a difference.

    I am using Windows 2003 Server , Sugar Commercial Suite 4.5.1g, Apache 2.0.59 , MySQL server 5.0 , PHP 4.4.3

  2. #2
    kuske's Avatar
    kuske is offline Sugar Community Member
    Join Date
    Oct 2007
    Location
    Germany
    Posts
    2,597

    Default Re: Cannot upload Documents

    Please check in Windows Task manager under which user name your apache is running.
    This user or a group, the user belongs to, must have full access to the sugar directory.


    regards
    hk

  3. #3
    mickster is offline Sugar Community Member
    Join Date
    Jan 2007
    Posts
    14

    Default Re: Cannot upload Documents

    It is being run by "system".

    I have also tried it running under "Administrator"

    "System" and "Administrator" has full access and rights to the Apache and Sugar Directory.

    I've made no changes to any privilages for any user , or on any directory.

    Any other ideas?

    =========

    Edited to add Admin information
    Last edited by mickster; 2007-10-29 at 03:03 PM.

  4. #4
    kuske's Avatar
    kuske is offline Sugar Community Member
    Join Date
    Oct 2007
    Location
    Germany
    Posts
    2,597

    Default Re: Cannot upload Documents

    Perhaps you can add two logging calls in function final_move in module include\upload_file.php like this:

    function final_move($bean_id) {
    global $sugar_config;

    $GLOBALS['log']->FATAL("upload1#".$_FILES[$this->field_name]['tmp_name']);
    $GLOBALS['log']->FATAL("upload2#".clean_path($this->get_upload_path($bean_id)));

    $destination = ...

    upload#1 should show the temp-filename of the upload and upload#2 shows the final name in cache/upload.

    If the temp-filename is on an other disk than the final destination, it should be possible that the php function move_uploaded_file does not work correctly.
    Other possible problem: the directory of upload#1 is not writable for apache.

    good luck
    hk

  5. #5
    mickster is offline Sugar Community Member
    Join Date
    Jan 2007
    Posts
    14

    Default Re: Cannot upload Documents

    Thanks for the help, hk-

    Before I was able to attempt your fix, I tried somethings I saw in other threads.

    What *might* have been the problem was that the size of the upload in the php.ini file was set to 40. I had previously increased that from 20, due to a problem uploading a module.

    I changed the size to 80, and the file then would upload.

    I'm thinking that could have been the problem, because changing the global permissions didn't seem to do anything.

    Again, thanks for the quick responses!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Cannot see documents after upgrade
    By mgreis in forum Installation and Upgrade Help
    Replies: 0
    Last Post: 2007-07-30, 01:38 PM
  2. Can upload, but not download documents
    By ansgar in forum Help
    Replies: 6
    Last Post: 2006-05-25, 06:28 AM
  3. Replies: 2
    Last Post: 2005-11-24, 08:42 AM
  4. upload documents
    By denisr in forum General Discussion
    Replies: 4
    Last Post: 2005-02-22, 01:57 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •