New Created Module Relationships Not Functioning Correctly

SuiteCRM Version 7.10.5

  • New basic module without relationships created and loaded via module loader
  • A one to many relationship created between Accounts and New Module
  • A New Module Record is created.
  • An Account is selected and the New Module Record is saved
  • The selected Account is not present anymore.

Alternatively:

  • An Account is viewed
  • Under the New Module sub panel a create New Module Record is selected and a New Module Record is created.
  • Under the New Module list view the New Module Record is selected.
  • The New Module Record now shows the selected Account.

Expected Behavior

  • That an account can be selected and saved when creating or editing a New Module Record under the New Module create/edit view.

Please someone advise.

Have you done a Quick Repair and Rebuild? Make sure you scroll to the bottom and press the button to sync vardefs, if one appears there.

Also try Admin / Repair / Repair Relationships

Yes, I have run repair & rebuild and also run rebuild relationships.

I have created a different module as well and it has the same problem.

Our old SugarCE version works fine.

At the time of those broken behaviours, what do you get in your logs?

I have attached the diagnostics file that can be downloaded from the admin section.

I donā€™t have time to look at those files now, it would be helpful if you at least attempted that analysis and just posted the relevant stuff (fatal errors, things happening at the time of showing the screen - you can tell when it was, I canā€™t).

Iā€™m sorry for not checking the files, but I really donā€™t know where to look or what to look for.

I have now scanned the suitecrm.log file for the word ā€œerrorā€ and ā€œfailedā€ and have found the following line items that contain these words:

'failed"

Line 425: Sat Jun 2 22:43:01 2018 [23814][1][DEBUG] SugarBean.load_relationships, failed Loading relationship (assigned_user_id)
Line 427: Sat Jun 2 22:43:01 2018 [23814][1][DEBUG] SugarBean.load_relationships, failed Loading relationship (assigned_user_id)
Line 932: Sat Jun 2 22:43:02 2018 [23814][1][DEBUG] SugarBean.load_relationships, failed Loading relationship (aor_scheduled_reports_aor_reports)
Line 1470: Sat Jun 2 22:44:02 2018 [23848][1][DEBUG] SugarBean.load_relationships, failed Loading relationship (assigned_user_id)
Line 1472: Sat Jun 2 22:44:02 2018 [23848][1][DEBUG] SugarBean.load_relationships, failed Loading relationship (assigned_user_id)
Line 1776: Sat Jun 2 22:44:02 2018 [23848][1][DEBUG] SugarBean.load_relationships, failed Loading relationship (aor_scheduled_reports_aor_reports)
Line 2515: Sat Jun 2 22:45:01 2018 [23887][1][DEBUG] SugarBean.load_relationships, failed Loading relationship (assigned_user_id)
Line 2517: Sat Jun 2 22:45:01 2018 [23887][1][DEBUG] SugarBean.load_relationships, failed Loading relationship (assigned_user_id)
Line 3022: Sat Jun 2 22:45:02 2018 [23887][1][DEBUG] SugarBean.load_relationships, failed Loading relationship (aor_scheduled_reports_aor_reports)
Line 3560: Sat Jun 2 22:46:01 2018 [23920][1][DEBUG] SugarBean.load_relationships, failed Loading relationship (assigned_user_id)
Line 3562: Sat Jun 2 22:46:01 2018 [23920][1][DEBUG] SugarBean.load_relationships, failed Loading relationship (assigned_user_id)
Line 4067: Sat Jun 2 22:46:02 2018 [23920][1][DEBUG] SugarBean.load_relationships, failed Loading relationship (aor_scheduled_reports_aor_reports)
Line 4377: Sat Jun 2 22:46:42 2018 [10659][b7da4b5c-df10-ae3e-ed97-58186442a993][DEBUG] SugarBean.load_relationships, failed Loading relationship (assigned_user_id)
Line 4379: Sat Jun 2 22:46:42 2018 [10659][b7da4b5c-df10-ae3e-ed97-58186442a993][DEBUG] SugarBean.load_relationships, failed Loading relationship (assigned_user_id)
Line 4519: Sat Jun 2 22:46:42 2018 [10530][b7da4b5c-df10-ae3e-ed97-58186442a993][DEBUG] SugarBean.load_relationships, failed Loading relationship (cases_created_contact)
Line 4706: Sat Jun 2 22:46:43 2018 [10530][b7da4b5c-df10-ae3e-ed97-58186442a993][DEBUG] SugarBean.load_relationships, failed Loading relationship (contract_account_id)
Line 4720: Sat Jun 2 22:46:43 2018 [10530][b7da4b5c-df10-ae3e-ed97-58186442a993][DEBUG] SugarBean.load_relationships, failed Loading relationship (contact_id)
Line 5919: Sat Jun 2 22:46:45 2018 [10530][b7da4b5c-df10-ae3e-ed97-58186442a993][DEBUG] SugarBean.load_relationships, failed Loading relationship (contract_account_id)
Line 5933: Sat Jun 2 22:46:45 2018 [10530][b7da4b5c-df10-ae3e-ed97-58186442a993][DEBUG] SugarBean.load_relationships, failed Loading relationship (contact_id)
Line 7251: Sat Jun 2 22:46:47 2018 [10524][b7da4b5c-df10-ae3e-ed97-58186442a993][DEBUG] SugarBean.load_relationships, failed Loading relationship (assigned_user_id)
Line 7253: Sat Jun 2 22:46:47 2018 [10524][b7da4b5c-df10-ae3e-ed97-58186442a993][DEBUG] SugarBean.load_relationships, failed Loading relationship (assigned_user_id)
Line 7445: Sat Jun 2 22:46:47 2018 [10524][b7da4b5c-df10-ae3e-ed97-58186442a993][DEBUG] SugarBean.load_relationships, failed Loading relationship (assigned_user_id)
Line 7447: Sat Jun 2 22:46:47 2018 [10524][b7da4b5c-df10-ae3e-ed97-58186442a993][DEBUG] SugarBean.load_relationships, failed Loading relationship (assigned_user_id)
Line 7493: Sat Jun 2 22:46:47 2018 [10524][b7da4b5c-df10-ae3e-ed97-58186442a993][DEBUG] SugarBean.load_relationships, failed Loading relationship (assigned_user_id)
Line 7495: Sat Jun 2 22:46:47 2018 [10524][b7da4b5c-df10-ae3e-ed97-58186442a993][DEBUG] SugarBean.load_relationships, failed Loading relationship (assigned_user_id)
Line 7541: Sat Jun 2 22:46:47 2018 [10524][b7da4b5c-df10-ae3e-ed97-58186442a993][DEBUG] SugarBean.load_relationships, failed Loading relationship (assigned_user_id)
Line 7543: Sat Jun 2 22:46:47 2018 [10524][b7da4b5c-df10-ae3e-ed97-58186442a993][DEBUG] SugarBean.load_relationships, failed Loading relationship (assigned_user_id)
Line 7589: Sat Jun 2 22:46:47 2018 [10524][b7da4b5c-df10-ae3e-ed97-58186442a993][DEBUG] SugarBean.load_relationships, failed Loading relationship (assigned_user_id)
Line 7591: Sat Jun 2 22:46:47 2018 [10524][b7da4b5c-df10-ae3e-ed97-58186442a993][DEBUG] SugarBean.load_relationships, failed Loading relationship (assigned_user_id)
Line 7638: Sat Jun 2 22:46:47 2018 [10524][b7da4b5c-df10-ae3e-ed97-58186442a993][DEBUG] SugarBean.load_relationships, failed Loading relationship (assigned_user_id)
Line 7640: Sat Jun 2 22:46:47 2018 [10524][b7da4b5c-df10-ae3e-ed97-58186442a993][DEBUG] SugarBean.load_relationships, failed Loading relationship (assigned_user_id)
Line 7699: Sat Jun 2 22:46:47 2018 [10524][b7da4b5c-df10-ae3e-ed97-58186442a993][DEBUG] SugarBean.load_relationships, failed Loading relationship (assigned_user_id)
Line 7701: Sat Jun 2 22:46:47 2018 [10524][b7da4b5c-df10-ae3e-ed97-58186442a993][DEBUG] SugarBean.load_relationships, failed Loading relationship (assigned_user_id)
Line 7751: Sat Jun 2 22:46:47 2018 [10524][b7da4b5c-df10-ae3e-ed97-58186442a993][DEBUG] SugarBean.load_relationships, failed Loading relationship (assigned_user_id)
Line 7753: Sat Jun 2 22:46:47 2018 [10524][b7da4b5c-df10-ae3e-ed97-58186442a993][DEBUG] SugarBean.load_relationships, failed Loading relationship (assigned_user_id)
Line 8075: Sat Jun 2 22:46:51 2018 [12794][b7da4b5c-df10-ae3e-ed97-58186442a993][DEBUG] SugarBean.load_relationships, failed Loading relationship (cases_created_contact)
Line 8575: Sat Jun 2 22:46:59 2018 [32435][b7da4b5c-df10-ae3e-ed97-58186442a993][DEBUG] SugarBean.load_relationships, failed Loading relationship (cases_created_contact)
Line 9218: Sat Jun 2 22:47:01 2018 [23955][1][DEBUG] SugarBean.load_relationships, failed Loading relationship (assigned_user_id)
Line 9220: Sat Jun 2 22:47:01 2018 [23955][1][DEBUG] SugarBean.load_relationships, failed Loading relationship (assigned_user_id)
Line 9725: Sat Jun 2 22:47:01 2018 [23955][1][DEBUG] SugarBean.load_relationships, failed Loading relationship (aor_scheduled_reports_aor_reports)
Line 10042: Sat Jun 2 22:47:07 2018 [10530][b7da4b5c-df10-ae3e-ed97-58186442a993][DEBUG] SugarBean.load_relationships, failed Loading relationship (cases_created_contact)
Line 11183: Sat Jun 2 22:47:09 2018 [10530][b7da4b5c-df10-ae3e-ed97-58186442a993][FATAL] Mysqli_query failed.
Line 11185: Sat Jun 2 22:47:09 2018 [10530][b7da4b5c-df10-ae3e-ed97-58186442a993][FATAL] Query Failed: DESCRIBE versions: MySQL error 1146: Table ā€˜mjrprojects_productive.versionsā€™ doesnā€™t exist
Line 11187: Sat Jun 2 22:47:09 2018 [10530][b7da4b5c-df10-ae3e-ed97-58186442a993][FATAL] Mysqli_query failed.
Line 11189: Sat Jun 2 22:47:09 2018 [10530][b7da4b5c-df10-ae3e-ed97-58186442a993][FATAL] Query Failed: SHOW INDEX FROM versions: MySQL error 1146: Table ā€˜mjrprojects_productive.versionsā€™ doesnā€™t exist
Line 11191: Sat Jun 2 22:47:09 2018 [10530][b7da4b5c-df10-ae3e-ed97-58186442a993][FATAL] Mysqli_query failed.
Line 11193: Sat Jun 2 22:47:09 2018 [10530][b7da4b5c-df10-ae3e-ed97-58186442a993][FATAL] Query Failed: select * from versions: MySQL error 1146: Table ā€˜mjrprojects_productive.versionsā€™ doesnā€™t exist
S

