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,664
6 votes
Accepted

DB Error: unknown error

Reviewing the stack trace you provided, the line [debug_info] => SELECT GET_LOCK( 'pantheon.1.cache.3a9e8c34426bc6dde01d5581d9654dcf_mapper/moduleFiles._', 3 ) [nativecode=3057 ** Incorrect user-...
DaveD's user avatar
  • 2,465
5 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.1k
4 votes

DB Error: unknown error

Browser - From the browser, go to Administer > System Settings > Debugging and Error Handling and you can turn on Enable Debugging and Display Backtrace. That should provide you with more specific ...
Allen Hutchison's user avatar
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,352
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
  • 21.7k
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
  • 12.9k
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,664
2 votes

How do I increase the backtrace line length

:( it is hard-coded. I changed $maxArgLen in CRM/Core/Error.php and now I can see the full backtrace.
Sonicthoughts's user avatar
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

DB Error: unknown error

Sorry for the late post here, but this tip might help someone going forward with this error. I too was receiving this error on a fresh install of CiviCRM with WordPress. It was noted there were ajax ...
406CODE's user avatar
  • 301
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
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
  • 21.7k
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
  • 543
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

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

DB Error: unknown error

Based on the following line in the CiviCRM log file: [debug_info] => SELECT GET_LOCK( 'pantheon.1.cache.3a9e8c34426bc6dde01d5581d9654dcf_mapper/moduleFiles._', 3 ) [nativecode=3057 ** Incorrect ...
DaveD's user avatar
  • 2,465
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
Accepted

Suppress 'Unsupported locale specified to parseStreetAddress: en_GB' message

If you switch off the checkbox for street parsing (as petednz suggests) the error will disappear. But if you really need the street parsing that will not help you. In that case you would need to add ...
ErikH - CiviCooP's user avatar
1 vote

Switch template in extension

I use alter template file in 4.7.2. It has been working great for me. I needed to switch out the contact editor form based on contact subtype. One important thing I found if doing this programically ...
David Hayes's user avatar
1 vote

How do I increase the backtrace line length

Or call CRM_Core_Error::debug('message',CRM_Core_Error::formatBacktrace(debug_backtrace(), TRUE, 300)); where 300 is the maximum characters allowed for each arguments
Monish Deb's user avatar

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