Results 1 to 5 of 5

Thread: Version 5.2a document upload problem

  1. #1
    haffu is offline Member
    Join Date
    Mar 2009
    Posts
    5

    Default Version 5.2a document upload problem

    Hi,

    We installed sugarCRM community Version 5.2a and the installation went without problems. However when I started to check is everything working right I runned to this problem.

    When I try to upload new document I get this error

    "Query Failed:INSERT into document_revisions set id='ec212c3c-1a0d-b63e-9ba7-49ae6955ca56', change_log='Document Created', document_id='e736d94f-9014-b800-460e-49ae69d1e835', date_entered='2009-03-04 11:42:41', created_by='1', revision='2', deleted='0', date_modified='2009-03-04 11:42:41'::MySQL error 1364: Field 'filename' doesn't have a default value"

    Seems like there is a bug somewhere in the software.

    Have somebody having this problem also? Any ideas how to fix it?

    -H

    PHP built On: Windows NT CT2291 5.2 build 3790
    Database Version: 5.1.30-community (MySQL)
    PHP Version: 5.1.6
    Web Server: Microsoft-IIS/6.0
    Last edited by haffu; 2009-03-04 at 11:21 AM.

  2. #2
    crmsiva's Avatar
    crmsiva is offline A Sugar Hero
    Join Date
    Jan 2009
    Location
    Chennai, India
    Posts
    1,130

    Default Re: Version 5.2a document upload problem


  3. #3
    haffu is offline Member
    Join Date
    Mar 2009
    Posts
    5

    Default Re: Version 5.2a document upload problem

    Thanks for your idea but I don't think this is MySQL-error.

    Database table document_revisions have the field "filename" and it's marked as "not null".

    Now if we check the insert sentence we can see that there is set
    id, change_log, document_id, date_entered. create_by. revision, deleted, date_modified but not input for filename.

    INSERT into document_revisions set id='ec212c3c-1a0d-b63e-9ba7-49ae6955ca56', change_log='Document Created', document_id='e736d94f-9014-b800-460e-49ae69d1e835', date_entered='2009-03-04 11:42:41', created_by='1', revision='2', deleted='0', date_modified='2009-03-04 11:42:41

  4. #4
    sanjaykatiyar1's Avatar
    sanjaykatiyar1 is offline Sugar Community Member
    Join Date
    Feb 2006
    Location
    Bangalore
    Posts
    600

    Default Re: Version 5.2a document upload problem

    I have same version of sugar52a and there is no issues for creating Documents Revisions on a Documents.

    Can you check your sugarcrm.log file for further clue.
    Sanjay Katiyar
    iPhone and Android solutions http://www.apptility.com

  5. #5
    haffu is offline Member
    Join Date
    Mar 2009
    Posts
    5

    Default Re: Version 5.2a document upload problem

    I found the solution to this problem.

    It weren't a bug in the code. User permissions were missing from windows/temp folder that php uses during the upload.

    So we added write permissions to the user to temp-folder and now the document upload works fine.

    -H

    ps. thanks for replies and ideas.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Can't upload document attachment
    By door3ahmed in forum Help
    Replies: 3
    Last Post: 2012-03-09, 06:34 AM
  2. Document Upload problem
    By guptajee in forum General Discussion
    Replies: 20
    Last Post: 2008-07-18, 05:34 PM
  3. Document Upload Fails ?
    By Jules in forum Help
    Replies: 0
    Last Post: 2005-07-14, 12:54 PM
  4. Document Upload
    By jjray in forum Help
    Replies: 0
    Last Post: 2005-06-02, 01:37 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
  •