ā€œerrorā€ - a partial list

Sat Jun 2 22:46:51 2018 [12794][b7da4b5c-df10-ae3e-ed97-58186442a993][WARN] Pop error level. Try to remove the error_reporting() function from your code.
Sat Jun 2 22:46:51 2018 [12794][b7da4b5c-df10-ae3e-ed97-58186442a993][WARN] Saving error level. Try to remove the error_reporting() function from your code.
Sat Jun 2 22:46:51 2018 [12794][b7da4b5c-df10-ae3e-ed97-58186442a993][WARN] Saving error level. Try to remove the error_reporting() function from your code.
Sat Jun 2 22:46:51 2018 [12794][b7da4b5c-df10-ae3e-ed97-58186442a993][WARN] Pop error level. Try to remove the error_reporting() function from your code.
Sat Jun 2 22:46:51 2018 [12794][b7da4b5c-df10-ae3e-ed97-58186442a993][WARN] Pop error level. Try to remove the error_reporting() function from your code.
Sat Jun 2 22:46:51 2018 [12794][b7da4b5c-df10-ae3e-ed97-58186442a993][WARN] Saving error level. Try to remove the error_reporting() function from your code.
Sat Jun 2 22:46:51 2018 [12794][b7da4b5c-df10-ae3e-ed97-58186442a993][WARN] Saving error level. Try to remove the error_reporting() function from your code.
Sat Jun 2 22:46:51 2018 [12794][b7da4b5c-df10-ae3e-ed97-58186442a993][WARN] Pop error level. Try to remove the error_reporting() function from your code.
Sat Jun 2 22:46:51 2018 [12794][b7da4b5c-df10-ae3e-ed97-58186442a993][WARN] Pop error level. Try to remove the error_reporting() function from your code.
Sat Jun 2 22:46:54 2018 [10524][b7da4b5c-df10-ae3e-ed97-58186442a993][WARN] Saving error level. Try to remove the error_reporting() function from your code.
Sat Jun 2 22:46:54 2018 [10524][b7da4b5c-df10-ae3e-ed97-58186442a993][WARN] Saving error level. Try to remove the error_reporting() function from your code.
Sat Jun 2 22:46:54 2018 [10524][b7da4b5c-df10-ae3e-ed97-58186442a993][WARN] Pop error level. Try to remove the error_reporting() function from your code.
Sat Jun 2 22:46:54 2018 [10524][b7da4b5c-df10-ae3e-ed97-58186442a993][WARN] Pop error level. Try to remove the error_reporting() function from your code.
Sat Jun 2 22:46:59 2018 [32435][b7da4b5c-df10-ae3e-ed97-58186442a993][WARN] Saving error level. Try to remove the error_reporting() function from your code.
Sat Jun 2 22:46:59 2018 [32435][b7da4b5c-df10-ae3e-ed97-58186442a993][WARN] Saving error level. Try to remove the error_reporting() function from your code.
Sat Jun 2 22:46:59 2018 [32435][b7da4b5c-df10-ae3e-ed97-58186442a993][WARN] Pop error level. Try to remove the error_reporting() function from your code.
Sat Jun 2 22:46:59 2018 [32435][b7da4b5c-df10-ae3e-ed97-58186442a993][WARN] Pop error level. Try to remove the error_reporting() function from your code.
Sat Jun 2 22:46:59 2018 [32435][b7da4b5c-df10-ae3e-ed97-58186442a993][WARN] Saving error level. Try to remove the error_reporting() function from your code.
Sat Jun 2 22:46:59 2018 [32435][b7da4b5c-df10-ae3e-ed97-58186442a993][WARN] Saving error level. Try to remove the error_reporting() function from your code.
Sat Jun 2 22:46:59 2018 [32435][b7da4b5c-df10-ae3e-ed97-58186442a993][WARN] Pop error level. Try to remove the error_reporting() function from your code.
Sat Jun 2 22:46:59 2018 [32435][b7da4b5c-df10-ae3e-ed97-58186442a993][WARN] Pop error level. Try to remove the error_reporting() function from your code.
Sat Jun 2 22:46:59 2018 [32435][b7da4b5c-df10-ae3e-ed97-58186442a993][WARN] Saving error level. Try to remove the error_reporting() function from your code.
Sat Jun 2 22:46:59 2018 [32435][b7da4b5c-df10-ae3e-ed97-58186442a993][WARN] Saving error level. Try to remove the error_reporting() function from your code.
Sat Jun 2 22:46:59 2018 [32435][b7da4b5c-df10-ae3e-ed97-58186442a993][WARN] Pop error level. Try to remove the error_reporting() function from your code.
Sat Jun 2 22:46:59 2018 [32435][b7da4b5c-df10-ae3e-ed97-58186442a993][WARN] Pop error level. Try to remove the error_reporting() function from your code.
Sat Jun 2 22:47:02 2018 [23955][1][WARN] Saving error level. Try to remove the error_reporting() function from your code.
Sat Jun 2 22:47:02 2018 [23955][1][WARN] Saving error level. Try to remove the error_reporting() function from your code.
Sat Jun 2 22:47:02 2018 [23955][1][WARN] Pop error level. Try to remove the error_reporting() function from your code.
Sat Jun 2 22:47:02 2018 [23955][1][WARN] Pop error level. Try to remove the error_reporting() function from your code.
Sat Jun 2 22:47:02 2018 [10524][b7da4b5c-df10-ae3e-ed97-58186442a993][WARN] Saving error level. Try to remove the error_reporting() function from your code.
Sat Jun 2 22:47:02 2018 [10524][b7da4b5c-df10-ae3e-ed97-58186442a993][WARN] Saving error level. Try to remove the error_reporting() function from your code.
Sat Jun 2 22:47:02 2018 [10524][b7da4b5c-df10-ae3e-ed97-58186442a993][WARN] Pop error level. Try to remove the error_reporting() function from your code.
Sat Jun 2 22:47:02 2018 [10524][b7da4b5c-df10-ae3e-ed97-58186442a993][WARN] Pop error level. Try to remove the error_reporting() function from your code.
Sat Jun 2 22:47:07 2018 [10530][b7da4b5c-df10-ae3e-ed97-58186442a993][WARN] Saving error level. Try to remove the error_reporting() function from your code.
Sat Jun 2 22:47:07 2018 [10530][b7da4b5c-df10-ae3e-ed97-58186442a993][WARN] Saving error level. Try to remove the error_reporting() function from your code.
Sat Jun 2 22:47:07 2018 [10530][b7da4b5c-df10-ae3e-ed97-58186442a993][WARN] Pop error level. Try to remove the error_reporting() function from your code.
Sat Jun 2 22:47:07 2018 [10530][b7da4b5c-df10-ae3e-ed97-58186442a993][WARN] Pop error level. Try to remove the error_reporting() function from your code.
Sat Jun 2 22:47:09 2018 [10530][b7da4b5c-df10-ae3e-ed97-58186442a993][FATAL] Query Failed: DESCRIBE versions: MySQL error 1146: Table ā€˜mjrprojects_productive.versionsā€™ doesnā€™t exist
Sat Jun 2 22:47:09 2018 [10530][b7da4b5c-df10-ae3e-ed97-58186442a993][FATAL] Query Failed: SHOW INDEX FROM versions: MySQL error 1146: Table ā€˜mjrprojects_productive.versionsā€™ doesnā€™t exist
Sat Jun 2 22:47:09 2018 [10530][b7da4b5c-df10-ae3e-ed97-58186442a993][FATAL] Query Failed: select * from versions: MySQL error 1146: Table ā€˜mjrprojects_productive.versionsā€™ doesnā€™t exist

Messages labeled [DEBUG] are usually safe to ignore. Focus on [ERROR] with capitals and [FATAL].

Try to get your web server log: php_errors.log or whatever itā€™s called. Frequently thatā€™s where the answers are.

I am worried about your ā€œversionsā€ table FATAL error. Is this an upgraded version, I suppose? Did the upgrade complete without errors? From which version? You might want to check also upgradeWizard.log.

Iā€™d never seen those other warnings ā€œ[WARN] Pop error level. Try to remove the error_reporting() function from your code.ā€. And I have seen a lot :slight_smile:

Have you put any error_reporting() function in your code? Do you have code customizations?

Thanks for the further suggestions.

A SuiteCRM 7.9.x backup was reinstated - the ā€œfatalā€ errors are also present in this versionā€™s log.

The 7.9.x version was upgraded to 7.10.6. The relationship problem disappears as best I can tell. The error, failed and fatal messages appear to be much the same.

All upgrades have in the past completed successfully.

There has been no error_reporting function added to the code and there has been no code customization.

Unfortunately we are not programmers and can do little to assist other than to follow instructions.