Results 1 to 7 of 7

Thread: I broke my install removing a package

  1. #1
    dansut is offline Member
    Join Date
    Oct 2008
    Posts
    6

    Default I broke my install removing a package

    Custom CentOS Linux with Apache 2.2, php 5.1, mysql 5.0
    SugareCRM 5.1a CE

    This is not a live system so it's not really a big deal, but... I was playing around creating a package, with some custom modules, that I called test1 (a module was called passenger) - I believe I had added the Passenger module dashlet to my home page as well and think that is where my issue lies.

    Now all I get is:
    Code:
    Query Failed:SELECT test1_passenger.id FROM test1_passenger INNER JOIN contacts_tet1_passenger_c ON (test1_passenger.id=contacts_tet1_passenger_c.contacts_te_passenger_idb AND contacts_tet1_passenger_c.contacts_teercontacts_ida= '') WHERE contacts_tet1_passenger_c.deleted=0 AND test1_passenger.deleted=0::MySQL error 1146: Table 'sugarcrm.test1_passenger' doesn't exist
    I thought this would be fairly easy to fix using phpmyadmin and just searching through all the tables for test1 and removing records ... well did that, found some, removed and no effect. Searched the sources for the same and it all seems to be in the cache folder ... so is there a safe way to 'flush' this and/or another way to quickly fix my screwup.

    Cheers
    /dan

  2. #2
    SugarDev.net is offline Sugar Community Member
    Join Date
    Feb 2008
    Posts
    1,401

    Default Re: I broke my install removing a package

    Repair all from config?
    Developers go here
    Businesses go there (Dutch)

    Modules:
    SugarDev.net Developer Tools | Config | Dutch Language Pack
    "Nothing gets fixed unless there is a bug"

  3. #3
    dansut is offline Member
    Join Date
    Oct 2008
    Posts
    6

    Default Re: I broke my homepage removing a package

    Quote Originally Posted by SugarDev.net
    Repair all from config?
    Except I can't log in

    OK, have move forward a little bit so here's some more info. The Home module seems to be the one that I have broken and I can actually get into other modules by manipulating the URL by hand. Doing this I was able to follow the above instructions and now instead of the above error accessing tables which no longer exist I now get:
    Code:
    Query Failed: ::MySQL error 1065: Query was empty
    when I attempt to access the Home module as any user.

    Any clues would be appreciated.

  4. #4
    dansut is offline Member
    Join Date
    Oct 2008
    Posts
    6

    Default Re: I broke my install removing a package

    More info, this is what I get in the sugarcrm.log file:
    Code:
    Wed Oct  8 12:20:22 2008 [4519][1][FATAL] Error fetching relationship from cache contacts_test1_passenger
    Wed Oct  8 12:20:22 2008 [4519][1][FATAL] MySQL error 1065: Query was empty
    test1 was my test package and passenger was one of the custom modules inside it, if I go into the studio and try to look at the relationships it doesn't doing anything ... not even log an error.

    I really would be grateful for any clues or suggestions with the goal of troubleshooting what I broke and learning how this all hangs together.
    Cheers
    /dan

  5. #5
    alearr is offline Sugar Community Member
    Join Date
    Oct 2007
    Location
    Milan, Italy
    Posts
    16

    Default Re: I broke my install removing a package

    Same problem here with relationship between two custom modules.

  6. #6
    dansut is offline Member
    Join Date
    Oct 2008
    Posts
    6

    Unhappy Re: I broke my install removing a package

    I am still interested in fixing this (as a learning exercise) but right now I have other priorities so I archived that install an DB and reinstalled. If anyone does have any hints of what to try or where to look I will do it and report back here ASAP but otherwise it'll stay archived until I have a slow day.

  7. #7
    alearr is offline Sugar Community Member
    Join Date
    Oct 2007
    Location
    Milan, Italy
    Posts
    16

    Default Re: I broke my install removing a package

    Solved:
    1. delete the "cache" directory
    2. Search for "relationship_name" (eg "contacts_test1_passenger") in all your Sugar dir
    3. Delete any reference to the wrong relationship
    4. Leave only the correct relationships (or create a new one)
    5. Deploy

    Hope this helps.
    Reported with bug number 25414
    Last edited by alearr; 2008-10-10 at 07:36 AM. Reason: More details

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Fresh 5.0 Install Problems with IIS 6.0 - Session problems
    By jstaggs in forum Installation and Upgrade Help
    Replies: 0
    Last Post: 2008-01-04, 03:49 PM
  2. Replies: 11
    Last Post: 2006-12-20, 09:46 PM
  3. Install package language
    By winrickety in forum Translators
    Replies: 2
    Last Post: 2006-06-08, 08:26 AM
  4. Replies: 0
    Last Post: 2005-12-28, 03:40 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
  •