Results 1 to 2 of 2

Thread: Help - Accounts module corrupted on Repair All

  1. #1
    datasponge is offline Sugar Community Member
    Join Date
    Mar 2008
    Location
    San Jose, CA, USA
    Posts
    553

    Default Help - Accounts module corrupted on Repair All

    I'm seeing some very strange behavior. I suspect I caused it with Extension customizations, but I'm not successfully tracking it down.

    When I go to Admin > Repair > Quick Repair and Rebuild, leave All Modules selected, leave all boxes checked and click Repair, I can no longer access Account Data (see below for symptoms). If I then go to Admin > Repair and click Rebuild Extensions it works fine again. Or if I do a Quick Repair and Rebuild and specifically select only Accounts it's fine again. Throughout, Contacts and Opportunities work with no problems. Also, if I restore the SugarCRM tree from backup it works fine until I Repair All Modules. Data through MySQL is fine throughout.

    The specific behaviors after a Rebuild for All Modules are:
    - If I click on an Account Last Viewed shortcut or an Account link on the Contacts detail view I get the error:
    Error retrieving record. This record may be deleted or you may not be authorized to view it.
    - If I click the Accounts tab, the Search panel input box for Name is missing on both Basic and Advanced Search pages even though the label "Name" is displayed.
    - The Accounts list shows no data in any columns, but appears to be matching records properly as the number of rows changes for different searches. If I click the pencil in one of the rows, the Edit view shows no data and many fields do not even display the input text box (making me suspect vardefs).

    This was working after the last time I added Extensions and I don't see any new Extensions since then, although it is very possible I'm missing something. I made minor changes before the repair, but backing them out did not solve the problem and it occurred even when I restored from a week old backup, so it was something earlier.

    Anyone recognize any clues in all that?

    Any tips how to systematically track down what broke it?

    Thanks

    Phil

    Version Info:
    SugarCRM 5.2.0f
    Apache/2.2.6 (Mandriva Linux/PREFORK-8.1mdv2008.0)
    PHP Version 5.2.4
    Last edited by datasponge; 2010-01-07 at 02:19 AM.

  2. #2
    datasponge is offline Sugar Community Member
    Join Date
    Mar 2008
    Location
    San Jose, CA, USA
    Posts
    553

    Default Re: Help - Accounts module corrupted on Repair All

    I think I found it.

    I had tried some experiments trying to enable auditing for email addresses a while back and had the line below in the file <sugarcrm>/custom/Extension/modules/EmailAddresses/Ext/Vardefs/audit_fields.php

    PHP Code:
      $dictionary['Account']['fields']['email_address']['audited'] = 'true'
    When I comment out that line, all the errors go away, though I want to do more testing.

    Makes sense in hindsight since I'm confusing old email schema with new and trying to set an Account module vardef in the EmailAddresses module. Not too bright.

    So beware of serious consequences if you screw up a "simple" vardefs line.

    Phil

    PS. My "system" was to go to a very old backup that worked and add my custom extensions one at a time, repairing after each module until the Accounts module broke. It broke when I added the EmailAddresses custom extensions, so I had my culprit.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Documents module, saving file says it's corrupted
    By sluther4990@yahoo.com in forum Help
    Replies: 0
    Last Post: 2009-08-27, 03:47 PM
  2. Replies: 2
    Last Post: 2009-01-31, 06:25 AM
  3. Replies: 11
    Last Post: 2008-08-21, 07:16 AM
  4. Repair Module Nothing Finishes
    By rfenn in forum Help
    Replies: 1
    Last Post: 2008-02-12, 03:48 PM
  5. Opportunity Module (REPAIR HELP)
    By Acozine in forum Help
    Replies: 4
    Last Post: 2007-12-09, 02:06 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
  •