Results 1 to 5 of 5

Thread: Quick Repair 5.0a fails to Rebuild Audit Table for most modules

  1. #1
    chriswright is offline Member
    Join Date
    Oct 2005
    Location
    Newport Beach, CA
    Posts
    5

    Post Quick Repair 5.0a fails to Rebuild Audit Table for most modules

    When using the quick repair option with all flags set it should rebuild the audit tables for all modules. This is a clean install hosted with siteground. Freshly installed with no real data. When the repair runs here's the output:

    Clearing Vardefs from cache...done
    Repair Database
    Print Print Help Help
    Processing database and vardef comparison...
    Database tables are synced with vardefs
    Clearing Template files from cache...done
    Clearing JS files from cache...done
    Clearing Vardefs from cache...done
    Clearing JS Language files from cache...done
    Clearing Dashlet files from cache...done
    Rebuilding Audit Tables...
    Relationship not Audit Enabled...
    ACLRole not Audit Enabled...
    ACLAction not Audit Enabled...
    Audit table for Lead already exists. skipping...
    Audit table for Contact already exists. skipping...
    Audit table for Account already exists. skipping...
    Audit table for Opportunity already exists. skipping...
    Audit table for Case already exists. skipping...
    Note not Audit Enabled...
    EmailTemplate not Audit Enabled...
    EmailMan not Audit Enabled...
    Call not Audit Enabled...
    Email not Audit Enabled...
    Meeting not Audit Enabled...
    iFrame not Audit Enabled...
    Task not Audit Enabled...
    User not Audit Enabled...
    Employee not Audit Enabled...
    Currency not Audit Enabled...
    tracker not Audit Enabled...
    ImportMap not Audit Enabled...
    SugarFile not Audit Enabled...
    UsersLastImport not Audit Enabled...
    Administration not Audit Enabled...
    UpgradeHistory not Audit Enabled...
    vcal not Audit Enabled...
    Audit table for Bug already exists. skipping...
    version not Audit Enabled...
    Release not Audit Enabled...
    Feed not Audit Enabled...
    Project not Audit Enabled...
    Audit table for ProjectTask already exists. skipping...
    Role not Audit Enabled...
    EmailMarketing not Audit Enabled...
    Audit table for Campaign already exists. skipping...
    ProspectList not Audit Enabled...
    Prospect not Audit Enabled...
    Document not Audit Enabled...
    DocumentRevision not Audit Enabled...
    FieldsMetaData not Audit Enabled...
    schedulers not Audit Enabled...
    SchedulersJob not Audit Enabled...
    InboundEmail not Audit Enabled...
    User not Audit Enabled...
    CampaignLog not Audit Enabled...
    Dashboard not Audit Enabled...
    CampaignTracker not Audit Enabled...
    SavedSearch not Audit Enabled...
    UserPreference not Audit Enabled...
    MergeRecord not Audit Enabled...
    EmailAddress not Audit Enabled...
    done
    Rebuilding Extensions...
    Rebuilding Language...en_us
    Rebuilding Vardefs...
    Rebuilding Layoutdefs...
    Rebuilding Menus...
    Rebuilding User Page Section...
    Rebuilding administration Section...
    Rebuilding Relationships
    Clearing language files from cache...done

    Note: none of the modules are audit enabled? Is this a default and where is the area to set audit enabled for the modules?

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

    Default Re: Quick Repair 5.0a fails to Rebuild Audit Table for most modules

    That's correct.
    Not all modules are audit enabled.
    e.g. contacts is, so you can find the enableing statement in modules/contacts/vardef.php:
    $dictionary['Contact'] = array('table' => 'contacts', 'audited'=>true, 'unified_search' => true, 'duplicate_merge'=>true, 'fields' =>,,,

    In your list the default modules of the following list

    Audit table for Lead already exists. skipping...
    Audit table for Contact already exists. skipping...
    Audit table for Account already exists. skipping...
    Audit table for Opportunity already exists. skipping...
    Audit table for Case already exists. skipping...
    Audit table for Bug already exists. skipping...
    Audit table for ProjectTask already exists. skipping...
    Audit table for Campaign already exists. skipping...

    are audit enabled

  3. #3
    cmacholz is offline Senior Member
    Join Date
    Sep 2009
    Location
    Missoula, MT
    Posts
    82

    Default Re: Quick Repair 5.0a fails to Rebuild Audit Table for most modules

    (I know its an old post ,but)

    Whats the upgrade safe way to turn on auditing for NOTES?

    Thanks,

    p.s. I'm still using 5.2 version of Sugar.

    This is my best guess:
    C:\sugarcrm-5.2.0j\htdocs\sugarcrm\custom\Extension\modules\No tes\Ext\Vardefs\custom.php

    Add these lines????
    $dictionary['Notes']['audited'] = true;
    $dictionary['Notes']['fields']['description ']['audited'] = true;

  4. #4
    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: Quick Repair 5.0a fails to Rebuild Audit Table for most modules

    The path to save the script is correct, the lines are:

    PHP Code:
    $dictionary['Note']['audited'] = true;
    $dictionary['Note']['fields']['description ']['audited'] = true
    Then go to Admin -> Repair -> Quick Repair and Rebuild

    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.

  5. #5
    cmacholz is offline Senior Member
    Join Date
    Sep 2009
    Location
    Missoula, MT
    Posts
    82

    Default Re: Quick Repair 5.0a fails to Rebuild Audit Table for most modules

    Thanks Andre,

    Quick question....your lines of code worked, but...I've noticed for Meeting and Calls, when I turn on auditing and run the rebuild the _audit table doesn't get created.

    If I add the "'audited'=>true, " to the vardefs.php in ,<sugar Root>. the _audit table DOES get created. I don't like editing these files because their not upgrade safe.

    Do know what going on here?

    //C:\sugarcrm-5.2.0j\htdocs\sugarcrm\custom\Extension\modules\Me etings\Ext\Vardefs
    $dictionary['Meeting']['audited'] = true;

    //C:\sugarcrm-5.2.0j\htdocs\sugarcrm\custom\Extension\modules\Ca lls\Ext\Vardefs
    $dictionary['Call']['audited'] = true;

    Thanks, I have a work-a-round, but i'm curious why its not working the way I think it should.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Manually drop scheme (5.0 upgrade) ?
    By niallhannon in forum Installation and Upgrade Help
    Replies: 1
    Last Post: 2008-01-07, 05:41 PM
  2. problemi step 6 di SugarSuite-Full-4.0.1h
    By lucia in forum Italiano
    Replies: 0
    Last Post: 2006-12-27, 08:50 AM
  3. Fatal error: Max
    By spokes2k4 in forum Help
    Replies: 3
    Last Post: 2006-01-15, 03:50 PM
  4. php 5.0.4 + MySQL 5.0.9
    By sergiogu in forum Help
    Replies: 0
    Last Post: 2005-08-30, 04:38 PM
  5. Empty config.php at the end of install
    By aemadrid in forum Help
    Replies: 2
    Last Post: 2005-08-01, 06:29 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
  •