Skip to main content
12 votes
Accepted

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

The two directories are found side-by-side. The location varies by CMS; see below. Note that you'll need access to your server's file system. If you have FTP/SFTP/SSH access, you can use that. If ...
Jon G - Megaphone Tech's user avatar
9 votes
Accepted

How can I use Xdebug with CiviCRM unit tests?

Xdebug configuration is a somewhat temperamental issue -- the details depend on the IDE, the PHP build, host OS, target application, test suite, etc. Providing a good answer to this is tricky -- e.g. ...
Tim Otten's user avatar
  • 5,684
6 votes

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

Another option for seeing the civi logs is adding the extension CiviCRM Log Viewer which gives a link via the Admin menu to view the error log
petednz - fuzion's user avatar
  • 28.4k
4 votes
Accepted

Unable to add or edit profiles on contribution pages

Turns out that Jetpack conflicts with CiviCRM - Fix for now is to disable Jetpack when using CiviCRM Profiles on contribution pages and then reactivate when done. Also note: Jetpack also impacts the ...
themak's user avatar
  • 3,441
4 votes
Accepted

How do I add debug lines?

At the link you referenced it says you can use Civi::log()->debug(); this section, so for example Civi::log()->debug(var_export($my_variable, true)); I'm not sure what you mean by the directory ...
Demerit's user avatar
  • 23.3k
3 votes

How do I add debug lines?

Re "where can I view the results" - if you want to view the log via the GUI try the log viewer extension.
Aidan's user avatar
  • 13.5k
3 votes
Accepted

Drush cannot disable civicrm debug

The civicrm-disable-debug command isn't defined in civicrm_drush_command(). See line 155: $items['civicrm-enable-debug'] = array( 'description' => "Enable CiviCRM Debugging.", ); To solve this ...
Jon G - Megaphone Tech's user avatar
3 votes

CiviMail: Can only write new mailing in debug mode (SOLVED)

Cross-origin refers to accessing resources on a different domain. It's curious that URLs you reference are actually different domains -- www.netzwerk-n.org vs netzwerk-n.org. You might want to check ...
Tim Otten's user avatar
  • 5,684
2 votes

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

I use Civi::log()->debug('my message') to write to the log file.
ErikH - CiviCooP's user avatar
2 votes
Accepted

Can't disable debug/backtrace on WordPress

If you have command-line access and wp-cli enabled (with the CiviCRM extension), you can run: wp civicrm disable-debug. If you don't have command-line access, run the following SQL via PHPMyAdmin or ...
Jon G - Megaphone Tech's user avatar
2 votes

Error on contribution details display, recently updated system

I think it would be worth following the lead about disabled or invalid financial types. At /civicrm/admin/financial/financialType?reset=1 , do any of the financial types show as disabled? If so, you ...
davejenx's user avatar
  • 2,365
2 votes

Civimail gives a blank page

Sorry, should have searched more carefully. Found the answer here: Status page angular load error
Bryan's user avatar
  • 545
2 votes
Accepted

combining log and error output

I can think of a way to do it the other way around, by defining your own civicrm logger and having it send to syslog. The problem is large stacktraces might get cut off and be formatted badly because ...
Demerit's user avatar
  • 23.3k
2 votes
Accepted

After upgrade to 5.44 menu and some elements won't load without debugging enabled

Long story short, it was a permission issue. A change to groups on my institutions relatively new server left Apache without execute permission on some files and folders in myTheme/civicrm/files. The ...
Jeff Wood's user avatar
  • 133
1 vote

Is it possible to change the output of CRM_Core_Error::debug($form)?

Yes, you can do similar to CRM_Core_Error::debug_var but using the html dumper: $dumpForm = (new \Symfony\Component\VarDumper\Dumper\HtmlDumper('php://output')) ->dump((new \Symfony\Component\...
Demerit's user avatar
  • 23.3k
1 vote

Intermittent failure to grant correct ACLs

Warning: half an answer at best! CONSTRAINT `FK_civicrm_acl_contact_cache_user_id` FOREIGN KEY (`user_id`) REFERENCES `civicrm_contact` (`id`) ON DELETE CASCADE This suggests that the user_id ...
artfulrobot's user avatar
  • 3,932
1 vote

combining log and error output

If you can't correlate the events in order, are you logging from different machines? Event correlation is a rabbit hole and there are a lot of great products (free and not free to do it) however, you ...
Karl Tatgenhorst's user avatar
1 vote

How to fix it? By pressing “Print Summary”, there are 2 extra blank pages printed

There is CSS that is adding the space. When I remove the height for the following it will not print blank pages. crm-container div.form-item { height: 100%; } I would create an "extras.css" so that ...
Sleewok's user avatar
  • 1,146
1 vote

Reports will no longer generate pdfs:Shows HTTP 500 error

After updating to the latest CiviCRM it seems the problem was corrected.
user3115902's user avatar
1 vote
Accepted

CiviMail: Can only write new mailing in debug mode (SOLVED)

At some point I recognized that it's not only the new mailing page that doesn't load when I disable debugging, but also the system status page wouldn't. So I thought, both things might have something ...
Jannis Eicker's user avatar
1 vote

What tpl or php file calls/loads CRM/UF/Page/Group.tpl for the Profiles page?

For the Profiles page, the templates/CRM/common/joomla.tpl template loads the Group.tpl file. Since the production website was malfunctioning, I had to install a local copy in order to adequately ...
ermSO's user avatar
  • 189
1 vote
Accepted

Debug PseudoConstant

In regards to the first one its a little bit misleading the actual thing is another function has been marked as deprecated and calls to that function should be refactored to use ...
Seamus Lee's user avatar
  • 1,289
1 vote

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

Found it! The log file is named by CRM_Exception::generateLogFileName($prefix); in civicrm/CRM/Core/Error.php.
ErichBSchulz's user avatar
  • 1,571
1 vote

Custom report Action not working on new development

OK, I tried deleting the report and recreating the report from the template, and like magic the functions started working. Seems that CiviCRM has certain ways about it that developers need to know. (...
Alan Fuller's user avatar
1 vote

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

Had the same question in 2019 and from reading the source the answer is now CRM_Core_Error::debug_log_message().
lynxlynxlynx's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible