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

Unable to disable extension on Drupal Civicrm 5.10 #46

Closed eudaimonstro closed 5 years ago

eudaimonstro commented 5 years ago

When using the GUI: image

When using drush: drush ced net.ourpowerbase.sumfields WD php: Error: Class 'CRM_Myextension_ExtensionUtil' not found in sumfields_delete_custom_fields_and_table() (line 698 of [error] /opt/bitnami/apps/civicrm/htdocs/sites/default/files/civicrm/ext/net.ourpowerbase.sumfields/sumfields.php). Error: Class 'CRM_Myextension_ExtensionUtil' not found in sumfields_delete_custom_fields_and_table() (line 698 of /opt/bitnami/apps/civicrm/htdocs/sites/default/files/civicrm/ext/net.ourpowerbase.sumfields/sumfields.php). Drush command terminated abnormally due to an unrecoverable error.

Paul-Tahoe commented 5 years ago

You must likely have version 4.0.1, check the sumfields.php. If the 3rd line is use CRM_Myextension_ExtensionUtil as E; You have a bad version. There is a fix in 4.0.2. Unfortunately, for some reason that doesn't come up as an upgrade within civi yet. It is correct here in github.

You can change it to

use CRM_Sumfields_ExtensionUtil as E;

as it should work.

jmcclelland commented 5 years ago

Thanks @Paul-Tahoe - that says it all.