Questions tagged [debugging]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
10
votes
2answers
2k views

Where are the "ConfigAndLog" and "templates_c" directories?

Many Stack Exchange answers say to "check your CiviCRM logs" which can be found in the "ConfigAndLog" directory, or to "delete your templates_c folder". What are the default locations for the ...
18
votes
2answers
2k views

How do I debug CiviCRM when I hit a blank page / white screen / fatal error?

CiviCRM is showing a blank page (aka white screen of death or WSoD) when I expect to see some output. How can I debug CiviCRM when there is no error message visible on screen? This includes when the ...
9
votes
1answer
839 views

Where should one look for logs when debugging a new problem?

When a bug or problem arises, one must often seek out the corresponding error-messages or error-logs. Since Civi runs on a large stack, there can be several layers to check, e.g. The browser's ...
8
votes
1answer
582 views

How to print variable/debug data from your extension.php?

I am trying to add a menu entry in the navigation, but this is causing the navigation menu to disappear, I am trying to debug the code but could not find any particular file. I have checked the ...
0
votes
3answers
488 views

CiviCRM dashboard and menus do not load

I cannot load CiviCRM 4.6.3 in my WordPress installation. I can login to Wordpress, but when I click on CiviCRM, The menu is not loaded the dashboard remains on "Loading…" When I check the console (...
5
votes
1answer
222 views

How can I use Xdebug with CiviCRM unit tests?

Ideally in conjunction with an IDE (I use Netbeans, but will fire up pretty much anything that gets this to work).
6
votes
3answers
713 views

What's the correct way to log debug info to log?

The "current" wiki says to use CRM_Core_Error::debug and says, "Most runtime errors are logged here, as well as data that you explicitly write to log using the CRM_Core_Error::debug log=true parameter....
3
votes
2answers
512 views

Where is the exact path to the ConfigAndLog log *file*?

In the latest awesome pattern we can now locate our log service easily: Civi::log()->info('Hello, log!'); And then we can tail the log which is in our ConfigAndLog directory. Chris has enumerated ...
1
vote
1answer
96 views

Debug PseudoConstant

I noticed recently under my Drupal "recent logged messages", I've been getting errors logged with the message: "Deprecated function, use CRM_Core_PseudoConstant::getKey Array ( [civi.tag] => ...