progressivetech / net.ourpowerbase.sumfields

The Summary Fields extension creates read-only custom data fields that extend Contact and are automatically populated with up-to-date totals such as total lifetime contributions, last contribution amount, last attended event, etc.
Other
8 stars 29 forks source link

Extension crashes on install and uninstall #17

Open JohnFF opened 8 years ago

JohnFF commented 8 years ago

On a vanilla Drupal 7 install, this extension crashes on install and uninstall. Specifically, the group_name field in civicrm_setting no longer exists. Accordingly, this extension has been disapproved for automated distribution until this is resolved.

jmcclelland commented 5 years ago

Sorry for the delay in responding. Can you provide a traceback or more details on the crashes?

JohnFF commented 5 years ago

Hi @jmcclelland,

Unfortunately no, I don't still have it. But it should be easy to grep for group_name and replace it with an API call.

jmcclelland commented 5 years ago

The problem is that I can't replicate what you are experiencing.

However, I think I figured out what is going on. I'm using group_name in the settings/sumfields.settings.php file, which has been deprecated since version 4.7. I probably included it because group_name is included in the sample settings in the docs.

I'll working on pulling that attribute.

jmcclelland commented 5 years ago

It seems I need to get rid of both group and group_name and I need to preface all settings with sumfields to avoid collisions. This should probably happen with a major release (and should accompany officially dropping support for CiviCRM prior to 4.7.