Results 1 to 6 of 6

Thread: Removed custom module, now releationships in Studio all throw an error

  1. #1
    jontresko is offline Junior Member
    Join Date
    Jan 2011
    Posts
    2

    Default Removed custom module, now releationships in Studio all throw an error

    I had a custom Module built. Created relationships to all other modules. Deleted the custom Module, now when trying to select relationships in other modules from Studio, I get the following error:


    Warning: include(custom/metadata/wdm01_companies_callsMetaData.php) [function.include]: failed to open stream: No such file or directory in /var/www/sugarcrmdev/custom/application/Ext/TableDictionary/tabledictionary.ext.php on line 6

    Warning: include() [function.include]: Failed opening 'custom/metadata/wdm01_companies_callsMetaData.php' for inclusion (include_path='/var/www/sugarcrmdev/include/..:.:/usr/share/php:/usr/share/pear') in /var/www/sugarcrmdev/custom/application/Ext/TableDictionary/tabledictionary.ext.php on line 6

    Warning: include(custom/metadata/wdm01_companies_bugsMetaData.php) [function.include]: failed to open stream: No such file or directory in /var/www/sugarcrmdev/custom/application/Ext/TableDictionary/tabledictionary.ext.php on line 11

    Warning: include() [function.include]: Failed opening 'custom/metadata/wdm01_companies_bugsMetaData.php' for inclusion (include_path='/var/www/sugarcrmdev/include/..:.:/usr/share/php:/usr/share/pear') in /var/www/sugarcrmdev/custom/application/Ext/TableDictionary/tabledictionary.ext.php on line 11

    Warning: include(custom/metadata/wdm01_companies_wdm01_companies_1MetaData.php) [function.include]: failed to open stream: No such file or directory in /var/www/sugarcrmdev/custom/application/Ext/TableDictionary/tabledictionary.ext.php on line 16

    Warning: include() [function.include]: Failed opening 'custom/metadata/wdm01_companies_wdm01_companies_1MetaData.php' for inclusion (include_path='/var/www/sugarcrmdev/include/..:.:/usr/share/php:/usr/share/pear') in /var/www/sugarcrmdev/custom/application/Ext/TableDictionary/tabledictionary.ext.php on line 16

    Warning: include(custom/metadata/wdm01_companies_contactsMetaData.php) [function.include]: failed to open stream: No such file or directory in /var/www/sugarcrmdev/custom/application/Ext/TableDictionary/tabledictionary.ext.php on line 21


    This makes sense that it cannot find these because they were deleted, but I guess I had assumed it would delete the relationships as well.

    So... how do I fix it? Using the repair tools from Admin also threw the same error when trying to rebuild.

  2. #2
    davidboris is offline Sugar Community Member
    Join Date
    May 2010
    Posts
    1,113

    Default Re: Removed custom module, now releationships in Studio all throw an error

    Hello,

    You will have to remove files from custom/Extension/application/Ext/TableDictionary, the ones which has the custom module you just removed. Then do Quick Repair and Rebuild. Double check before removing files.
    Thumbs up.

    Skype ID - david__boris

    SugarForge Projects:

    WYSIWYG now in studio!(Version 1.1 is out now!)

    Sugar Feeds on your personalized home pages like iGoogle, My Yahoo!, etc.

    Fab Tools! > Dashlet Not Followed Opportunities for past six Months

  3. #3
    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: Removed custom module, now releationships in Studio all throw an error

    Quote Originally Posted by davidboris View Post
    Hello,

    You will have to remove files from custom/Extension/application/Ext/TableDictionary, the ones which has the custom module you just removed. Then do Quick Repair and Rebuild. Double check before removing files.
    Files inside custom/Extension/application/Ext/TableDictionary are not compiled into custom/application/Ext/TableDictionary by Quick Repair and Rebuild, so you will have to do the same at custom/application/Ext/TableDictionary.

    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.

  4. #4
    jontresko is offline Junior Member
    Join Date
    Jan 2011
    Posts
    2

    Default Re: Removed custom module, now releationships in Studio all throw an error

    Delete these files via FTP?

  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: Removed custom module, now releationships in Studio all throw an error

    No.

    You have to delete the files inside custom/Extension/application/Ext/TableDictionary/ and respective entries inside custom/application/Ext/TableDictionary/.

    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.

  6. #6
    kingenuity is offline Junior Member
    Join Date
    Sep 2011
    Posts
    5

    Thumbs up Re: Removed custom module, now releationships in Studio all throw an error

    I've worked this one back and forth both ways... first I tried commenting out the entry within the application/ext/tabledictionary/tabledictionary.ext.php. It would work but if I processed a repair and rebuild it would recompile and uncomment my work... causing the same problem again.

    SOLUTION: What ended up working for me was manually deleting the file in my extension/application/ext/tabledictionary (simply uninstalling and deleting the module in "Module Loader" will not work) and processing a repair and rebuild I went back and checked my tabledictionary.ext.php file and the referenced line was automatically removed. Problem solved! Thanks davidboris this was a huge help!

    STEPS:
    1. In Module Loader uninstall the Module you'd like to get rid of
    2. in Module Loader delete the Module you just uninstalled in step 1
    3. in the directory "custom/extension/application/ext/tabledictionary/" delete the file you're trying to uninstall
    3.a. to delete you can use the file manager in you CPanel (if you have access) or any favorite FTP applications (i.e. Filezilla). tip: the file your deleting will have a similar if not the same name of the module you uninstalled
    4. In Administation Panel / Repair run the "Quick Repair and Rebuild" option
    4.a. You shouldn't see any "WARNING:" messages at this point
    5. If you'd like to double check your work, find the custom/application/ext/tabledictionary/tabledictionary.ext.php file and view it in an editor
    5.a. You shouldn't see any code referencing the above mentioned .php file you deleted
    5.b. If everything is clean close out the viewer, nothing was changed so you shouldn't save changes
    6. Problem solved
    6.a. "WARNING:" messages within module/relationships sub window are gone
    6.b. random "WARNING:" messaged on logout/login are gone
    6.c. all is right and well in the world again.

    hope this helps!

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 1
    Last Post: 2010-03-29, 06:06 AM
  2. Replies: 2
    Last Post: 2008-08-05, 12:59 PM
  3. Replies: 0
    Last Post: 2007-11-21, 12:08 PM
  4. Update custom fields throw SOAP interface
    By stepanov in forum Developer Help
    Replies: 1
    Last Post: 2005-08-17, 11:11 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
  •