Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deleting of contributions with donation receipt fails silently - no error message displayed #129

Open
Detsieber opened this issue May 26, 2021 · 0 comments

Comments

@Detsieber
Copy link

Deleting of contributions with donation receipt fails - this is, of course, the required behaviour!
However, it fails silently, without displaying any error message and leaving the user uninformed what happened.
ConfigAndLog contains the following:

 [error] 
$Fatal Error Details = array:3 [
  "message" => "Zuwendung [5213] kann nicht gelöscht werden, da für sie eine Zuwendungsbescheinigung vorliegt, oder gerade erstellt wird."
  "code" => null
  "exception" => Exception {#16211
    #message: "Zuwendung [5213] kann nicht gelöscht werden, da für sie eine Zuwendungsbescheinigung vorliegt, oder gerade erstellt wird."
    #code: 0
    #file: "/html/wordpress/wp-content/uploads/civicrm/ext/de.systopia.donrec/donrec.php"
    #line: 337
    trace: {
      /html/wordpress/wp-content/uploads/civicrm/ext/de.systopia.donrec/donrec.php:337 {
        ›   $message = sprintf(E::ts("This contribution [%d] must not be deleted because it has a receipt or is going to be receipted!"), $id);
        ›   throw new Exception($message);
        › }
      }
      /html/wordpress/wp-content/plugins/civicrm/civicrm/CRM/Utils/Hook.php:283 { …}
      /html/wordpress/wp-content/plugins/civicrm/civicrm/CRM/Utils/Hook/WordPress.php:136 { …}
      /html/wordpress/wp-content/plugins/civicrm/civicrm/Civi/Core/CiviEventDispatcher.php:180 { …}
      /html/wordpress/wp-content/plugins/civicrm/civicrm/vendor/symfony/event-dispatcher/EventDispatcher.php:214 { …}
      /html/wordpress/wp-content/plugins/civicrm/civicrm/vendor/symfony/event-dispatcher/EventDispatcher.php:44 { …}
      /html/wordpress/wp-content/plugins/civicrm/civicrm/Civi/Core/CiviEventDispatcher.php:129 { …}
      /html/wordpress/wp-content/plugins/civicrm/civicrm/CRM/Utils/Hook.php:344 { …}
      /html/wordpress/wp-content/plugins/civicrm/civicrm/CRM/Contribute/BAO/Contribution.php:1438 { …}
      /html/wordpress/wp-content/plugins/civicrm/civicrm/CRM/Contribute/Form/Contribution.php:935 { …}
      /html/wordpress/wp-content/plugins/civicrm/civicrm/CRM/Core/Form.php:526 { …}
      /html/wordpress/wp-content/plugins/civicrm/civicrm/CRM/Core/StateMachine.php:144 { …}
      /html/wordpress/wp-content/plugins/civicrm/civicrm/CRM/Core/QuickForm/Action/Next.php:43 { …}
      /html/wordpress/wp-content/plugins/civicrm/civicrm/packages/HTML/QuickForm/Controller.php:203 { …}
      /html/wordpress/wp-content/plugins/civicrm/civicrm/packages/HTML/QuickForm/Page.php:103 { …}
      /html/wordpress/wp-content/plugins/civicrm/civicrm/CRM/Core/Controller.php:347 { …}
      /html/wordpress/wp-content/plugins/civicrm/civicrm/CRM/Contribute/Page/Tab.php:312 { …}
      /html/wordpress/wp-content/plugins/civicrm/civicrm/CRM/Contribute/Page/Tab.php:368 { …}
      /html/wordpress/wp-content/plugins/civicrm/civicrm/CRM/Core/Invoke.php:313 { …}
      /html/wordpress/wp-content/plugins/civicrm/civicrm/CRM/Core/Invoke.php:69 { …}
      /html/wordpress/wp-content/plugins/civicrm/civicrm/CRM/Core/Invoke.php:36 { …}
      /html/wordpress/wp-content/plugins/civicrm/civicrm.php:1172 { …}
      /html/wordpress/wp-includes/class-wp-hook.php:292 { …}
      /html/wordpress/wp-includes/class-wp-hook.php:316 { …}
      /html/wordpress/wp-includes/plugin.php:484 { …}
      /html/wordpress/wp-admin/admin.php:259 { …}
    }
  }
]


This might relate to Wordpress only. Versions:
CiviCRM 5.36.1
Donrec 2.0
Wordpress 5.7.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant