You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The extension fails to reinstall (i.e. it was previously installed and then disabled and uninstalled) if CiviCRM logging is enabled. I am using version 5.7, but this does not seem to matter, any recent version of Civi exhibits the same behaviour. These are the steps to reproduce from a fresh install:
From a completely fresh install turn logging on (i.e. civicrm/admin/setting/misc?reset=1)
download/clone the outlook.api extension into the ext directory
install the extension (this all works fine)
disable the extension and then uninstall the extension (use the GUI, or Drush)
Verify the extension is uninstalled and then press the install button again - you will get the following error code:
DB Error: unknown error
I did some debugging and the failure occurs on a DB query. It is very easy to reproduce, but I created a set of WatchDog log entries to trace it, here is the failure:
The extension fails to reinstall (i.e. it was previously installed and then disabled and uninstalled) if CiviCRM logging is enabled. I am using version 5.7, but this does not seem to matter, any recent version of Civi exhibits the same behaviour. These are the steps to reproduce from a fresh install:
DB Error: unknown error
I did some debugging and the failure occurs on a DB query. It is very easy to reproduce, but I created a set of WatchDog log entries to trace it, here is the failure:
`
civicrm
.log_civicrm_value_outlook_group_settings_11 ADDsync_to_outlook_15
varchar(255) COLLATE utf8_unicode_ci DEFAULT '' [nativecode=1060 ** Duplicate column name 'sync_to_outlook_15'] [type] => DB_Error [user_info] => ALTER TABLEcivicrm
.log_civicrm_value_outlook_group_settings_11 ADDsync_to_outlook_15
varchar(255) COLLATE utf8_unicode_ci DEFAULT '' [nativecode=1060 ** Duplicate column name 'sync_to_outlook_15'] [to_string] => [db_error: message="DB Error: unknown error" code=-1 mode=callback callback=CRM_Core_Error::exceptionHandler prefix="" info="ALTER TABLEcivicrm
.log_civicrm_value_outlook_group_settings_11 ADDsync_to_outlook_15
varchar(255) COLLATE utf8_unicode_ci DEFAULT '' [nativecode=1060 ** Duplicate column name 'sync_to_outlook_15']"] )`
The extension will uninstall and reinstall without error if logging is not enabled
The text was updated successfully, but these errors were encountered: