Results 1 to 7 of 7

Thread: 4.5.1 Suddenly documents arent appearing but they ARE there...

  1. #1
    jasonsot is offline Sugar Community Member
    Join Date
    Jan 2007
    Posts
    70

    Default 4.5.1 Suddenly documents arent appearing but they ARE there...

    I was updating the documents section when i went to return to the Document List but suddenly no documents were listed. I cleared the search filters and they still did not appear. I checked the database and they are all there and not deleted. I clicked on the Select button in the search form and they also appear in the window that pops up but not in the List View.

    Any ideas what could be causing this?

  2. #2
    andopes's Avatar
    andopes is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Jul 2006
    Location
    São Paulo - Brazil
    Posts
    8,335

    Default Re: 4.5.1 Suddenly documents arent appearing but they ARE there...

    Hi Jason

    Probably it is due a query error in MySQL.
    Edit the file include/ListView/ListViewData.php and add this line:

    PHP Code:
    echo "<LI>$main_query"
    Just after the line:

    PHP Code:
    $main_query $ret_array['select'] . $params['custom_select'] . $ret_array['from'] . $params['custom_from'] . $ret_array['where'] . $params['custom_where'] . $ret_array['order_by'] . $params['custom_order_by']; 
    Let me know the query in the ListView of Documents.

    Cheers
    André Lopes
    DevToolKit / Project of the Month - June 2009
    Lampada Global Services- Open Source Solutions
    Avenida Ipiranga, 318
    Bloco B - CJ 1602
    São Paulo, SP 01046-010
    Brazil
    Office: +55 11 3237-3110
    Mobile: +55 11 7636-5859
    e-mail: andre@lampadaglobal.com

    Lampada Global delivers offshore software development and support services to customers around the world.
    Lampada is proud to be a SugarCRM Gold Partner, revolutionizing Customer Relationship Management.

    I DO NOT answer questions through PM and Email. If you need some help post your question into SugarForum.

  3. #3
    jasonsot is offline Sugar Community Member
    Join Date
    Jan 2007
    Posts
    70

    Default Re: 4.5.1 Suddenly documents arent appearing but they ARE there...

    Hello André,

    Thank you for the response. I added that line and am getting this response:

    SELECT documents.id , documents_cstm.*, documents.document_revision_id , documents.document_name , documents.category_id , documents.subcategory_id , jt0.user_name created_by_name , jt0.created_by created_by_name_owner , 'Users' created_by_name_mod, documents.active_date , documents.exp_date , documents.created_by FROM documents LEFT JOIN documents_cstm ON documents.id = documents_cstm.id_c LEFT JOIN users jt0 ON jt0.id= documents.created_by AND jt0.deleted=0 AND jt0.deleted=0 where documents.deleted=0 ORDER BY last_rev_create_date ASC

  4. #4
    jasonsot is offline Sugar Community Member
    Join Date
    Jan 2007
    Posts
    70

    Default Re: 4.5.1 Suddenly documents arent appearing but they ARE there...

    any ideas?

  5. #5
    andopes's Avatar
    andopes is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Jul 2006
    Location
    São Paulo - Brazil
    Posts
    8,335

    Default Re: 4.5.1 Suddenly documents arent appearing but they ARE there...

    Hi Jason

    Run this query into phpMyAdmin logged in the database used by SugarCRM.
    You should see an error.
    I suppose the table documents_cstm does not exist.

    Regards
    André Lopes
    DevToolKit / Project of the Month - June 2009
    Lampada Global Services- Open Source Solutions
    Avenida Ipiranga, 318
    Bloco B - CJ 1602
    São Paulo, SP 01046-010
    Brazil
    Office: +55 11 3237-3110
    Mobile: +55 11 7636-5859
    e-mail: andre@lampadaglobal.com

    Lampada Global delivers offshore software development and support services to customers around the world.
    Lampada is proud to be a SugarCRM Gold Partner, revolutionizing Customer Relationship Management.

    I DO NOT answer questions through PM and Email. If you need some help post your question into SugarForum.

  6. #6
    jasonsot is offline Sugar Community Member
    Join Date
    Jan 2007
    Posts
    70

    Default Re: 4.5.1 Suddenly documents arent appearing but they ARE there...

    Thanks André,

    I checked and the documents_cstm table is there. When I run that query in phpMyAdmin, I get this response:

    #1054 - Unknown column 'last_rev_create_date' in 'order clause'

    When i remove the order clause, it returns accurate results.

  7. #7
    jasonsot is offline Sugar Community Member
    Join Date
    Jan 2007
    Posts
    70

    Default Re: 4.5.1 Suddenly documents arent appearing but they ARE there...

    I returned to the documents section and it was still blank. Since the sorting seemed to be causing the error in phpMyAdmin, I resorted the blank list by Document Name and they all appeared.

    Thanks for your assistance, André... wouldnt have been able to figure it out without ya!

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. 4.5.1 - Database Upgrade - Potential Solution
    By stuarth in forum Installation and Upgrade Help
    Replies: 1
    Last Post: 2010-01-13, 09:28 PM
  2. where are documents stored?
    By jsbenson in forum Help
    Replies: 11
    Last Post: 2009-06-12, 11:16 AM
  3. Cannot see documents after upgrade
    By mgreis in forum Installation and Upgrade Help
    Replies: 0
    Last Post: 2007-07-30, 01:38 PM
  4. Sugar Open Source 4.5.1 GA Available For Download
    By jnassi in forum Announcements
    Replies: 0
    Last Post: 2007-02-01, 11:43 PM
  5. Sugar Suite 4.5.1 Release Candidate Available for Download
    By andydreisch in forum Announcements
    Replies: 0
    Last Post: 2007-01-10, 03:35 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
  •