Questions tagged [errorhandling]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
1answer
51 views

Utterly useless and unhelpful error message on attempting upgrade to 5.33.1

I have a Wordpress dev site that we want to bring live with lots of new exciting content. The CiviCRM is out of date so I make a staging site and attempt to upgrade that to 5.33.1 from 5.32.2 so ...
2
votes
2answers
57 views

Warning: Disabled/Deleted fields on Smart Groups

After upgrading to CiviCRM 5.27 (and now, to 5.28) on Drupal 7, I see this warning message. As you can see, GROUP is listed as "-" (minus). When I try to click on settings (Gear icon), it ...
0
votes
1answer
43 views

Is there a specific Exception for the API4 like CiviCRM_API3_Exception?

There is a specific Exception for the CiviCRM API3 called CiviCRM_API3_Exception. Is there a similar specific Exception for API4 or do I just catch the standard Exception?
1
vote
0answers
22 views

Errors not showing against custom fields using hook validateForm()

Using this code if ($fields["custom_111_79"] == 0) $errors["custom_111_79"] = "Please enter number of physio sessions"; The evaluation is done correctly, but the error message does not appear ...
2
votes
1answer
22 views

How do I call the Fatal Error Handler for extern/url.php?

I noticed my Fatal Error Handler wasn't being called when CiviCRM had problems processing trackable URLs in a CiviMail. My answer will tell you how to do this.
5
votes
1answer
68 views

Deadlocked queries cause an instant error for end-users, but are retried in other circumstances

We have a lot of smart groups, and consequently a lot of deadlocks. There's already code in Civi that detects deadlock Exceptions, and then retries the query a few times. This is really helpful - I ...